Pinned topic malloc core dump when out of heap space
While investigating a memory corruption problem in our software, we came across a problem with malloc() causing a segmentation fault when it runs out of heap space. We are using gcc 3.3.2 on AIX 5.3. Has anyone seen this before? Here is a test program:
printf("Start malloc test\n");
if ( malloc(32*1024) == (void *)0 )
printf("Out of memory\n");
GarlandJoseph 2700060BSP10 PostsACCEPTED ANSWER
Re: malloc core dump when out of heap space2013-07-29T14:39:58Z in response to SystemAdmin
You should run dbx on the core so we know where it's blowing up. You should also insure you are at the latest fixes of AIX.
dbx <path-to-executable> <path-to-corefile>
Then post the results of this.