/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.
This sounds like it's needed. Thanks.
Daniel, ok for me to fix this ?
*** Bug 3929 has been marked as a duplicate of this bug. ***
*** Bug 4027 has been marked as a duplicate of this bug. ***
Fixed on CVS, that is if Daniel do not have my hide for this ;)