From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 31 19:41:36 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04F3016A426 for ; Tue, 31 Jan 2006 19:41:36 +0000 (GMT) (envelope-from jasone@freebsd.org) Received: from lh.synack.net (lh.synack.net [204.152.188.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 454B343D58 for ; Tue, 31 Jan 2006 19:41:35 +0000 (GMT) (envelope-from jasone@freebsd.org) Received: by lh.synack.net (Postfix, from userid 100) id 236BE5E48ED; Tue, 31 Jan 2006 11:41:35 -0800 (PST) Received: from [192.168.2.95] (unknown [66.225.13.210]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by lh.synack.net (Postfix) with ESMTP id BCAA55E4883; Tue, 31 Jan 2006 11:41:33 -0800 (PST) In-Reply-To: <3458D5B9-860C-4185-9359-1F48FC35B048@brooknet.com.au> References: <3458D5B9-860C-4185-9359-1F48FC35B048@brooknet.com.au> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <31986988-9FB7-4EFC-986B-50DB99934E32@freebsd.org> Content-Transfer-Encoding: 7bit From: Jason Evans Date: Tue, 31 Jan 2006 11:41:35 -0800 To: Sam Lawrance X-Mailer: Apple Mail (2.746.2) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on lh.synack.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.4 Cc: freebsd-hackers@freebsd.org Subject: Re: Which signal occurs due to a page protection violation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 19:41:36 -0000 On Jan 31, 2006, at 1:06 AM, Sam Lawrance wrote: > ElectricFence is failing during its self test on i386 7-current: > > Testing Electric Fence. > After the last test, it should print that the test has PASSED. > EF_PROTECT_BELOW= && EF_PROTECT_FREE= && EF_ALIGNMENT= && ./eftest > Segmentation fault (core dumped) > *** Error code 139 > > The program intentionally overruns and underruns buffers in order > to test the functionality of ElectricFence. > I think it's failing because: > 1) the new jemalloc is actually catching the problem and throwing > SIGSEGV > 2) ElectricFence is being compiled with - > DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS on that platform. I'm not sure about this, but I think the change of which signal occurs is unrelated to jemalloc. I think Kris Kennaway at one point told me that jemalloc broke the efence port, but then later retracted that claim when efence also failed on a machine that was still using phkmalloc. This may be due to a signal delivery bugfix that someone put in, probably in early December 2005. Jason