2012-01-10 69 views
5

应用程序[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) 

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

回答

4

gdb应该能够分析的核心是:

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

where看到堆栈跟踪。

要了解更多信息:使用调试符号编译rtorrent,运行,等待崩溃并使用gdb分析转储(在这种情况下,您可以看到发生崩溃的确切位置)。我注意到,rtorrent是建立在libtorrent之上的,所以,你必须用调试符号重建库和应用程序以获得完整的信息。