From owner-freebsd-sparc64@FreeBSD.ORG Sun Mar 11 03:47:04 2007 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DEC8C16A400 for ; Sun, 11 Mar 2007 03:47:04 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 6C96113C441 for ; Sun, 11 Mar 2007 03:47:04 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so1718454ugh for ; Sat, 10 Mar 2007 19:47:03 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=b5/IPyqgsZvM/GppBJBPoTM6o39anDNO64KNr+dHlnn0SNaNhdDhvN+FANggoBMG7hpcbCAgrk8FlPcn7mpmZ45Bi1sfWKs7FFwxlyvrcOFXziHqLoD+s9T8T1Z2xg0mPYR4dkUAkcndymF5gqIhycW4MzHD/LWKfFeRbqAFYMQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=DE1+Fsx8KSlBOxE+dbAPvpyy/KIOsnM7hzqAp1yude0SUK5aHSoNI1kV4LieM16I8mqjYcfb2/TH+WNtA24pLSQlTE9Ev7HAmMLvWDjSBO6zDtcJytoVoeJwYpQ6QjGXw8uQFoJ1voGG0JtgE+fde3a0Bbkey2MTUUy0Lb3rAy0= Received: by 10.115.111.1 with SMTP id o1mr684738wam.1173583358360; Sat, 10 Mar 2007 19:22:38 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id y11sm12809696pod.2007.03.10.19.22.36; Sat, 10 Mar 2007 19:22:37 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id l2B3OUxT079851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 Mar 2007 12:24:30 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l2B3ORnq079850; Sun, 11 Mar 2007 12:24:27 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sun, 11 Mar 2007 12:24:26 +0900 From: Pyun YongHyeon To: Kris Kennaway Message-ID: <20070311032426.GA79728@cdnetworks.co.kr> References: <1173567721.64488.19.camel@buffy.york.ac.uk> <20070310232353.GA57287@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070310232353.GA57287@xor.obsecurity.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-sparc64@freebsd.org Subject: Re: Buildworld failure in libmagic on old system X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 03:47:05 -0000 On Sat, Mar 10, 2007 at 06:23:53PM -0500, Kris Kennaway wrote: > On Sat, Mar 10, 2007 at 11:02:01PM +0000, Gavin Atkinson wrote: > > > > Hi all, > > > > I've been seeing a build failure on sparc64 for a while on one of my > > machines, last built Thu Dec 8 13:52:22 GMT 2005 (yes, I know it's > > old!), where it looks like there's some issue with which version of libc > > gets used. I've been trying to upgrade this every two months or so > > since then, without success, so it's time to report it! > > > > Full compile log at http://www-users.york.ac.uk/~ga9/build-20070309.txt > > > > I suspect a libc issue because of the following: > > > > leeloo# pwd > > /usr/obj/usr/src/lib/libmagic > > leeloo# ./mkmagic magic > > Segmentation fault (core dumped) > > leeloo# echo $LD_PRELOAD > > LD_PRELOAD: Undefined variable. > > leeloo# setenv LD_PRELOAD /usr/obj/usr/src/lib/libc/libc.so.7 > > leeloo# echo $LD_PRELOAD > > /usr/obj/usr/src/lib/libc/libc.so.7 > > leeloo# ./mkmagic magic > > leeloo# > > > > Is this something which should be fixed in the source? I'm sure setting > > the OSRELDATE=0 hack to tell it the world that is installed is "really > > old" may well fix it, and I'm happy to do that, I'm just wondering if > > something is not being rebuilt somewhere where it should be? > > > > There is one Google hit with a similar problem - > > http://lists.freebsd.org/pipermail/freebsd-sparc64/2006-June/004159.html > > - which is a tinderbox failure in June 2006. I'm pretty sure I first > > saw the problem before that (although I could be wrong). I also can't > > seem to see any commit that would have got the tinderbox working. > > There is a malloc error in that code which causes it to segfault when > MALLOC_OPTIONS=AJ. Not doing this is the workaround, but someone > should track down and fix it. > Long time ago I've encountered the same problem on sparc64 and I posted possible fix to CURRENT. However I didn't receive any comments form obrien@ since then. See the follow thread and posted patch. http://lists.freebsd.org/pipermail/freebsd-current/2006-August/065115.html > Kris -- Regards, Pyun YongHyeon