Search code examples
c++gdbcoredump

Get memory in use from core dump


I have a core dump file generated by a c++ program.

I suspect the reason it crashed is because it was running out of memory. Is there a way the get the amount of memory in use from the core file using gdb (or any other way)?


Solution

  • According to this thread, it is not possible.

    However, you can use size -A core to get the sizes of individual sections of the core dump (you won't know what they are, though).