pthread_mutex_timedlock segfault on multi-proc x86_64
Bug #284672 reported by
Gavin Scott
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
There is a race condition in __lll_mutex_
http://
This bug affects Ubuntu 8.04's libc6 package, which is based on glibc 2.7 (which Ulrich Drepper describes as "outdated code" above), and is easily reproducible using the program in the above bug (on multi-processor or multi-core x86_64 machines).
To post a comment you must log in.
I've tested Dennis Lubert's proposed fix (in the bugzilla link above), and it fixes the crash for me. I frankly don't understand the workings of the assembly function enough to comment on whether the fix is "correct", but his reasoning in the bug report make sense to me. Sample patch is attached.