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: "dimitri.staessens at ugent dot be" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 24 Apr 2017 16:28:20 +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
Dimitri Staessens <dimitri.staessens at ugent dot be> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dimitri.staessens at ugent dot be
--- Comment #1 from Dimitri Staessens <dimitri.staessens at ugent dot be> ---
Hi,
I'm following the nptl bugs since we found some apparent ones ourselves in
2.25.
I looked at your code and it could be you are depending on undefined behaviour.
When you abort and restart the process, shouldn't you use a robust mutex? Can
you try that?
http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutexattr_setrobust.html
and check if the calls set errno values to EOWNERDEAD or ENOTRECOVERABLE.
cheers,
Dimitri
--
You are receiving this mail because:
You are on the CC list for the bug.