getting stacktrace from core dump

大兔子大兔子 提交于 2019-12-03 02:44:46

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/5745215/getting-stacktrace-from-core-dump

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!