Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293361 - gdb doesn't display debug information of some libraries, when using splitdebug
Summary: gdb doesn't display debug information of some libraries, when using splitdebug
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL: http://www.gentoo.org/proj/en/qa/back...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-16 09:25 UTC by Cyp
Modified: 2011-08-10 00:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cyp 2009-11-16 09:25:51 UTC
Using splitdebug, debug information for libraries sometimes appears in /usr/lib/debug/usr/lib/, and sometimes in /usr/lib/debug/usr/lib64/. gdb looks in one of those directories, but not both.

The issue can be fixed with:
mv /usr/lib/debug/usr/lib64 /usr/lib/debug/usr/lib64_temp
ln -s lib /usr/lib/debug/usr/lib64
mv /usr/lib/debug/usr/lib64_temp/* /usr/lib/debug/usr/lib64/
rmdir /usr/lib/debug/usr/lib64_temp

I think, either portage should create the symlink automatically, or the backtraces documentation should be updated.

Reproducible: Always

Steps to Reproduce:
Comment 1 Zac Medico gentoo-dev 2009-11-16 20:34:16 UTC
(In reply to comment #0)
> Using splitdebug, debug information for libraries sometimes appears in
> /usr/lib/debug/usr/lib/, and sometimes in /usr/lib/debug/usr/lib64/.

My first guess is that the ones that install in /usr/lib aren't using $(get_libdir) from multilib.eclass. That would be a bug in the ebuild.
Comment 2 SpanKY gentoo-dev 2009-11-16 22:12:14 UTC
yeah, please post real info (like which packages are installing there).  native binaries (i.e. 64bit ones) should not be installing into /usr/lib/.  those packages are broken and need fixing.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2011-08-10 00:41:43 UTC
*** Bug 378537 has been marked as a duplicate of this bug. ***