c - how can i see the stack trace after the process is killed? -
i using gdb command "attach" debug proceess after process crash (sigkill) can not see stack trace ("bt" command in gdb) : (gdb) bt no stack.
how can see stack trace after process killed?
set shell dump core making sure ulimit -c
doesn't show core size of 0. if 0 run ulimit -c unlimited
. next, re-run program until crashes , dumps core call:
gdb /path/to/executable /path/to/core
, type bt
stack trace.
also, you'll want compile executable debugging info turned on. if you're using gcc
suggest use -ggdb3
this.
Comments
Post a Comment