This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/21291] pthread cancellation fails when contending lock
- From: "dimitri.staessens at ugent dot be" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 23 Mar 2017 16:29:08 +0000
- Subject: [Bug nptl/21291] pthread cancellation fails when contending lock
- Auto-submitted: auto-generated
- References: <bug-21291-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21291
--- Comment #1 from Dimitri Staessens <dimitri.staessens at ugent dot be> ---
Created attachment 9934
--> https://sourceware.org/bugzilla/attachment.cgi?id=9934&action=edit
code example with mutexes
Dear,
we've been digging a bit deeper. It doesn't depend on the mutex being in shared
memory. The problem seems to happen only with a pthread_cond_timedwait using
the monotonic clock. I've added a new code sample, with the clock set to
CLOCK_MONOTONIC. Changing the clock to CLOCK_REALTIME has the threads cancel
correctly.
We've tested this using glibc 2.24 and 2.25 on the same Linux kernel, so we
think it's not a kernel problem.
Hope this helps to narrow things down.
best,
Dimitri
--
You are receiving this mail because:
You are on the CC list for the bug.