From owner-freebsd-current Sat Oct 2 12:21: 6 1999 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 381DA15394; Sat, 2 Oct 1999 12:20:58 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id MAA05216; Sat, 2 Oct 1999 12:20:52 -0700 (PDT) (envelope-from jdp@polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id MAA32671; Sat, 2 Oct 1999 12:20:51 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19991002011955.A85828@dragon.nuxi.com> Date: Sat, 02 Oct 1999 12:20:51 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: "David O'Brien" Subject: Re: Now that sigcontext is gone ... Cc: current@freebsd.org, Alan Cox Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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