This is the mail archive of the glibc-bugs@sourceware.org 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]
Other format: [Raw text]

[Bug nptl/21291] pthread cancellation fails when contending lock


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.

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