Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Core pattern is helpful in the case if there are couple of core dumps files in one directory and we don't know which program caused it.


Google Breakpad

  • Breakpad is a library that records crashes in compact "minidump" files.
  • Produce C and C++ stack traces from minidumps.
  • Breakpad can also write minidumps on request for programs that have not crashed. 

  


Image Added


How to Integrate ?

  • Link against libbreakpad_client library.

    Code Block
    #include "client/linux/handler/exception_handler.h“
  • Instantiate an ExceptionHandler object, ExceptionHandler constructor requires a path where it can write minidumps, as well as a callback function to receive information about minidumps that were written.

What is Minidump? 

  • A list of the executable and shared libraries that were loaded in the process at the time the dump was created. This list includes both file names and identifiers for the particular versions of those files that were loaded.
  • A list of threads present in the process. For each thread, the minidump includes the state of the processor registers, and the contents of the threads' stack memory.
  • Other information about the system on which the dump was collected: processor and operating system versions, the reason for the dump, and so on.