Bug 2181221 - gdb suggest to install a package from a broken path
Summary: gdb suggest to install a package from a broken path
Keywords:
Status: MODIFIED
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alexandra Petlanová Hájková
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-23 10:26 UTC by Alexandra Petlanová Hájková
Modified: 2023-08-16 07:12 UTC (History)
9 users (show)

Fixed In Version: gdb-13.1-3.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.