2 ms·
That link shows that malloc failed, just not due to exceeding available RAM. At the end it says "malloc finally failed because of address space exhaustion."
by dalke 11y ago
That link shows that malloc failed, just not due to exceeding available RAM. At the end it says "malloc finally failed because of address space exhaustion."
- danieltillett 11y agoIf the memory was actually being used it would have crashed long before that. The test was kind of artificial.
- dalke 11y agoAbsolutely. I was pointing out that "It is impossible for malloc to fail" is, according to the linked page, an incorrect summary.
- danieltillett 11y agoIt is still pointless checking if malloc fails on linux :) Actually the real issue here is that you should be aware that on some systems malloc might fail and not segfault.