Allan Schaffer (allan++at++sgi.com)
Sun, 19 Sep 1999 11:55:46 -0700 (PDT)
It's likely that the code involved is something like:
foo = malloc (N);
if (!foo)
{
printf ("Out of memory\n");
exit(1);
}
So as a generic debugging tip, run the program through 'dbx' (make
sure you're in single-process mode) and set a breakpoint on exit().
When you reach the breakpoint, type 'where' and you'll be able to see
the function leading to that message. This may provide some hints..
Allan
-- Allan Schaffer allan++at++sgi.com Silicon Graphics http://reality.sgi.com/allan
This archive was generated by hypermail 2.0b2 on Sun Sep 19 1999 - 11:56:09 PDT