On Wed, 29 Apr 2015 02:39:50 -0600 Scott Robison <scott at casaderobison.com> wrote:
> On linux, malloc may return a non null yet invalid pointer and only > fail when the memory is accessed because it wasn't really available. Citation needed. I believe SIGSEGV is possible with anonymous mmap and overcommitted memory. ISTR I've read as much. But I was unable to find a definitive reference saying as much when I looked for one in answering this message. It's not quite accurate to say the pointer is "invalid". It's valid; it just refers to memory the system may not be able to supply when committed_memory > memory. --jkl