From owner-freebsd-stable@FreeBSD.ORG Mon Sep 13 16:01:19 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AE7316A4CE for ; Mon, 13 Sep 2004 16:01:19 +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 27D9F43D1D for ; Mon, 13 Sep 2004 16:01:17 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i8DG1B3G083638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Sep 2004 17:01:11 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8DG1BOe083637; Mon, 13 Sep 2004 17:01:11 +0100 (BST) (envelope-from matthew) Date: Mon, 13 Sep 2004 17:01:11 +0100 From: Matthew Seaman To: Yann Golanski Message-ID: <20040913160111.GA83205@happy-idiot-talk.infracaninophile.co.uk> References: <20040913153540.GA22877@kierun.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <20040913153540.GA22877@kierun.org> 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]); Mon, 13 Sep 2004 17:01:11 +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: stable@freebsd.org Subject: Re: Crash of portsdb X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2004 16:01:19 -0000 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 13, 2004 at 04:35:40PM +0100, Yann Golanski wrote: > I'm getting the following crash: >=20 > [Updating the portsdb in /usr/ports ... - 11732 port > entries found .........1000.........2000.........3000.........4000.......= ..5000.........6000.........7000.........8000..../usr/local/lib/ruby/site_r= uby/1.8/portsdb.rb:587: [BUG] Bus Error ruby 1.8.2 (2004-07-29) [i386-freeb= sd5] > Abort trap (core dumped) > Does anyone else get this? =20 You and about 10,000 other people. It's been done to death on freebsd-ports@... freebsd-questions@..., freebsd-current@..., and probably a few other mailing lists as well. The problem is a bug in the underlying BDB v1 btree implementation. Jun Kuriyama posted a couple of patched for people to try out onto freebsd-current@... -- this is the most recent one, which might even work: http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037222= .html Porting that to 4-STABLE is left as an exercise. Should be fairly easy, as the code in question hasn't been modified for 5.x (as far as I know). Otherwise, there's a nice simple low impact workaround: # setenv PORTS_DBDRIVER bdb1_hash There are some other workarounds and some variations on this workaround but you can find those for yourself by searching the various FreeBSD mailing list archives Cheers, Matthew --=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 --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBRcRHiD657aJF7eIRAr1JAJ9TX6+2t2gqQMN/Mj0cgFk/xwZLTwCePB2H +FAdp6xkeo9k8cD9yKmKnZU= =Dwg0 -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--