Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 2702

Summary: stripping libpthread makes gdb unusable for threaded programs
Product: Gentoo Linux Reporter: Justin Gullingsrud <justin>
Component: [OLD] Core systemAssignee: Bart Verwilst <bart>
Status: RESOLVED FIXED    
Severity: normal CC: azarah, drobbins, helix, justin, tobi
Priority: High    
Version: 1.2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Justin Gullingsrud 2002-05-13 11:47:58 UTC
/usr/lib/portage/bin/prepallstrip uses "strip --strip-unneeded" on shared
libraries.  gdb is unable to handle the real-time signals that come in during
the debugging of a multithreaded program, which causes the program to be
continually interrupted.  

I suggest replacing --strip-unneeded with --strip-debug.  I have built a stage1
system after making this replacement and found that it cured the problem.  The
size of my libpthread is 104k, vs. 85k for the fully-stripped file.  Other
system libraries saw a similar, or smaller, increase in size.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-05-15 11:10:27 UTC
This sounds like it's needed.  Thanks.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-20 13:47:22 UTC
Daniel, ok for me to fix this ?
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-23 21:36:41 UTC
*** Bug 3929 has been marked as a duplicate of this bug. ***
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-23 21:36:52 UTC
*** Bug 4027 has been marked as a duplicate of this bug. ***
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-24 13:57:44 UTC
Fixed on CVS, that is if Daniel do not have my hide for this ;)
Comment 6 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-19 18:11:36 UTC
*** Bug 3929 has been marked as a duplicate of this bug. ***
Comment 7 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-19 18:13:12 UTC
*** Bug 3929 has been marked as a duplicate of this bug. ***