From owner-freebsd-current@FreeBSD.ORG Sun Dec 2 21:01:06 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 DC1E716A41A for ; Sun, 2 Dec 2007 21:01:06 +0000 (UTC) (envelope-from carl.shapiro@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id 36A3213C457 for ; Sun, 2 Dec 2007 21:01:06 +0000 (UTC) (envelope-from carl.shapiro@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so6446557pyb for ; Sun, 02 Dec 2007 13:01:05 -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=Jj0fSKjbsMuclHEdU8bs8oIPwKkZ1KVA7wsxXb6clo4=; b=JJcygAsTQ/TjO8C1Cn09jDyl+B3/tVGGLd8ioRk2K9ykhBQObReOXioPf0Xq1i+1/HGCspNrUuWiTWhfePEZcg9HYJxKlzHvQDF64nMDlXQdT5qAvGLZ7yTbyyFc5dYSabS3azdibM4ddh+ufPqwcN+TbQ/OXYhm8fI4oge3ymM= 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=W3DfPYr0oUhkUI2fCIgtvcxB+MTK+D46rwqrvpZUwnq5uVnQ+XisJLx3Jyz5HFxPWHQSslTLfYhtJX0eUNTn/1PnynbNRuUuP1BIVwmUjaffo+95R0uL014WJAkQAifyfh9UEiSOu12jnyL0yp9eNt98TURo01g4wA4yhbSclro= Received: by 10.150.191.10 with SMTP id o10mr2581809ybf.1196629265161; Sun, 02 Dec 2007 13:01:05 -0800 (PST) Received: by 10.150.200.6 with HTTP; Sun, 2 Dec 2007 13:01:05 -0800 (PST) Message-ID: <4dcb5abd0712021301y45ec05bv8e256fb55e08f7b4@mail.gmail.com> Date: Sun, 2 Dec 2007 13:01:05 -0800 From: "Carl Shapiro" To: "Kostik Belousov" In-Reply-To: <20071202143048.GS83121@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> <4dcb5abd0712020059m70a02a0dyf63ebdaafc2a0ead@mail.gmail.com> <20071202143048.GS83121@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 21:01:06 -0000 On Dec 2, 2007 6:30 AM, Kostik Belousov wrote: > Yes, I have the similar program to. I asked somewhat different question. > sbcl has the following code in the src/runtime/bsd-os.c: > > /* Memory fault signal on FreeBSD was changed from SIGBUS to > * SIGSEGV. */ > if (getosreldate() < 700004) > sig_memory_fault = SIGBUS; > else > sig_memory_fault = SIGSEGV; > > It shall broke in the way similar to the CMUCL, after I commit the patch > to CURRENT/RELENG_7, regardless of whether I MFC crtbrand.c fix to RELENG_6. > This is why the machdep sysctls for i386/amd64 are introduced. > > Are you satisfied with this ? I, even after help from Kris Kennaway, > still unable to provide the solution that does not broke something, at > least without manual intervention (aka sysctl). Yes, I am still satisfied with your previous patch. Workarounds such as the one above solve the problem of making source code that one is at liberty to change compatible with both FreeBSD <=6 and FreeBSD 7. The problem I am trying to solve is how to keep binaries compatible. Since FreeBSD 7 has not been formally released, I believe the impact of your patch will not be significant. There is still plenty time to change applications that implemented a workaround for an unreleased version of FreeBSD. Changing old binaries is impossible.