News for hackers. Stuff that matters.
Re:Show HN: Progressbar - A C library for displaying command... by dalke on Saturday August 29, 2015 @04:27AM (#10139437)
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."
Re:Show HN: Progressbar - A C library for displaying command... by danieltillett on Saturday August 29, 2015 @05:01AM (#10139475)
If the memory was actually being used it would have crashed long before that. The test was kind of artificial.
Re:Show HN: Progressbar - A C library for displaying command... by dalke on Saturday August 29, 2015 @05:38AM (#10139515)
Absolutely. I was pointing out that "It is impossible for malloc to fail" is, according to the linked page, an incorrect summary.
Re:Show HN: Progressbar - A C library for displaying command... by danieltillett on Saturday August 29, 2015 @06:55AM (#10139623)
It 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.