public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "drepper at redhat dot com" <sourceware-bugzilla@sources.redhat.com> To: glibc-bugs@sources.redhat.com Subject: [Bug libc/221] C++ throw terminates ucontext_t context, instead of returning via uc_link Date: Tue, 10 Aug 2004 02:26:00 -0000 [thread overview] Message-ID: <20040810022611.23018.qmail@sourceware.org> (raw) In-Reply-To: <20040616095113.221.a.darovskikh@compassplus.ru> ------- Additional Comments From drepper at redhat dot com 2004-08-10 02:26 ------- User contexts are no threads. And they won't behave like this. If you don't catch an exception in one context the whole process dies. That's the correct behavior. Not even threads have today the functionality of selecting whether only one thread gets terminated in case of an uncaught exception, or as usual the whole process. There are talks about adding this extension and this actually might make sense. For contexts all this is so underspecified that adding this functionality leads to more problems. Like, throw and exceptions from a signal handler; if the currently used context is not prepared this will kill it even though the event has nothing to do with the context. And what would it mean if the currently used context is replaced with the one addressed by uc_link? The old context is not really destroyed. It can always be restarted. The whole point behind user contexts is that they under complete control of the user code. The user code must control the lifespan of the contexts. The runtime cannot meddle with it. And it is very simple for the user to implement something adequately: just install the correct catch blocks in the initial function registered with makecontext. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX http://sources.redhat.com/bugzilla/show_bug.cgi?id=221 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
prev parent reply other threads:[~2004-08-10 2:26 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-06-16 9:51 [Bug libc/221] New: " a dot darovskikh at compassplus dot ru 2004-06-16 9:54 ` [Bug libc/221] " a dot darovskikh at compassplus dot ru 2004-06-18 4:56 ` a dot darovskikh at compassplus dot ru 2004-06-18 11:18 ` jakub at redhat dot com 2004-06-18 11:32 ` a dot darovskikh at compassplus dot ru 2004-08-10 2:26 ` drepper at redhat dot com [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040810022611.23018.qmail@sourceware.org \ --to=sourceware-bugzilla@sources.redhat.com \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).