Bug 2181221

Summary: gdb suggest to install a package from a broken path
Product: [Fedora] Fedora Reporter: Alexandra Petlanová Hájková <ahajkova>
Component: gdbAssignee: Alexandra Petlanová Hájková <ahajkova>
Status: MODIFIED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: ahajkova, blarsen, fweimer, jan, keiths, kevinb, mcermak, pmuldoon, sergiodj
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdb-13.1-3.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Alexandra Petlanová Hájková 2023-03-23 10:26:24 UTC
Description of problem:
gdb suggest to install a package from a broken path. This happens when a .debug file corresponding to the installed debug package is missing (was removed for example). gdb then tries to use build-id based symlink which is broken. 

Steps to Reproduce:
0. install glibc-debuginfo: dnf debuginfo-install glibc, and gdb-debuginfo
1. remove the corresponding .debug file: rm /usr/lib/debug/lib64/libc.so.6-2.35-22.fc36.x86_64.debug
2. gdb --args gdb /bin/ls -ex 'b write'


Actual results:
Missing separate debuginfo for /lib64/libc.so.6
Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/82/../../../../../usr/lib/debug/lib64/libc.so.6-2.35-22.fc36.x86_64.debug

Comment 1 Fedora Release Engineering 2023-08-16 07:12:21 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.