linuxthreads may deadlock with __pthread_sig_debug enabled

Alexandre Oliva aoliva@redhat.com
Mon Apr 5 21:59:00 GMT 2004


If the application blocks or masks __pthread_sig_debug and then
creates a thread, the manager thread won't be able to notify the
debugger about the new thread, so the debugger will never wake it back
up.  This patch fixes it.

The problem was originally observed in frv-uclinux, but it occurs on
i686-pc-linux-gnu as well, using rda (the Remote Debug Agent) to
ptrace the process, instead of gdb itself.

Ok to install?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-pthread-debug-sigmask.patch
Type: text/x-patch
Size: 1018 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040405/2084c013/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


More information about the Libc-alpha mailing list