From owner-freebsd-ports@FreeBSD.ORG Tue Sep 14 19:58:03 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8ECA16A4CE for ; Tue, 14 Sep 2004 19:58:03 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 714DB43D1F for ; Tue, 14 Sep 2004 19:58:02 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i8EJvueJ016416 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Sep 2004 20:57:56 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8EJvunq016415; Tue, 14 Sep 2004 20:57:56 +0100 (BST) (envelope-from matthew) Date: Tue, 14 Sep 2004 20:57:56 +0100 From: Matthew Seaman To: adstro@stny.rr.com Message-ID: <20040914195756.GB15676@happy-idiot-talk.infracaninophile.co.uk> References: <11a964311a9cf4.11a9cf411a9643@nyroc.rr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XOIedfhf+7KOe/yw" Content-Disposition: inline In-Reply-To: <11a964311a9cf4.11a9cf411a9643@nyroc.rr.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Tue, 14 Sep 2004 20:57:57 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: ports@freebsd.org Subject: Re: portupgrade bus error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 19:58:04 -0000 --XOIedfhf+7KOe/yw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 14, 2004 at 02:49:46PM -0400, adstro@stny.rr.com wrote: > I had been getting the bus error when running portupgrade. I did > poking around and found a solution on a FreeBSD mailing list. The > solution was to "setenv PORTS_DBDRIVER bdb1_hash". This seems to > work. My question, is this the best solution to use for the time > being? I think so. The bug is in the Berkeley DB v 1.65 btree code in the base system -- the BDB v1.65 *hash* implementation is not affected. About the only downside is that the various portsdb or portupgrade operations might take a few milliseconds longer. There have been three or so patches of various degrees of efficacy put up for testing on freebsd-current@... by Jun Kuriyama (the latest being a port of what the netbsd folks did to fix this problem, which is probably going to do the trick). Chances are this is going to be fixed in 6-CURRENT fairly soon, and MFC'd to RELENG_5, RELENG_4 and maybe even RELENG_4_10 within a few days of that. Once you've updated to a patched base system, you can revert to normal operation simply by not setting that environment variable any more. Cheers, Matthew=09 --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --XOIedfhf+7KOe/yw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBR01EiD657aJF7eIRAitIAJ9LSL1tMbGjBs5Qmbj5RSr2i9QNuACdHHax oVmgtQ0WEkuGpuCKrlNFQ20= =7FnL -----END PGP SIGNATURE----- --XOIedfhf+7KOe/yw--