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/2748] Cancel from printf not calling the cancel handler


------- Additional Comments From bergner at vnet dot ibm dot com  2006-06-13 21:45 -------
Created an attachment (id=1085)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1085&action=view)
A C version of the test case.

Here is a C version of the test case with the problematic source extracted into
its own source file (bug.c).  Compiling bug.c with -fexceptions is all that is
needed to recreate the problem.  This does fail as a 32-bit x86 app as well as
32-bit and 64-bit ppc apps.  With this test case, you no longer need to set the
env var.

  linux% ./thct_wrl2 8

The code we're having problems with from bug.c is:

void thd_thread_2 (unsigned int ndx)
{
  pthread_cleanup_push ((void (*)(void*))thd_cleanup, &ndx);
  thread_body(ndx);
  pthread_cleanup_pop (1);
}

This test case does seem to work with older glibcs (eg, 2.3.4).


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2748

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