From: Camm Maguire <camm@enhanced.com>
To: David Watson <dwatson@cs.ucr.edu>
Cc: <linux-kernel@vger.kernel.org>, <brett@cs.ucr.edu>
Subject: Re: 2.2.x kernels not filling in siginfo_t.si_addr on SEGV?
Date: 08 Mar 2001 22:28:39 -0500 [thread overview]
Message-ID: <54itljvcwo.fsf@intech19.enhanced.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0103081610400.31071-100000@hill.cs.ucr.edu>
In-Reply-To: David Watson's message of "Thu, 8 Mar 2001 16:26:11 -0800 (PST)"
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]
Greetings, and thank you so much for your helpful reply! Was this on
an i386? I'm specifically looking for a way to do his on arm, alpha,
and sparc, and I don't believe they have the cr2 member of struct
sigcontext. Any info you might have, including where you found this
solution, would be appreciated!
Take care,
David Watson <dwatson@cs.ucr.edu> writes:
> > Greetings! Shouldn't a SIGSEGV fill in th si_addr member of the
> > siginfo_t structure passed to a signal handler? Here is what I see
>
> Our group ran into this problem last summer while we were developing the
> Oasis+ DSM system. We worked around it by utilizing the following code
> fragment:
>
> void fault_handler(int sig, siginfo_t *sip, ucontext_t *ucp)
> {
> void *addr;
>
> addr = (void *) ucp->uc_mcontext.cr2;
>
> ...
> }
>
> Hope that helps.
>
> Regards,
> David
>
> --
> The theory of groups is a branch of Mathematics in which one does
> something to something and then compares the result with the result
> obtained from doing the same thing to something else, or something else to
> the same thing.
> J. R. Newman
>
>
>
--
Camm Maguire camm@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah
next prev parent reply other threads:[~2001-03-09 3:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-09 0:26 2.2.x kernels not filling in siginfo_t.si_addr on SEGV? David Watson
2001-03-09 3:28 ` Camm Maguire [this message]
[not found] ` <20010309083035.A27596@flint.arm.linux.org.uk>
2001-03-09 22:29 ` Camm Maguire
-- strict thread matches above, loose matches on Subject: below --
2001-03-08 22:27 Camm Maguire
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=54itljvcwo.fsf@intech19.enhanced.com \
--to=camm@enhanced.com \
--cc=brett@cs.ucr.edu \
--cc=dwatson@cs.ucr.edu \
--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