Bug 974130 - /usr/lib/debug/ needs also bin/lib/lib64 symlinks
Summary: /usr/lib/debug/ needs also bin/lib/lib64 symlinks
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: filesystem
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 980536
TreeView+ depends on / blocked
 
Reported: 2013-06-13 13:36 UTC by Jan Kratochvil
Modified: 2013-07-16 01:45 UTC (History)
3 users (show)

Fixed In Version: filesystem-3.2-13.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 980536 (view as bug list)
Environment:
Last Closed: 2013-07-16 01:45:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Kratochvil 2013-06-13 13:36:25 UTC
Description of problem:
Since the /bin etc. symlinks debuginfos stopped working unless one uses them via build-id.

There should be:
/usr/lib/debug/bin -> usr/bin
/usr/lib/debug/lib -> usr/lib
/usr/lib/debug/lib64 -> usr/lib64
/usr/lib/debug/sbin -> usr/sbin

Version-Release number of selected component (if applicable):
F-17 upwards.

How reproducible:
Always.

Steps to Reproduce:
yum install keyutils
debuginfo-install keyutils
mv /usr/lib/debug/.build-id /usr/lib/debug/.build-id-x
gdb keyctl

Actual results:
Reading symbols from /usr/bin/keyctl...Reading symbols from /usr/bin/keyctl...(no debugging symbols found)...done.
(no debugging symbols found)...done.

Expected results:
Reading symbols from /usr/bin/keyctl...
warning: the debug information found in "/usr/lib/debug//usr/bin/keyctl.debug" does not match "/usr/bin/keyctl" (CRC mismatch).

Additional info:
The warning is a different bug (tracked as Bug 971119); that is caused by dwz.

There exists:
/usr/lib/debug/bin/keyctl.debug

But GDB cannot find that, GDB found /usr/bin/keyctl and also its canonical name is /usr/bin/keyctl.

It probably should have some %pre/%post script to move existing debuginfos into the common subdirectories before creating the symlink.

Comment 1 Ondrej Vasik 2013-06-13 20:30:33 UTC
Thanks for report. I'll fix that in next filesystem build

Comment 4 Fedora Update System 2013-06-21 13:03:04 UTC
filesystem-3.2-12.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/filesystem-3.2-12.fc19

Comment 5 Fedora Update System 2013-06-21 19:17:18 UTC
Package filesystem-3.2-12.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing filesystem-3.2-12.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-11452/filesystem-3.2-12.fc19
then log in and leave karma (feedback).

Comment 6 Jan Kratochvil 2013-06-25 08:46:00 UTC
I have found a problem, we need also:
ln -s ../.dwz /usr/lib/debug/usr/.dwz

reproducer:

$ gdb dbus-send
Reading symbols from /usr/bin/dbus-send...Reading symbols from /usr/lib/debug/usr/bin/dbus-send.debug...could not read '/usr/lib/debug/usr/bin/../.dwz/dbus-1.6.12-1.fc18.x86_64': No such file or directory

dbus-1.6.12-1.fc18.x86_64
dbus-debuginfo-1.6.12-1.fc18.x86_64


Another problem may be that rpm -V *-debuginfo starts to complain then:
$ rpm -V dbus-debuginfo
....L....    /usr/lib/debug/bin
....L....    /usr/lib/debug/lib64
But that may be rather reassigned to rpm maintainers.

Comment 7 Fedora Update System 2013-07-02 00:33:08 UTC
filesystem-3.2-12.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Jan Kratochvil 2013-07-02 06:20:40 UTC
This issue is not closed.

Either .dwz symlink should be added or - as discussed this update should be reverted for F-19 and present only for F-20+.

Comment 9 Fedora Update System 2013-07-08 12:18:08 UTC
filesystem-3.2-13.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/filesystem-3.2-13.fc19

Comment 10 Fedora Update System 2013-07-09 01:30:11 UTC
Package filesystem-3.2-13.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing filesystem-3.2-13.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-12588/filesystem-3.2-13.fc19
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2013-07-16 01:45:26 UTC
filesystem-3.2-13.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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