This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/2644] Race condition during unwind code after thread cancellation
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 May 2006 17:32:39 -0000
- Subject: [Bug nptl/2644] Race condition during unwind code after thread cancellation
- References: <20060507135630.2644.batneil@thebatcave.org.uk>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2006-05-07 17:32 -------
What compiler do you use? Mine doesn't generate this code.
Anyway, this is a pretty heavy handed solution. It forces the compiler to load
the value twice while in fact you only want to reload when pthread_cancel_init
was called.
Instead, try replacing each call of pthread_cancel_init with an approriate call like
{
pthread_cancel_init ();
asm volatile ("" : "=m" (libgcc_s_result));
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=2644
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.