This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A deadlock in linuxthreads


> 
> The problem is that the gdb interface uses a __pthread_sig_cancel sent
> to the thread manager as an indication that a new thread is created.
> (See the processing of REQ_DEBUG.)  I really don't know what happens
> if we send a __pthread_sig_cancel also when a thread dies.  Have you
> looked at the OpenGroup patches to gdb?  Not being too familiar with
> gdb myself, I don't fully understand what's going on.
> 

I don't think it will work with gdb. Since pthread_handle_sigcancel in
the thread manager will call __pthread_manager_sighandler () when
it gets a __pthread_sig_cancel, the __pthread_sig_cancel signal sent
by gdb to indicate a new thread is created won't be processed properly.

-- 
H.J. Lu (hjl@gnu.org)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]