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/2644] Race condition during unwind code after thread cancellation


------- 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.


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