[Bug nptl/13690] pthread_mutex_unlock potentially cause invalid access

triegel at redhat dot com sourceware-bugzilla@sourceware.org
Wed Jun 25 17:40:00 GMT 2014


https://sourceware.org/bugzilla/show_bug.cgi?id=13690

--- Comment #44 from Torvald Riegel <triegel at redhat dot com> ---
Looking closely, the wakeup seems to come from the CLONE_CHILD_CLEARTID that
you used, which is specified as:
       CLONE_CHILD_CLEARTID (since Linux 2.5.49)
              Erase  child thread ID at location ctid in child memory when the
              child exits, and do a wakeup on the futex at that address.

Without this flag, I don't see non-spurious wakeups anymore.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list