From owner-freebsd-stable@FreeBSD.ORG Mon Sep 20 13:34:27 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 19F9416A4CE for ; Mon, 20 Sep 2004 13:34:27 +0000 (GMT) Received: from smtp1.uct.ac.za (smtp1.uct.ac.za [137.158.128.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7CDA43D2D for ; Mon, 20 Sep 2004 13:34:25 +0000 (GMT) (envelope-from lordcow@lhc.phy.uct.ac.za) Received: from anubis.uct.ac.za ([137.158.128.125]) by smtp1.uct.ac.za with esmtp (Exim 4.30; FreeBSD) id 1C9OJC-000Epk-DD for stable@freebsd.org; Mon, 20 Sep 2004 15:34:22 +0200 Received: from lhc.phy.uct.ac.za ([137.158.37.93]) by anubis.uct.ac.za with esmtp (Exim 4.30; FreeBSD) id 1C9OJC-000MDA-MC for stable@freebsd.org; Mon, 20 Sep 2004 15:34:22 +0200 Received: from lordcow by lhc.phy.uct.ac.za with local (Exim 3.36 #1 (Debian)) id 1C9OJD-0002HG-00 for ; Mon, 20 Sep 2004 15:34:23 +0200 Date: Mon, 20 Sep 2004 15:34:23 +0200 From: gareth To: stable@freebsd.org Message-ID: <20040920133423.GA8608@lordcow.org> References: <20040913153540.GA22877@kierun.org> <20040913160111.GA83205@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040913160111.GA83205@happy-idiot-talk.infracaninophile.co.uk> User-Agent: Mutt/1.5.6+20040722i Sender: Cow 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, 20 Sep 2004 13:34:27 -0000 On Mon 2004-09-13 (17:01), Matthew Seaman wrote: > On Mon, Sep 13, 2004 at 04:35:40PM +0100, Yann Golanski wrote: > > I'm getting the following crash: > > > > [Updating the portsdb in /usr/ports ... - 11732 port > > entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:587: [BUG] Bus Error ruby 1.8.2 (2004-07-29) [i386-freebsd5] > > Abort trap (core dumped) > > Does anyone else get this? > > 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 i gave that a shot ta, & it fixed portsdb, but then i get this: # portversion [Failed `inappropriate file type or format'] [Updating the portsdb in /usr/ports ... - 11733 port entries found .........1000.........2000.........3000.........4000.........5000......./usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:587: [BUG] Segmentation fault ruby 1.8.2 (2004-07-29) [i386-freebsd5] so i went back to using portindex & portindexdb (but when i ran them in a cronjob i got: "env: python: No such file or directory", took awhile to figure out that /etc/crontab defined a new PATH which didn't include /usr/local/bin/). so 'nyway that's fine for now, except for this which isn't actually a problem, just weird?: # /usr/local/sbin/portupgrade -arR cd: can't cd to /usr/ports/sysutils/portindex & that's caus /usr/ports/sysutils/portindex/ doesn't exist all've a sudden, even tho i installed it from there awhile back