Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Sep 2004 15:34:23 +0200
From:      gareth <bsd@lordcow.org>
To:        stable@freebsd.org
Subject:   Re: Crash of portsdb
Message-ID:  <20040920133423.GA8608@lordcow.org>
In-Reply-To: <20040913160111.GA83205@happy-idiot-talk.infracaninophile.co.uk>
References:  <20040913153540.GA22877@kierun.org> <20040913160111.GA83205@happy-idiot-talk.infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <format:bdb1_btree> 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 <format:bdb1_btree> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040920133423.GA8608>