Also, if you have a process that is crashing, it will generate a core file (you'll need to set ulimit -c unlimited or whatever you want the max size of the core file to be -- this assumes bash). You can load it up into gdb with gdb <executable> <corefile> and you can then use the backtrace command to show the stack frames existent at the time of the crash.
|