Why gdb is showing message "Missing separate debuginfos"?
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- gdb (GNU Debugger)
Issue
gdb
command is not working on Server and I am getting the below error.
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64 libaio-0.3.107-10.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 libuuid-2.17.2-12.4.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
Resolution
- Install the debuginfo packages as listed by
gdb
message as below with commanddebuginfo-install
# debuginfo-install glibc-2.12-1.47.el6.x86_64 libaio-0.3.107-10.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 libuuid-2.17.2-12.4.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
Root Cause
- To debug any application need it source code and debugging symbols installed on the system to get more information with respect to individual frames in the stack.
- So debuginfo packages of all the dependencies of the binary trying to debug need to be installed.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments