From: "Kevin B. Hendricks" <kevin.hendricks@sympatico.ca>
To: Ulrich Drepper <drepper@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Catching SIGSEGV with signal() in 2.6
Date: Mon, 5 Apr 2004 23:01:27 -0400 [thread overview]
Message-ID: <200404052301.28021.kevin.hendricks@sympatico.ca> (raw)
In-Reply-To: <4072101F.3010603@redhat.com>
Hi,
> If the code would be correct you'd see the expected behavior.
> Since you jump out of a signal handling you must use siglongmp
> And sigsetjmp(check_env, 1) here.
So the code has been wrong since the beginning and we were just "lucky" it
worked in all pre-2.6 kernels?
I have no doubt you are right but forgiving my ignorance here, please explain
why must we use siglongjmp when longjmping out of a signal handler given that
1. before the next use of the handler we use signal again to properly set the
signal handler (and the set of masked signals).
and
2. the mask of blocked signals will include sigsegv upon entry to the signal
handler and therefore it will be masked after the normal longjmp since a
normal longjmp wil not change the set of masked symbols.
What am I missing that makes sigsetjmp and siglongjmp a requirement, or is
this just part of some specification someplace?
Kevin
next prev parent reply other threads:[~2004-04-06 3:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-06 0:40 Kevin B. Hendricks
2004-04-06 2:04 ` Ulrich Drepper
2004-04-06 3:01 ` Kevin B. Hendricks [this message]
2004-04-06 4:08 ` Ulrich Drepper
2004-04-06 12:02 ` Kevin B. Hendricks
2004-04-06 15:53 ` Edgar Toernig
-- strict thread matches above, loose matches on Subject: below --
2004-04-05 15:25 bero
2004-04-05 18:17 ` Jamie Lokier
2004-04-05 19:16 ` Chris Friesen
2004-04-05 20:40 ` Jamie Lokier
2004-04-05 20:59 ` Richard B. Johnson
2004-04-05 21:11 ` Chris Friesen
2004-04-05 21:12 ` Jamie Lokier
2004-04-05 21:23 ` bero
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=200404052301.28021.kevin.hendricks@sympatico.ca \
--to=kevin.hendricks@sympatico.ca \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.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®