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
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
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)sudo yum install glibc
to installyum install yum-utils
yum debuginfo-install glibc-2.17-326.el7_9.x86_64
to install.Hope this help.