From owner-freebsd-current@FreeBSD.ORG Sat Jan 8 19:31:04 2011 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 D3DBB1065695 for ; Sat, 8 Jan 2011 19:31:04 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id C5E858FC0A for ; Sat, 8 Jan 2011 19:31:03 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:9851:3b44:3a32:d7a0] (unknown [IPv6:2001:7b8:3a7:0:9851:3b44:3a32:d7a0]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B0BEB5C5A; Sat, 8 Jan 2011 20:31:02 +0100 (CET) Message-ID: <4D28BB7B.3080004@FreeBSD.org> Date: Sat, 08 Jan 2011 20:31:07 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.14pre) Gecko/20110104 Lanikai/3.1.8pre MIME-Version: 1.0 To: Anonymous References: <4D277E4B.1030006@FreeBSD.org> <864o9kfc52.fsf@gmail.com> In-Reply-To: <864o9kfc52.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: HEADS UP: Merge of binutils 2.17 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: Sat, 08 Jan 2011 19:31:04 -0000 On 2011-01-08 01:54, Anonymous wrote: > Looks like lang/sbcl doesn't like new ld(1), here on amd64. > Same error when building using devel/binutils. Can you reproduce? ... > //doing warm init - compilation phase > This is SBCL 1.0.43, an implementation of ANSI Common Lisp. > More information about SBCL is available at. > > SBCL is free software, provided as is, with absolutely no warranty. > It is mostly in the public domain; some portions are provided under > BSD-style licenses. See the CREDITS and COPYING files in the > distribution for more information. > Bus error Yes, it gives a bus error here too, at least on amd64. I found a similar thread about such an issue with sbcl, started by you in March 2009: http://lists.freebsd.org/pipermail/freebsd-current/2009-March/004690.html It looks like in this case, the same problem happens, it eats large amounts of memory, and then dies (this is on a box with 4G RAM and a few G of swap): PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 33512 dim 1 111 0 8244M 3055M CPU1 1 0:54 68.99% sbcl Obviously, when it tries to actually access stuff that is above the total virtual memory of the box, it will die. In any case, the workaround in that previous thread (setting the sysctl machdep.prot_fault_translation=2) works for me, at least to let the port build to completion, and install succesfully. Now, in the previous report, it seems there was something going on with .note.ABI-tag sections, which needed a kernel fix. And since Kostik is now introducing new .note sections, for the non-executable stack feature, it may be that I just hit a window where it is not entirely complete? The last sync of binutils-2.17 with head was at r217118, just after the introduction of those .note sections, but before several related changes in the kernel and other areas. I will sync the binutils-2.17 branch again, and see if that helps the port to build without setting the workaround sysctl.