Bug 999645

Summary: /usr/share/gdb/auto-load/ needs filesystem symlinks
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: atu, gbenson, h.reindl, jan.kratochvil, palves, pmuldoon, sergiodj, tromey, zbyszek
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-7.6.1-41.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-24 23:00:47 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:
Bug Depends On:    
Bug Blocks: 994062    

Description Jan Kratochvil 2013-08-21 18:47:14 UTC
Description of problem:
The usr/ symlinks bin+lib+lib64+sbin need to be present also in /usr/share/gdb/auto-load/ .

Version-Release number of selected component (if applicable):
gdb-7.6-34.fc19.x86_64
gdb-heap-0.5-12.fc19.x86_64

How reproducible:
Always.

Steps to Reproduce:
gdb true
start
heap

Actual results:
(gdb) heap
Undefined command: "heap".  Try "help".

Expected results:
(gdb) heap
Domain  Kind  Detail  Count  Allocated size
------  ----  ------  -----  --------------
               TOTAL      0               0

Additional info:
One can "fix" it by:
ln -s ../../lib64/ld-2.17.so-gdb.py /usr/share/gdb/auto-load/usr/lib64/ld-2.17.so-gdb.py
Fortunately no other packages besides gdb-heap uses non-usr/ directories.
Moreover gdb-heap uses it incorrectly but that is Bug 665799.

Comment 1 Jan Kratochvil 2013-08-21 18:48:35 UTC
*** Bug 974277 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Update System 2013-08-28 20:20:53 UTC
gdb-7.6-35.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/gdb-7.6-35.fc19

Comment 3 Fedora Update System 2013-08-28 20:20:56 UTC
gdb-7.5.1-40.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/gdb-7.5.1-40.fc18

Comment 4 Fedora Update System 2013-08-29 22:19:39 UTC
Package gdb-7.6-35.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 gdb-7.6-35.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-15484/gdb-7.6-35.fc19
then log in and leave karma (feedback).

Comment 5 Jan Kratochvil 2013-08-30 14:57:46 UTC
*** Bug 1003042 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2013-08-30 17:22:51 UTC
gdb-7.5.1-41.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/gdb-7.5.1-41.fc18

Comment 7 Fedora Update System 2013-08-30 17:22:53 UTC
gdb-7.6-37.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/gdb-7.6-37.fc19

Comment 8 Anton Guda 2013-08-31 13:38:35 UTC
It seems, that gdb-7.6.50.20130731-9.fc20 have wrong symlinks in auto-load directory: bin -> "usr/bin". It may be better to use full path '/usr/bin' or long relative path "../../../bin".

Comment 9 Jan Kratochvil 2013-08-31 14:15:49 UTC
That is correct as it is.  You can also look it is similar in /usr/lib/debug/ .

/bin/ is the same as /usr/bin/ .
Therefore /usr/lib/debug/bin/ should be the same as /usr/lib/debug/usr/bin/ .
And also /usr/share/gdb/auto-load/bin/ should be the same as /usr/share/gdb/auto-load/usr/bin/ .

(Whether /bin should be a symlink at all is off-topic for this Bug.)

Comment 10 Fedora Update System 2013-09-09 16:33:28 UTC
gdb-7.6.1-41.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/gdb-7.6.1-41.fc19

Comment 11 Fedora Update System 2013-09-09 16:33:32 UTC
gdb-7.5.1-42.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/gdb-7.5.1-42.fc18

Comment 12 Fedora Update System 2013-09-24 23:00:47 UTC
gdb-7.5.1-42.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2013-09-24 23:02:40 UTC
gdb-7.6.1-41.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.