如何分析旧的 /core 文件?

如何分析旧的 /core 文件?

core我在六月份的根目录中发现了这个旧文件:

$ ll /core
-rw------- 1 root root 46215168 Jun 20 16:16 /core

$ sudo file /core 
/core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from '/usr/lib/xorg/Xorg -core :1 -seat seat0 -auth /var/run/lightdm/root/:1 -noliste'

我如何才能找出哪个应用程序的崩溃导致了此核心转储?它是来自Xorg还是来自,lightdm如输出所示file,还是可能是其他原因?通过分析它我还能得到哪些其他有意义的信息?我该怎么做?

更新:

$ sudo gdb -c /core
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
[some lines regarding copyright, license and manuals omitted...]
Type "apropos word" to search for commands related to "word".
[New LWP 6453]
Core was generated by `/usr/lib/xorg/Xorg -core :1 -seat seat0 -auth /var/run/lightdm/root/:1 -noliste'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f14feb55418 in ?? ()
(gdb)

相关内容