我在corosync中崩溃了,我想在gdb中查看它。然而,目前核心转储只向我显示了这么多信息。
Debug logs for core.1385 (Generated on Jul 26 10:17 BST)
[Thread debugging using libthread_db enabled]
Core was generated by `corosync -f'.
Program terminated with signal 6, Aborted.
#0 0x00007f68b2783495 in raise () from /lib64/libc.so.6
#0 0x00007f68b2783495 in raise () from /lib64/libc.so.6
#1 0x00007f68b2784c75 in abort () from /lib64/libc.so.6
#2 0x00007f68b277c60e in __assert_fail_base () from /lib64/libc.so.6
#3 0x00007f68b277c6d0 in __assert_fail () from /lib64/libc.so.6
#4 0x00007f68b3530f2c in ?? () from /usr/lib64/libtotem_pg.so.4
#5 0x00007f68b3534eaf in ?? () from /usr/lib64/libtotem_pg.so.4
#6 0x00007f68b3535259 in ?? () from /usr/lib64/libtotem_pg.so.4
#7 0x00007f68b352f108 in rrp_deliver_fn () from /usr/lib64/libtotem_pg.so.4
#8 0x00007f68b352be2a in ?? () from /usr/lib64/libtotem_pg.so.4
#9 0x00007f68b3524482 in poll_run () from /usr/lib64/libtotem_pg.so.4
#10 0x00000000004079b6 in main ()我想我需要安装corosync和libtotem_pg.so.4之类的调试信息包。怎么做?
发布于 2018-07-26 16:59:17
通常,当您启动gdb时,它会显示一条消息,告诉您如何安装所需的调试符号。
例如:
# gdb /usr/sbin/corosync
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-110.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/corosync...Reading symbols from /usr/sbin/corosync...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install corosync-2.4.3-2.el7_5.1.x86_64
(gdb) 请参阅提示符前的最后一行:
Missing separate debuginfos, use: debuginfo-install corosync-2.4.3-2.el7_5.1.x86_64因此,在本例中,您可以通过在shell (而不是在gdb中)中运行以下代码来安装调试符号:
debuginfo-install corosync-2.4.3-2.el7_5.1.x86_64您没有指定使用的CentOS版本。上面的内容适用于CentOS 7,它在CentOS 6上的工作原理是一样的,但是您不能剪切‘n’粘贴命令,因为库版本是不同的。
https://unix.stackexchange.com/questions/458645
复制相似问题