开发者

getting stacktrace from core dump

How can I get a stack trace from a core dump file? The file is about 14 mb and is generated after my application exits saying "segmentation fault"

I'm on Red Hat 5.开发者_如何转开发5


gdb /usr/bin/myapp.binary corefile

Then, use one of:

(gdb) bt
(gdb) bt full
(gdb) info threads
(gdb) thread apply all bt
(gdb) thread apply all bt full

Note that installing debug symbols for the related libraries will help

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜