This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug nptl/400] "return V;" and "pthread_exit(V) ;" don't behave the same way.
- From: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Sep 2004 08:32:24 -0000
- Subject: [Bug nptl/400] "return V;" and "pthread_exit(V) ;" don't behave the same way.
- References: <20040923082036.400.sebastien.decugis@ext.bull.net>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From jakub at redhat dot com 2004-09-23 08:32 -------
Your testcase invokes undefined behaviour.
See
http://www.opengroup.org/onlinepubs/009695399/functions/pthread_cleanup_pop.html
The effect of the use of return, break, continue, and goto to prematurely leave a
code block described by a pair of pthread_cleanup_push() and
pthread_cleanup_pop() functions calls is undefined.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sources.redhat.com/bugzilla/show_bug.cgi?id=400
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.