Search code examples
c++ccoredump

Inline core dump generation from a C/C++ program


In the course of development of some application we came to a need of possibly getting a complete core dump without completely stopping execution of a program completely.

Granted there are conditions that generate core dump where continuation may not be safely possible but we are not talking about memory corruption, and such.

What I am looking to do is send a signal to the program and generate a complete core without or minimally impacting program execution

Is this possible? If so how?


Solution

  • See this Google library, it might help: http://code.google.com/p/google-coredumper/

    The coredumper library can be compiled into applications to create core dumps of the running program -- without terminating.