1、问题描述:
gdb调试core程序,只能看出core的函数,具体core的原因没有详细显示出来,而且一直提示Missing separate debuginfos, use: debuginfo-install glibc-****
/home/log>gdb 进程名 core.4068
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-64.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 /home/bin/***...done.
[New LWP 4068]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `********'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f08c919797e in *******::*******(long, int&) () from /home/lib/lib****.so
Missing separate debuginfos, use: debuginfo-install glibc-2.17-78.el7.x86_64 libaio-0.3.109-12.el7.x86_64 libgcc-4.8.3-9.el7.x86_64 libstdc++-4.8.3-9.el7.x86_64
(gdb) where
#0 0x00007f08c919797e in ******::*****(long, int&) () from /home/lib/lib***.so
#1 0x00007f08c9199642 in *****::****() () from /home/lib/lib****.so
。。。。
#7 0x000000000040869b in main ()
2、解决办法
直接用上面提示的命令安装报错,找不到的包
后查资料发现需要修改vi /etc/yum.repos.d/CentOS-Debuginfo.repo文件enable=1
再使用debuginfo-install glibc-2.17-78.el7.x86_64一一安装上面提示的需要安装的包