crash when run out of memory

From: jy (jy_austin_at_yahoo.com)
Date: 10/29/04


Date: 29 Oct 2004 14:11:44 -0700

I have a C++ program which is "purify" clean, but crashes (called terminate)
when run out of memory on linux 2.4.27. From the core file, the crashes happen
after I throw an exception (after malloc returns null), and the stack winding
was calling the destructor of a large object. What's the genearl guidlines for
debugging, fixing, or at least making it a graceful exit than a crash?

Thanks,

-jy



Relevant Pages

  • Re: crash when run out of memory
    ... > when run out of memory on linux 2.4.27. ... From the core file, the crashes ... I think it is new that throws the exception, ...
    (comp.lang.cpp)
  • Re: Realplayer crashes on Red hat linux randomly
    ... using an old version of Linux? ... Note that this is not the only stream for which this crashes. ... No log file or core file is produced :-( ...
    (comp.os.linux.misc)
  • mmap core file suppression in Linux
    ... If a process has a mmap'd file in memory and crashes, ... the mmap seem to be dumped to the core file as well (Linux). ...
    (comp.unix.programmer)
  • Re: Combined usage of exception handling
    ... handler will let the exception go to the defaul SEH, ... >locations in memory that can contain garbage at this point. ... For the crashes we see in the real world (after alpha and beta ... does not cause a system failure. ...
    (microsoft.public.vc.language)
  • Re: Application Errors - Tried EVERYTHING - PLEASE HELP!!!!
    ... The memory in this case passed Memtest-like diagnostics ... The only other hardware causes of tis sort of behaviour which spring ... >I DESPERATELY NEED HELP WITH THESE CONSTANT CRASHES I HAVE ... >Any Multimedia program used for ENCODING or RENDERING ...
    (microsoft.public.windowsxp.hardware)