Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48116 - Stripping symbols from glibc prevents debugging multi-thread apps
Summary: Stripping symbols from glibc prevents debugging multi-thread apps
Status: RESOLVED DUPLICATE of bug 46186
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://www.rawbw.com/~marka/geek/gdb-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-17 02:41 UTC by Luca Celetto
Modified: 2005-07-17 13:06 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 Luca Celetto 2004-04-17 02:41:30 UTC
Multi-thread applications can not be debugged with GDB due to a real-time SIG32 appearing whenever a new thread is generated through pthread_create() function.

Moreover, when the application is stopped, threads info can not be displayed and switch to another thread is not possible.

This is due to stripping the symbols from the libpthread.so library during compiling time and was reported in Mandrake 9.0, see page

http://www.rawbw.com/~marka/geek/gdb-mdk9.html

Solution is to put in the glic*.ebuild file the following line

RESTRICT="nostrip"

(see page http://reviewed.homelinux.org/man/ebuild/ for details).
Comment 1 solar (RETIRED) gentoo-dev 2004-06-05 21:45:55 UTC
other devs... How do you feel about this? glibc is a rather hefty library I'd rather see it stripped by default. 
However I can live with only libpthread not being stripped, but the whole pkg..

Maybe we could/should add a really ugly hack to prepstrip something like
Comment 2 solar (RETIRED) gentoo-dev 2004-06-06 12:48:54 UTC
if [ -z "${f/*SB shared object*/}" ]; then
[ -x /bin/basename  -a "$(basename ${x})" == "libpthread-0.10.so" ] && x="-V"
Comment 3 SpanKY gentoo-dev 2004-07-31 00:16:13 UTC

*** This bug has been marked as a duplicate of 46186 ***