From owner-freebsd-current@FreeBSD.ORG Sun Dec 2 08:59:17 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 166CA16A468 for ; Sun, 2 Dec 2007 08:59:17 +0000 (UTC) (envelope-from carl.shapiro@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id ACABF13C478 for ; Sun, 2 Dec 2007 08:59:16 +0000 (UTC) (envelope-from carl.shapiro@gmail.com) Received: by wr-out-0506.google.com with SMTP id 68so2290087wra for ; Sun, 02 Dec 2007 00:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=IpUaFm7YvPeLWVS+MJB7AyrCjMTpMKdkVRkfxVoR0XQ=; b=WwYg9JYxpES27Pf3ce9u1gvLJSyyJ21g4Y1TRk2J2hItGdOvqMb8zi9QX9NPA4xw/FbPN25bVFHLAhJZZ7qimfM9Ro6yUphAfXe42r4u5oEzWZjgStl3BqXokuph3wvBrb0HvfqDwoCTHfJZ9eU5OORbrm8tmWanj3pNHjWmX54= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IauLPIxgSPyJPpRH0XZNMg5o72WdLL/p1BpLh9TpOLjfPJ6Z9wdeSCF6tJ1/lOTmJmKAuwEFzqHE43CzA0O11T3TTskBMx6tHGwig6hzEe3wVFkmV+0AESotYtTywud0Re8Ke7fk/VW6oR6JAIUaukzXljo2pvJsXJfz+Fl6dzU= Received: by 10.150.143.14 with SMTP id q14mr2400815ybd.1196585955934; Sun, 02 Dec 2007 00:59:15 -0800 (PST) Received: by 10.150.200.6 with HTTP; Sun, 2 Dec 2007 00:59:15 -0800 (PST) Message-ID: <4dcb5abd0712020059m70a02a0dyf63ebdaafc2a0ead@mail.gmail.com> Date: Sun, 2 Dec 2007 00:59:15 -0800 From: "Carl Shapiro" To: "Kostik Belousov" In-Reply-To: <20071202054815.GQ83121@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4dcb5abd0711290226u69105089ya10526519e5cc12d@mail.gmail.com> <20071129112824.GD83121@deviant.kiev.zoral.com.ua> <4dcb5abd0711292235k2bc2af86t45f7268d429c03ad@mail.gmail.com> <20071130152631.GJ83121@deviant.kiev.zoral.com.ua> <4dcb5abd0712012042m6e6cd00br3c9e72c97f047ee5@mail.gmail.com> <20071202054815.GQ83121@deviant.kiev.zoral.com.ua> Cc: freebsd-current@freebsd.org, davidxu@freebsd.org Subject: Re: Serious compatibility breakage in -current. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Dec 2007 08:59:17 -0000 On Dec 1, 2007 9:48 PM, Kostik Belousov wrote: > Is this some new code ? I did tested it on CLUCL-19d compiled for > RELENG_6. Also, the sigbus_handler() from lisp/FreeBSD-os.c rev 1.12 > does not contain the check, it seems (that describes why it worked for > me). Okay, this clearly explains why we are seeing different things. The si_code check was added in version 1.16. This postdates the release of CMUCL your first patch was tested against. Incidentally, I added that check to the SIGBUS handler and should have known that it does not appear in a formal release. Sorry about that. > Could you, please, describe what was tested in more details ? Did > you run the CMUCL (and sbcl) with the patch ? If yes, could you, please, > show the file(1) output on the bin/lisp and bin/sbcl binary ? I have a small test program that maps a page with PROT_NONE and generates a protection violation by writing a byte to it. The "mmap6" executable was compiled on a FreeBSD 6.1 system. The "mmap7" executable was compiled on my 7.0-BETA3 system with your patch applied. Below is a transcript of these two programs being run on the patched 7.0-BETA3 system. freebsd7% file mmap6 mmap6: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), not stripped freebsd7% ./mmap6 __FreeBSD_version=601000 signum=10,info->si_code=12,context=0xbfbfe9d0 freebsd7% file ./mmap7 ./mmap7: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700055), dynamically linked (uses shared libs), FreeBSD-style, not stripped freebsd7% ./mmap7 __FreeBSD_version=700055 signum=11,info->si_code=2,context=0xbfbfe9e0 The source code to this program is in a bug report I submitted a few days ago and errantly filed under "misc". Please visit http://www.freebsd.org/cgi/query-pr.cgi?pr=118304 and page down to the "How-To-Repeat" heading. I have also recompiled CMUCL on a FreeBSD 7 system starting with a FreeBSD 6 binary and everything seems to work. I believe the output of my small test program provides sufficient proof that the interfaces we rely on are working as expected.