问题描述
相关:
- How do I analyze a program's core dump file with GDB when it has command-line parameters?
- Core dump file analysis
调试核心转储文件的最常用方法是什么?我尝试过的两种方法是使用readelf
:
$ readelf core -a
然后使用gdb
:
$ gdb file core
但是,使用gdb不会得到太多信息(至少不是我能理解的信息)。例如,它显示:
Reading symbols from file...
(No debugging symbols found in file)
[New LWP 46778]
Core was generated by `./file'.
Program terminated with signal SIGSEGV,Segmentation fault.
#0 0x000000000040100a in ?? ()
>>> bt
#0 0x000000000040100a in ?? ()
#1 0x0000000000000001 in ?? ()
#2 0x00007ffe342c3cbe in ?? ()
#3 0x0000000000000000 in ?? ()
但是,有人能从什么意义上理解呢?将如何使用core
文件来理解某些东西的示例?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)