Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Oct 1999 12:20:51 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        "David O'Brien" <obrien@freebsd.org>
Cc:        current@freebsd.org, Alan Cox <alc@cs.rice.edu>
Subject:   Re: Now that sigcontext is gone ...
Message-ID:  <XFMail.991002122051.jdp@polstra.com>
In-Reply-To: <19991002011955.A85828@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
David O'Brien wrote:
>> > P.S.  This also reminds me that FreeBSD is non-standard relative
>> > to Linux and all of the major vender commercial Unices in that a disallowed
>> > access, such as a write to a read-only region of memory, generates
>> > a SIGBUS rather than a SIGSEGV.
>> 
>> Yes, this even violates the 1996 POSIX spec.
> 
> So lets make the change for 4.0. :-)

Hang on, hang on.  This has been discussed in the mailing list
before.  Bruce pointed out that it's useful for distinguishing between
protection violations and unmapped pages.  He requested that we
first implement the SA_SIGINFO support to the point where it could
accomplish that before changing SIGBUS to SIGSEGV.  I think that makes
sense.

> Just how much code will break?

Boehm-gc, maybe.  Modula-3, maybe.  I can't remember whether it
catches both signals or just SIGBUS.

John


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.991002122051.jdp>