Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In a system with virtual memory there are a variety of limits you can hit that will prevent your process allocating more memory and cause malloc to return zero. It's normal to informally lump all these together as "running out of memory" when the distinction doesn't matter, as here.

Address space size is one of these limits, not the only one. Hitting it is rare on 64-bit operating systems, common on 32-bit ones.



Unfortunately, I’ve yet to come across a major application on linux that handles this condition gracefully.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: