This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/21422] Deadlock in 2.25 pthread_cond_broadcast after process abort
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 25 Apr 2017 13:42:16 +0000
- Subject: [Bug nptl/21422] Deadlock in 2.25 pthread_cond_broadcast after process abort
- Auto-submitted: auto-generated
- References: <bug-21422-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21422
--- Comment #7 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Dimitri Staessens from comment #6)
> Hi Torvald,
>
> thank you for the insights. I have a question, though:
>
> POSIX does define pthread_cond_wait() as a cancellation point. So, if the
> calling thread is cancelled, shouldn't the condition variable handle this
> correctly?
If you use pthread_cancel, then yes, it should work. If the thread is
terminated by other means, the condition variable may end up in an inconsistent
state.
> I also observe the process sending the pthread_cond_broadcast()
> lock up if the process blocking on the condvar was interrupted with SIGINT,
> and another process is started, for instance.
What happens due to the SIGINT? Does a futex system call return EINTR or
something like that?
--
You are receiving this mail because:
You are on the CC list for the bug.