从核心转储获取stacktrace [英] getting stacktrace from core dump

查看:73
本文介绍了从核心转储获取stacktrace的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从核心转储文件中获取堆栈跟踪?该文件约为14 mb,是在我的应用程序退出并显示分段错误"后生成的.

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"

我正在使用Red Hat 5.5

I'm on Red Hat 5.5

推荐答案

gdb /usr/bin/myapp.binary corefile

然后,使用以下之一:

(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

这篇关于从核心转储获取stacktrace的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆