首页 Ubuntu ubuntu – 如何分析核心转储

ubuntu – 如何分析核心转储

应用程序[rtorrent]崩溃后,它生成了核心文件,250MB. Caught Segmentation fault, dumping stack:B] [Port: 58940][U 0/0] [D 0/10] [H 1/32] [S 72/75/768] [F 0/128]Stack dump not enabled.Aborted (core dumped) 我需要的是分析和查看堆栈跟

应用程序[rtorrent]崩溃后,它生成了核心文件,250MB.

Caught Segmentation fault,dumping stack:B] [Port: 58940][U 0/0] [D 0/10] [H 1/32] [S 72/75/768] [F 0/128]
Stack dump not enabled.
Aborted (core dumped)

我需要的是分析和查看堆栈跟踪,以便了解为什么rtorrent经常崩溃.

gdb应该能够分析核心:

gdb /path/to/binary/rtorrent /path/to/coredump/rtorrent.core

键入何处查看堆栈跟踪.

要了解更多信息:使用调试符号编译rtorrent,运行,等待崩溃并使用gdb分析转储(在这种情况下,您可以看到发生崩溃的确切位置).

UPD请注意,rtorrent构建在libtorrent之上,因此,您必须使用调试符号重建库和应用程序才能获得完整信息.

本文来自网络,不代表青岛站长网立场。转载请注明出处: https://www.0532zz.com/html/zhonghe/fwq/ubuntu/20200721/6614.html
上一篇
下一篇

作者: dawei

【声明】:青岛站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

返回顶部