This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/5240] Pthread hang where there are still waiters when mutex is in "unlocked" state.
- From: "rsa at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Nov 2007 23:20:27 -0000
- Subject: [Bug nptl/5240] Pthread hang where there are still waiters when mutex is in "unlocked" state.
- References: <20071101170311.5240.rsa@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From rsa at us dot ibm dot com 2007-11-27 23:20 -------
Created an attachment (id=2112)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2112&action=view)
Simplified testcase with cleaner termination path.
The fixed worked perfectly on POWER6. On POWER5 I kept running into a
segmentation fault in the exit() path of the test-case.
The test-case is problematic since the exit() in the child thread's
thread_exit() function causes process termination which ends up sending two
threads down the glibc exit() pipeline at the same time and the linked list of
exit handlers and ends up dereferencing a pointer which has already been
zeroed.
I've modified the test case to demonstrate a more appropriate exit strategy
(which also ends up simplifying the testcase).
I think this bug is resolved.
Thanks for the fix Ulrich.
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2070 is|0 |1
obsolete| |
http://sourceware.org/bugzilla/show_bug.cgi?id=5240
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.