Missing separate debuginfos

huangapple go评论85阅读模式
英文:

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

  1. 你需要修改/etc/yum.repos.d/CentOS-Debuginfo.repo(CentOS 7)或者/etc/yum.repos.d/CentOS-Stream-Debuginfo.repo(CentOS 8)中的enable=1
  2. 使用sudo yum install glibc来安装。
  3. 安装yum-utils,使用命令:yum install yum-utils
  4. 使用命令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

  1. 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)
  2. Use sudo yum install glibc to install
  3. yum install yum-utils
  4. Use yum debuginfo-install glibc-2.17-326.el7_9.x86_64 to install.

Hope this help.

huangapple
  • 本文由 发表于 2023年1月9日 17:56:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/75055592.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定