Crash of portsdb

gareth bsd at lordcow.org
Mon Sep 20 06:34:27 PDT 2004


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 at ... freebsd-questions at ..., freebsd-current at ..., 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 at ... -- 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


More information about the freebsd-stable mailing list