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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -