That's exactly what I get. It all works fine for me w/ out NPTL, with however, no thread creation is noticed by gdb.() wrote:I do some multi threaded programming, but normally I don't set breakpoints within the other thread, since its meant to operate in realtime (audio). But now that you mention it, GDB does exit when the breakpoint is hit within the thread procedure ('Program terminated with signal SIGTRAP, Trace/breakpoint trap'). Maybe a bug within NPTL? GDB doesn't normally inform of started threads either, as it used to do with LinuxThreads.
I haven't noticed any bugs about this in the bug tracker. I wonder if it would be possible to recompile glibc with a later version of NPTL and if that would fix the issue. Unfortunately, I really need to debug my program quickly instead of debug gdb w/ threads. Maybe someone has already tackled this issue and can post a solution.() wrote:Its funny you should ask about this now, since I was stepping through NPTL code yesterday in order to track down a possible bug, NPTL ignores scheduling attributes, it turns out these attributes (set with pthread_attr_setsched*) are blatantly overlooked. Its such an obvious error, and I think it was already reported on the fedora-devel list in february, so maybe theyre aware of it by now? Where should I eventually file this bug you think, Fedora (are there any fora dedicated to NTPL development)?

Completely curiosity, but how did you work out to do this to solve the problem?mulicheng wrote:I recompiled glibc like this:
FEATURES="nostrip" USE="debug" emerge glibc
That fixed my problem.
Well, I thought it might be something to do with no debugging information in the nptl library. Got the following information from gentoolkit's euse utility:tyreth wrote:Completely curiosity, but how did you work out to do this to solve the problem?
Code: Select all
# euse -i debug
debug [-] [ ] [G] Tells configure and the makefiles to build for debugging.
Effects vary acrosss packages, but generally it will at
least add -g to CFLAGS. Remember to set FEATURES+=nostrip
too.
mulicheng wrote:Well, I thought it might be something to do with no debugging information in the nptl library. Got the following information from gentoolkit's euse utility:tyreth wrote:Completely curiosity, but how did you work out to do this to solve the problem?I tried it and it worked thankfully.Code: Select all
# euse -i debug debug [-] [ ] [G] Tells configure and the makefiles to build for debugging. Effects vary acrosss packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES+=nostrip too.
This was not an issue with the older linuxthreads. I was able to debug the same program on a different system without a debug build of glibc. I'm not sure why the debug build is now needed, but I, like you, would rather not have to build glibc with debug mode.cjensen wrote:i don't understand why glibc needs to be compiled with debug info. why would that affect gdb's thread debugging capabilities? was this an issue with the older linuxthreads?
I don't think that speed is affected, I'm not a very reliable authority on glibc or anything though. I think it just makes the executable/library sizes a lot bigger like you mentioned.cjensen wrote:i dont like the idea of running glibc in debug (wouldn't that potentially slow down the rest of the system)?
Code: Select all
FEATURES="nostrip"Code: Select all
USE="debug"I already have: http://bugs.gentoo.org/show_bug.cgi?id=46186pelckyboy wrote:Shouldn't someone enter a bug in bugzilla so this issue is resolved ?