应用程序[rtorrent]崩溃后,它生成core文件,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)
Run Code Online (Sandbox Code Playgroud)
我需要的是分析和查看堆栈跟踪,以便了解为什么rtorrent经常崩溃.
gdb 应该能够分析核心:
gdb /path/to/binary/rtorrent /path/to/coredump/rtorrent.core
Run Code Online (Sandbox Code Playgroud)
键入where以查看堆栈跟踪。
要查看更多信息,请使用调试符号编译rtorrent,然后运行,等待崩溃并使用gdb分析转储(在这种情况下,您可以看到发生崩溃的确切位置)。
UPD一项说明,据我所知,rtorrent是在libtorrent之上构建的,因此,您必须使用调试符号来重建库和应用程序,以便获得完整的信息。