From owner-freebsd-ports@FreeBSD.ORG Sun Jul 27 13:40:31 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2837A1B0 for ; Sun, 27 Jul 2014 13:40:31 +0000 (UTC) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D29D72CD5 for ; Sun, 27 Jul 2014 13:40:30 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.9/8.14.9) with ESMTP id s6RDeSd6001420; Sun, 27 Jul 2014 06:40:28 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.9/8.14.9/Submit) id s6RDeRT6001419; Sun, 27 Jul 2014 06:40:27 -0700 (PDT) (envelope-from david) Date: Sun, 27 Jul 2014 06:40:27 -0700 From: David Wolfskill To: Michelle Sullivan Subject: Re: PKG 3.1.0 update - Segmentation fault: 11 Message-ID: <20140727134027.GT34525@albert.catwhisker.org> References: <53D4CE4A.3040208@webrz.net> <20140727111949.GH50802@ivaldir.etoilebsd.net> <20140727123035.GR34525@albert.catwhisker.org> <53D4F2CF.4040501@sorbs.net> <20140727125528.GS34525@albert.catwhisker.org> <53D4FD00.9050204@sorbs.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9hshNW4m6zn79FF/" Content-Disposition: inline In-Reply-To: <53D4FD00.9050204@sorbs.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: FreeBSD Ports ML X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2014 13:40:31 -0000 --9hshNW4m6zn79FF/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 27, 2014 at 03:22:08PM +0200, Michelle Sullivan wrote: > ... > > g1-252(9.3-S)[4] sudo file pkg-static.core > > Password: > > pkg-static.core: ELF 32-bit LSB core file Intel 80386, version 1 (FreeB= SD), FreeBSD-style, from '-static' > > g1-252(9.3-S)[5]=20 > > =20 >=20 > Doesn't appear stripped.. > > =20 > >> I'd be interested in seeing the backtrace... > ... > > =20 > Unless the fault smashed the stack often you can find what the > problem/cause was. If the stack is smashed you're screwed. >=20 > gdb Well, you see, that's part of the problem: I'm not at all sure where the executable in question actually is. (There is nothing named "pkg-static" in my execution search path.) If I assume(!) that it's in the port's staging area: sudo gdb ./pkg-static ../../../../../pkg-static.core =2E.. Core was generated by `pkg-static'. Program terminated with signal 11, Segmentation fault. #0 0x080b6cdc in ?? () (gdb) bt #0 0x080b6cdc in ?? () #1 0x28404360 in ?? () #2 0x28442220 in ?? () #3 0x00000000 in ?? () (gdb)=20 > ... > If you want to catch a smashed stack problem run the binary in gdb: >=20 > gdb >=20 > Then: >=20 > set args Yes; well... that presumes a familiarity with the "internal workings" of pkg which I don't have (and, in all honesty, don't want to have). > When it faults most of the time you'll get the stack just prior to the > smashing - though I have had some really bad ones when even gdb cored out= =2E. Indeed: one gets into "interesting" issues of figuring out what is actually reliable information (and what is merely debris). > ... Back on the original topic, I was able to get pkg-1.3.1 installed and apparently functioning on one system (a headless build machine -- which has the least number of ports inistalled). What I ended up doing that seems to have "worked"(?) was: * mv /var/db/pkg{,.save} * mkdir /var/db/pkg * cp -pr /var/db/pkg.save/local.sqlite /var/db/pkg * portmaster -d ports-mgmt/pkg This builds OK, then dies in installation a little peculiarly: =2E.. =3D=3D=3D=3D> Compressing man pages (compress-man) =3D=3D=3D> Installing for pkg-1.3.1 =3D=3D=3D> Checking if ports-mgmt/pkg already installed =3D=3D=3D> An older version of ports-mgmt/pkg is already installed (apr-1= =2E5.1.1.5.3_ =2E..[list of every installed port on the machine]...) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of ports-mgmt/pkg without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** [check-already-installed] Error code 1 * cd /usr/ports/ports-mgmt/pkg && make reinstall Which seems to have made constructive use of the port just built (vs. building it all over yet again)a nd installed it. I don't yet know how disruptive this has been to ... well anything (e.g., the current status of installed ports; ability to update ports in the future; ...). Peace, david --=20 David H. Wolfskill david@catwhisker.org Taliban: Evil cowards with guns afraid of truth from a 14-year old girl. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --9hshNW4m6zn79FF/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJT1QFKXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4 QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk7d1QP/iajQYn+/la9zDbXlZ1xYMh5 vB7sHRqyQUajByvb53TUz237iEQSQmc8A6vLisdlQNnOsiUgU8cpCySdCVq2qbqg HvhTX4bqNWiZ41TGqMwoI5+79LHEgH1h3osRUvcI24gwgQloJ9P0+YFUVZTIBBe4 P5hmK4SZTdY+JvXVTQyRG5GmhZtxPou5uTFJn1cYIoyJfYuDjjwfo23wS/LS21eg S11C9UiGPVZm8v9mM1W/ceF5WEL5m89AJwOcDy9hML+OGIfyTjkMEQPa7T5VjNa3 ISyZpIw13JE5bnMyFwcvNUxP3lB3tB7ZFJLcTCI82Oc3pQcfBeGwmhfV146P4NRs i/mqdISMJazU241ndjrfN8Lb8BxrR9+42FIGbM3MV+g35SuyiAV6+ED6igaEdT9B vSWOBrOqE/q7kXBrdDV6HS7dFiKX8onDgVFahNcvbScr4hK54TwcTGD9p47qwYot ktGqAOAiQOnxYv54RgrtNeWH4VesCT4Resp2F48kLLzgsoYAxssJ1/HTqwVJlRJg Jny6m/EHHZadMP+kmF6A3386yKp32hl97ehHGTT/LCFGcY5mE+v3V3tI1bLgxBtj zghlMirXkmaz7xTQ20t1SoUJLb6Szh0k/g1ssbcxbnkFpojDNz36ncbTFS8hbWV1 c4cereXdxRM2BiHtNlS5 =pRZK -----END PGP SIGNATURE----- --9hshNW4m6zn79FF/--