Search code examples
c++segmentation-faultposixstack-tracecrash-dumps

C++ Crash Dumps on POSIX


I have a big C++ code (server for some application). This application is big, and catch a crash per 2 months in average. And i can't simulate this crash to catch her with gdb.

Is exists some cool api to analyze memory on crash dump (stacktrace, local vars)?

What is best way to catch stack corruption time?


Solution

  • Enable core dumping, wait for it to crash. Then load the core into gdb and debug as usual.

    ulimit -c unlimited