From owner-freebsd-sparc64@FreeBSD.ORG Sun Mar 11 03:47:42 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 9FC5616A401 for ; Sun, 11 Mar 2007 03:47:42 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 7152A13C4A8 for ; Sun, 11 Mar 2007 03:47:42 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 539AD1A3C1C; Sat, 10 Mar 2007 19:47:42 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 7AC3651565; Sat, 10 Mar 2007 22:47:41 -0500 (EST) Date: Sat, 10 Mar 2007 22:47:41 -0500 From: Kris Kennaway To: Pyun YongHyeon Message-ID: <20070311034741.GA34962@xor.obsecurity.org> References: <1173567721.64488.19.camel@buffy.york.ac.uk> <20070310232353.GA57287@xor.obsecurity.org> <20070311032426.GA79728@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <20070311032426.GA79728@cdnetworks.co.kr> User-Agent: Mutt/1.4.2.2i 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: Sun, 11 Mar 2007 03:47:42 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 11, 2007 at 12:24:26PM +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: > > >=20 > > > Hi all, > > >=20 > > > 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! > > >=20 > > > Full compile log at http://www-users.york.ac.uk/~ga9/build-20070309.= txt > > >=20 > > > I suspect a libc issue because of the following: > > >=20 > > > 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# > > >=20 > > > Is this something which should be fixed in the source? I'm sure set= ting > > > the OSRELDATE=3D0 hack to tell it the world that is installed is "re= ally > > > 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? > > >=20 > > > 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. > >=20 > > There is a malloc error in that code which causes it to segfault when > > MALLOC_OPTIONS=3DAJ. Not doing this is the workaround, but someone > > should track down and fix it. > >=20 >=20 > 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. >=20 > http://lists.freebsd.org/pipermail/freebsd-current/2006-August/065115.html FYI the problem is not really sparc64 but also manifests during e.g. 6.x -> 7.0 upgrades on i386. Did you submit the fix to the author? If so and they approved it, you can just import the fix. Kris --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF83vcWry0BWjoQKURAirsAKDi/fQxAoZcR6e8tU67XyE0bwkdQACfWtL6 uHJQDl0p+XftUe3nQj+NliU= =/uaQ -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--