From: "Clifford T. Matthews" <ctm@ardi.com>
To: Chris Wright <chrisw@osdl.org>
Cc: "Clifford T. Matthews" <ctm@ardi.com>, linux-kernel@vger.kernel.org
Subject: Re: trouble trapping SEGV on 2.6.11.2 & 2.6.12-rc4
Date: Tue, 24 May 2005 15:23:23 -0600 [thread overview]
Message-ID: <17043.39755.573568.293067@newbie.ardi.com> (raw)
In-Reply-To: <20050524204310.GJ23013@shell0.pdx.osdl.net>
>>>>> "Chris" == Chris Wright <chrisw@osdl.org> writes:
Chris> 2.6 has been fixed... So your program (which happens to be
Chris> slightly buggy) no longer works as you expected. See
Chris> below.
Thanks for the quick response. Using sigsetjmp and siglongjmp makes
the program print two lines.
I read the setjmp / sigsetjmp documentation and misunderstood it.
I had already seen that if I inserted "signal (SIGSEGV, segv_handler)"
before the second setjmp (not sigsetjmp), the program (under 2.6
kernels) still would die.
I guess what happens there is that after coming back from the longjmp,
the error handler is still segv_handler, but the receipt of the SEGV
signal itself is blocked and if you take a SEGV when the receipt of
SEGV is blocked a program dies with a SEGV, even if you have a SEGV
handler.
--Cliff Matthews <ctm@ardi.com>
next prev parent reply other threads:[~2005-05-24 21:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-24 20:31 Clifford T. Matthews
2005-05-24 20:43 ` Chris Wright
2005-05-24 21:23 ` Clifford T. Matthews [this message]
2005-05-24 21:14 ` Richard B. Johnson
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=17043.39755.573568.293067@newbie.ardi.com \
--to=ctm@ardi.com \
--cc=chrisw@osdl.org \
--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®