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 ports/4123] pthread cleanup handler not called


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


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