gdb调试问题Missing separate debuginfos, use: debuginfo-install glibc-****

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一一安装上面提示的需要安装的包



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值