From owner-freebsd-current@FreeBSD.ORG Wed Feb 18 01:40:16 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A567316A4CE; Wed, 18 Feb 2004 01:40:16 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E65643D1D; Wed, 18 Feb 2004 01:40:14 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i1I9fCmt055503; Wed, 18 Feb 2004 11:41:12 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i1I9fCAD055498; Wed, 18 Feb 2004 11:41:12 +0200 (EET) (envelope-from ru) Date: Wed, 18 Feb 2004 11:41:12 +0200 From: Ruslan Ermilov To: "Kenneth D. Merry" Message-ID: <20040218094111.GC54588@FreeBSD.org.ua> References: <20040216014850.GA866@panzer.kdm.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s/l3CgOIzMHHjg/5" Content-Disposition: inline In-Reply-To: <20040216014850.GA866@panzer.kdm.org> User-Agent: Mutt/1.5.5.1i cc: current@freebsd.org Subject: Re: problem with ld-elf.so.1 install X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 18 Feb 2004 09:40:16 -0000 --s/l3CgOIzMHHjg/5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 15, 2004 at 06:48:50PM -0700, Kenneth D. Merry wrote: >=20 > I just upgraded from -current as of January 31st to -current as of Februa= ry > 13th. >=20 > I'm getting core dumps in random binaries. It's not consistent, but does > happen occasionally. e.g.: >=20 [...] >=20 > Since it blew up in ld-elf.so.1, I figured I'd look there... >=20 > When I did the installworld, though, ld-elf.so.1 didn't seem to get > upgraded. (See the January 31st date below.) But when I tried to install > it manually, the install didn't fail, but didn't work either: >=20 > [ looks like we have an old binary, for some reason ] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # pwd > /usr/c/ken/perforce/FreeBSD-ken/src/libexec/rtld-elf > # ls -lao /libexec/ > total 130 > drwxr-xr-x 2 root wheel - 512 Feb 15 18:36 ./ > drwxr-xr-x 27 root wheel - 1536 Feb 15 17:30 ../ > -r-xr-xr-x 1 root wheel schg 128992 Jan 31 16:45 ld-elf.so.1* > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > [ try doing the install manually ] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # make install > chflags noschg /usr/libexec/ld-elf.so.1 > install -s -o root -g wheel -m 555 -fschg -C -b ld-elf.so.1 /libexec > install -o root -g wheel -m 444 rtld.1.gz /usr/share/man/man1 > /usr/share/man/man1/ld-elf.so.1.1.gz -> /usr/share/man/man1/rtld.1.gz > /usr/share/man/man1/ld.so.1.gz -> /usr/share/man/man1/rtld.1.gz > /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf.so.1 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > [ let's see if it worked ] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # ls -lao /libexec/ > total 130 > drwxr-xr-x 2 root wheel - 512 Feb 15 18:36 ./ > drwxr-xr-x 27 root wheel - 1536 Feb 15 17:30 ../ > -r-xr-xr-x 1 root wheel schg 128992 Jan 31 16:45 ld-elf.so.1* > # diff /libexec/ld-elf.so.1 /usr/obj/usr/c/ken/perforce/FreeBSD-ken/src/l= ibex > > Binary files /libexec/ld-elf.so.1 and /usr/obj/usr/c/ken/perforce/FreeBSD= -ken/src/libexec/rtld-elf/ld-elf.so.1 differ > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > [ it didn't work, try doing a chflags on the binary first ] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # chflags noschg /libexec/ld-elf.so.1=20 > # make install > chflags noschg /usr/libexec/ld-elf.so.1 > install -s -o root -g wheel -m 555 -fschg -C -b ld-elf.so.1 /libexec > install -o root -g wheel -m 444 rtld.1.gz /usr/share/man/man1 > /usr/share/man/man1/ld-elf.so.1.1.gz -> /usr/share/man/man1/rtld.1.gz > /usr/share/man/man1/ld.so.1.gz -> /usr/share/man/man1/rtld.1.gz > /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf.so.1 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > [ see if it worked this time ] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # ls -lao /libexec/ > total 130 > drwxr-xr-x 2 root wheel - 512 Feb 15 18:44 ./ > drwxr-xr-x 27 root wheel - 1536 Feb 15 17:30 ../ > -r-xr-xr-x 1 root wheel schg 128992 Jan 31 16:45 ld-elf.so.1* > # diff /libexec/ld-elf.so.1 /usr/obj/usr/c/ken/perforce/FreeBSD-ken/src/l= ibex > > Binary files /libexec/ld-elf.so.1 and /usr/obj/usr/c/ken/perforce/FreeBSD= -ken/src/libexec/rtld-elf/ld-elf.so.1 differ > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > [ didn't work ] >=20 > Anyone have any ideas on what I'm doing wrong here? >=20 Yes. Note the -C option to install(1). Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --s/l3CgOIzMHHjg/5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAMzM3Ukv4P6juNwoRAkkPAJ9e9Yttvmeh/FcG2wyms+EwFb/wbACdH2kC KXBVgOd9/bZioDcOaHuPTXc= =jqhb -----END PGP SIGNATURE----- --s/l3CgOIzMHHjg/5--