This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug nptl/415] pthread_cancel does not unwind stack when thread is cancelled inside signal handler
- From: "yufeng_xiong at ltx dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Oct 2004 14:22:20 -0000
- Subject: [Bug nptl/415] pthread_cancel does not unwind stack when thread is cancelled inside signal handler
- References: <20040929190407.415.yufeng_xiong@ltx.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From yufeng_xiong at ltx dot com 2004-10-01 14:22 -------
Dear Ulrich,
I want to make one correction: I tried call pthread_exit from the signal
handler and it works, thread stack unwinds and local objects get destructed,
that's good news.
Now the question is that since the standard says all Pthread functions are not
safe to be used inside signal handler, how safe it is in reality to use
pthread_exit inside signal handler on Linux using NPTL?
Thanks very much.
Yufeng
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=415
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.