This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: A deadlock in linuxthreads
- To: Xavier.Leroy@inria.fr (Xavier Leroy)
- Subject: Re: A deadlock in linuxthreads
- From: hjl@lucon.org (H.J. Lu)
- Date: Sun, 20 Dec 1998 13:01:28 -0800 (PST)
- Cc: libc-hacker@cygnus.com (GNU C Library)
>
> 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)