From owner-freebsd-questions@FreeBSD.ORG Mon Oct 11 17:00:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7235116A4F1 for ; Mon, 11 Oct 2004 17:00:36 +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 BA10243D31 for ; Mon, 11 Oct 2004 17:00:32 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i9BH0LLT073466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Oct 2004 18:00:21 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i9BH0Lal073465; Mon, 11 Oct 2004 18:00:21 +0100 (BST) (envelope-from matthew) Date: Mon, 11 Oct 2004 18:00:21 +0100 From: Matthew Seaman To: Vince Hoffman Message-ID: <20041011170021.GA73181@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Vince Hoffman , freebsd-questions@freebsd.org References: <20041011143307.Q94319@unsane.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <20041011143307.Q94319@unsane.co.uk> 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, 11 Oct 2004 18:00:21 +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: freebsd-questions@freebsd.org Subject: Re: portupgrade problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 17:00:36 -0000 --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 11, 2004 at 04:05:17PM +0100, Vince Hoffman wrote: > Hi all, > Got a port upgrade problem here, ruby is dumping core during a=20 > portsdb -uU (and thus any time it tries to update the portsdb. > only noticed it today but i did upgrade ruby recently so i tried followin= g=20 > the emergency recovery part in /usr/port/UPDATING and did > pkg_delete portupgrade-\* > pkg_delete -r ruby-\* > then cd /usr/ports/sysutils/portupgrade > make install clean >=20 > but no joy, i still get the same error=20 > ---------cut portupgrade error test---------- > [/root/cvsup-files] [13:59]=20 > #portsdb -uU > Updating the ports index ... Generating INDEX.tmp - please wait..test: <:= =20 > unexpected operator > Warning: Duplicate INDEX entry: freeciv-gtk2-1.14.1 > Warning: Duplicate INDEX entry: mod_jk2-apache2-2.0.2 > Warning: Duplicate INDEX entry: mod_rpaf-ap2-0.5 > Done. > done > [Updating the portsdb in /usr/ports ... - 11732 port= =20 > entries found=20 > .........1000.........2000.........3000.........4000.........5000........= .6000.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/portsd= b.rb:587:=20 > [BUG] Bus Error > ruby 1.8.2 (2004-07-29) [i386-freebsd5] >=20 > Abort (core dumped) > ------------------end of port upgrade error text---------- >=20 > uname -a >=20 > FreeBSD lobster.unsane.co.uk 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #2= :=20 > Fri Sep 17 21:45:48 BST 2004=20 > toor@lobster.unsane.co.uk:/usr/obj/usr/src/sys/UNSANE i386 >=20 > (14:40:05 <~>) 0 $ ruby -v > ruby 1.8.2 (2004-07-29) [i386-freebsd5] >=20 > any suggestions welcome Gawd. Not this *again*. Did you try searhing the web at all? http://freebsd.rambler.ru/srch?words=3D%5BBUG%5D+Bus+Error+%3E+ruby+1.8.= 2+%282004-07-29%29+%5Bi386-freebsd5%5D+solution&set=3Dfreebsd=20 Anyhow, a work-around is to: % setenv PORTS_DBDRIVER=3Dbdb1_hash and then do all your portupgrade stuff as usual. =20 The problem is with the bdb1_btree functions in the base system. A fix has been committed to HEAD, RELENG_4 and RELENG_5. It won't be applied to RELENG_5_2, so either you're going to have to extract the patch yourself and apply it manually, or you can upgrade to one of the 5.3-BETAs. http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/db/btree/bt_split.c.= diff?r1=3D1.5&r2=3D1.7 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 --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBarwliD657aJF7eIRAr4AAJ46tpQHlmtPrfhoRMJq8Lz1/D2/KACgjcye plyOZMunlKxXlGHQ768nfpw= =ftyQ -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--