From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Edgar Toernig <froese@gmx.de>
Cc: Linus Torvalds <torvalds@osdl.org>,
Davide Libenzi <davidel@xmailserver.org>,
Andrew Morton <akpm@osdl.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [patch] signal handler defaulting fix ...
Date: Tue, 29 Jun 2004 14:02:01 +0200 [thread overview]
Message-ID: <20040629120201.GA24075@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <20040629032441.403163dd.froese@gmx.de>
On Tue, 29 June 2004 03:24:41 +0200, Edgar Toernig wrote:
> Linus Torvalds wrote:
> >
> > So? That program is buggy.
>
> Not the signal part. It was written for libc5. There, signals set
> with signal(2) were reset when raised (SysV-style). Leaving such a
> signal handler with longjmp was perfectly valid.
But has a very distinct problem. A segmentation fault is usually a
bug and deserves a core dump. Sane default behaviour. If the program
tells the kernel, it can handle segmentation faults on it's own, fine.
But if - while handling the fault - it creates a second one, the claim
was obviously false. Coredump, done.
Now, how can the kernel tell, whether a second segmentation fault
happened inside the handler or after successfully handling the first
one? Right, with longjmp it can't. Coredump, done.
Jörn
--
Victory in war is not repetitious.
-- Sun Tzu
next prev parent reply other threads:[~2004-06-29 12:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-28 21:34 Davide Libenzi
2004-06-28 21:40 ` Andrew Morton
2004-06-28 21:49 ` Linus Torvalds
2004-06-28 21:55 ` Davide Libenzi
2004-06-28 22:08 ` Linus Torvalds
2004-06-28 22:13 ` Davide Libenzi
2004-06-29 1:24 ` Edgar Toernig
2004-06-29 12:02 ` Jörn Engel [this message]
2004-06-28 21:49 ` Jörn Engel
[not found] <2cfBL-6uJ-9@gated-at.bofh.it>
2004-07-03 13:54 ` Kai Henningsen
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=20040629120201.GA24075@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=akpm@osdl.org \
--cc=davidel@xmailserver.org \
--cc=froese@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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: link
Be 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
all inboxes | Powered by JetHome®