From owner-freebsd-hackers Fri Nov 10 12:11:01 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA09154 for hackers-outgoing; Fri, 10 Nov 1995 12:11:01 -0800 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA09145 for ; Fri, 10 Nov 1995 12:10:55 -0800 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA04257; Fri, 10 Nov 1995 13:04:41 -0700 From: Terry Lambert Message-Id: <199511102004.NAA04257@phaeton.artisoft.com> Subject: Re: larry: you might want to add this to lmbench (but i'm not sure) To: rminnich@Sarnoff.COM (Ron G. Minnich) Date: Fri, 10 Nov 1995 13:04:41 -0700 (MST) Cc: terry@lambert.org, lm@slovax.engr.sgi.com, hackers@FreeBSD.org, waa@aurora.cis.upenn.edu, deraadt@theos.com, chuck@maria.wustl.edu In-Reply-To: from "Ron G. Minnich" at Nov 10, 95 02:40:58 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 958 Sender: owner-hackers@FreeBSD.org Precedence: bulk > terry, you make some interesting points. I'm curious about one comment > though: > > > You must have explicitly turned off SIGSEGV and SIGBUS in order to > > perform these tests. One wonders how much of your time is spent in > > the sigtrampoline code: another case of a failure path requiring > > optimization to better the score. > > did you read the code? I appended it to the end of the message. It's > fairly simple. Ah. Sorry. I only read the technical decription. I've now gone back and read the code. The EFAULT return saves you. I'd actually hope that programs that got this kind of error would be murdered by the OS. Code that didn't check its return values in the face of such an error shouldn't be allowed to continue running. Bad moral convictions on the part of POSIX. 8-(. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.