c - Who called atexit()? -
I have a program that unexpectedly leaves Linux and why I have a hard time finding out why No core dump, see). I kept an atexit (at the beginning of the program) and callback function is actually being called when the accident happens. How can I know atexit callback function called? By reading the man page, the anneet is called on the deceptive (de ho!) Or is returned from the main; i can later exclude because at the end of main there is a bunch of printf and i do not see them. And I can already get out because there is no exit () in my program. There is only one solution: It is the only possibility that the Library functions are being asked to exit? And where do I say? Is it possible to print a stack trace or is it possible to force the main dump from within the entity callback? Calls like GDB to inspect the coredump in your art handler abort (), and GDB in Baktas command you Shows where it comes out, if the annex handler is run. Here's a demonstration: #include ...