How to analyze core dump

五迷三道 提交于 2019-12-06 00:46:29

问题


After application[rtorrent] crashed, it produced core file, 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)

What I need is to analyze and see the stack trace, to have clue why rtorrent is crashing so often.


回答1:


gdb should be able to analyse the core:

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

type where to see stack trace.

To see more: compile rtorrent with debug symbols, run, wait crash and analyse dump with gdb (in this case you can see exact place where crash occurs).

UPD One note, rtorrent is build on top of libtorrent as I know, so, you have to rebuild both library and application with debug symbols in order to get full information.



来源:https://stackoverflow.com/questions/8806469/how-to-analyze-core-dump

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