Bug 981154
| Summary: | gdb gives highly misleading error when debuginfo pkg is present, but not corresponding binary pkg | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | David Gibson <dgibson> |
| Component: | gdb | Assignee: | Sergio Durigan Junior <sergiodj> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | jan.kratochvil, mcermak, mfranc |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | gdb-7.2-68.el6, gdb-7.2-69.el6 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: GDB was not handling symbolic links for build-id files in the proper way.
Consequence: The user could see misleading error messages when trying to debug a program whose debuginfo file was installed, but the binary file was not. GDB was instructing the user to issue wrong commands to
install the binary file.
Fix: GDB now correctly identifies and handles the symbolic links related to build-id files.
Result: The message displayed to the user is now correct and, if followed, causes the binary file to be installed on the system.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-14 07:28:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 554152 | ||
|
Description
David Gibson
2013-07-04 06:47:23 UTC
GDB should:
(a) not apparent the .%d suffix if none of the existing symlinks point
to a valid file.
(b) It should request installing the symlink-target file if the symlink itself
is already present.
@Jan, yes that sounds like a good summary of what needs to change. In Fedora Rawhide as: gdb-7.6-33.fc20 https://koji.fedoraproject.org/koji/buildinfo?buildID=434152 Thanks for the bugreport. Missing separate debuginfo for the main executable file Try: yum --disablerepo='*' --enablerepo='*debug*' install /usr/lib/debug/.build-id/bd/../../../../bin/gtkperf (Its backport to RHEL is up to Sergio.) Thanks, Jan. If GDB is marked to be updated for 6.5, I will backport this. gdb-7.6-34.fc20 http://koji.fedoraproject.org/koji/taskinfo?taskID=5622216 Obviously one has to also remove the --disablerepo='*' part. gdb-7.7-5.fc21 http://koji.fedoraproject.org/koji/taskinfo?taskID=6775844 Fixing it on F21 since this part got rewritten there (and had a bug). gdb-7.7-5.fc21 http://koji.fedoraproject.org/koji/taskinfo?taskID=6776156 Please disconsider the last Koji build, it failed because of some incompatibilities with GCC 4.9. Fixed by this version. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1534.html |