英文:
Missing separate debuginfos
问题
我正在调试一个来自生产环境的核心转储文件(两个环境不同)。我输入"gdb [程序名称] core.xxx然后bt",但它出现了如下标题和图片所示的提示:
查看图片描述
堆栈顶部有问题掩码,我找不到分段错误是在哪里生成的。
内核版本:查看图片描述
Linux版本:查看图片描述
系统是从可执行文件编译的:查看图片描述
(注意:源代码和可执行程序不在同一个系统中)
我想找到一个方法来知道分段错误发生在哪里,如果您能帮助我,我将不胜感激!
根据提示,我已安装了一些缺失的rpm库,但仍然无法解决问题:
glibc-debuginfo-2.17-326.el7_9.x86_64.rpm
libgcc-4.8.5-44.el7.i686.rpm
ncurses-libs-5.9-14.20130511.el7_4.i686.rpm
libstdc++-4.8.5-44.el7.i686.rpm
kernel-debug-debuginfo-3.10.0-1160.el7.x86_64.rpm
kernel-debuginfo-common-x86_64-3.10.0-1160.el7.x86_64.rpm
英文:
I am debugging a coredump file from the production environment(two environment, not the same), I input "gdb [programe name] core.xxx then bt" but it hint like the title and pic below:
enter image description here
There are question masks at the top of the stack and I can't find where the Segmentation fault generated
Kernel Version: enter image description here
Linux Version: enter image description here
System compiled from executable file:enter image description here
(Note :Source code and executable program are not in the same system)
I want to find a way to know where did the segment error occur, I'd appreciate it if you could help me !
I have installed some missing rpm libraries according to the prompts but still not work:
glibc-debuginfo-2.17-326.el7_9.x86_64.rpm
libgcc-4.8.5-44.el7.i686.rpm
ncurses-libs-5.9-14.20130511.el7_4.i686.rpm
libstdc++-4.8.5-44.el7.i686.rpm
kernel-debug-debuginfo-3.10.0-1160.el7.x86_64.rpm
kernel-debuginfo-common-x86_64-3.10.0-1160.el7.x86_64.rpm
答案1
得分: 0
我的操作系统是CentOS 7.9
- 你需要修改
/etc/yum.repos.d/CentOS-Debuginfo.repo
(CentOS 7)或者/etc/yum.repos.d/CentOS-Stream-Debuginfo.repo
(CentOS 8)中的enable=1
。 - 使用
sudo yum install glibc
来安装。 - 安装
yum-utils
,使用命令:yum install yum-utils
。 - 使用命令
yum debuginfo-install glibc-2.17-326.el7_9.x86_64
来安装。
希望这对你有所帮助。
英文:
My OS CentOS 7.9
> Missing separate debuginfos
, use: debuginfo-install glibc-2.17-326.el7_9.x86_64 libconfig-1.4.9-5.el7.x86_64 libgcc-4.8.5-44.el7.x86_64 libstdc++-4.8.5-44.el7.x86_64
- You need to modify the
enable=1
of the/etc/yum.repos.d/CentOS-Debuginfo.repo
(CentOS 7) or the/etc/yum.repos.d/CentOS-Stream-Debuginfo.repo
(CentOS 8) - Use
sudo yum install glibc
to install yum install yum-utils
- Use
yum debuginfo-install glibc-2.17-326.el7_9.x86_64
to install.
Hope this help.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论