From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 14 18:50: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 CE67F16A403 for ; Wed, 14 Mar 2007 18:50:04 +0000 (UTC) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from mail-gw4.york.ac.uk (mail-gw4.york.ac.uk [144.32.128.249]) by mx1.freebsd.org (Postfix) with ESMTP id 7D64113C459 for ; Wed, 14 Mar 2007 18:50:04 +0000 (UTC) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from buffy.york.ac.uk (buffy-128.york.ac.uk [144.32.128.160]) by mail-gw4.york.ac.uk (8.13.6/8.13.6) with ESMTP id l2EIo1aG018550; Wed, 14 Mar 2007 18:50:01 GMT Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.13.8/8.13.6) with ESMTP id l2EIo1P5085694; Wed, 14 Mar 2007 18:50:01 GMT (envelope-from gavin.atkinson@ury.york.ac.uk) Received: (from ga9@localhost) by buffy.york.ac.uk (8.13.8/8.13.6/Submit) id l2EInvGY085690; Wed, 14 Mar 2007 18:49:57 GMT (envelope-from gavin.atkinson@ury.york.ac.uk) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin.atkinson@ury.york.ac.uk using -f From: Gavin Atkinson To: pyunyh@gmail.com In-Reply-To: <20070311032426.GA79728@cdnetworks.co.kr> References: <1173567721.64488.19.camel@buffy.york.ac.uk> <20070310232353.GA57287@xor.obsecurity.org> <20070311032426.GA79728@cdnetworks.co.kr> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 14 Mar 2007 18:49:56 +0000 Message-Id: <1173898196.84471.8.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin.atkinson@ury.york.ac.uk Cc: freebsd-sparc64@freebsd.org, Kris Kennaway Subject: Re: Buildworld failure in libmagic on old system X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 18:50:04 -0000 On Sun, 2007-03-11 at 12:24 +0900, Pyun YongHyeon wrote: > 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 Thanks, your fix from this thread worked for me. It would be nie to see this committed, even though it does seem like I'm the only person seeing the problem described. I'm still slightly confused as to why my LD_PRELOAD worked around the issue, I guess it may be something to do with the new malloc()? Gavin