This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug ports/4123] pthread cleanup handler not called
- From: "kr at cybsft dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Sep 2007 17:37:52 -0000
- Subject: [Bug ports/4123] pthread cleanup handler not called
- References: <20070302151826.4123.mkes@ra.rockwell.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From kr at cybsft dot com 2007-09-08 17:37 -------
Created an attachment (id=1993)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1993&action=view)
Tar file containing test program to produce the behavior with pthread_exit.
In addition, the cleanup handlers are sometimes not called from pthread_exit as
well. I tried to reproduce this with the simple test program previously
provided but could not. So I added what was a standalone openmotif messagebox
app into the program in order to reproduce it. I changed the main function in
messagebox.cpp to main_display and called it from the ThreadBody function. Then
pthread_exit is called from MessageBox::ButtonCallback which is called upon
pressing the OK button. pthread_exit should call the cleanup functions that
were put on the cleanup stack in ThreadBody. To produce this behavior build the
three source files using: g++ -o cleanuptest2 -lpthread -lXm -lXt
cleanuptest2.cpp messagebox.cpp. To produce the correct behavior just add
-fno-exceptions as in the original test.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4123
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.