Bus Error in protsdb.rb updating INDEX.db

Matthew Seaman m.seaman at infracaninophile.co.uk
Fri Sep 24 01:28:26 PDT 2004


On Thu, Sep 23, 2004 at 10:56:32PM -0700, Kyle Mott wrote:
> 
> I still seem to be having this problem, yet I have tried both Method #1
> and Method #2 listed below. I couldn't find 'portindexdb' to try Method
> #0 out. Is my only option to cvsup + buildworld?
> 
> root at smith:/usr/ports# rm INDEX.db
> root at smith:/usr/ports# inplace rl /usr/ports/INDEX-5
> root at smith:/usr/ports# portsdb -fUu
> Updating the ports index ... Generating INDEX.tmp - please wait.. Done.
> done
> [Updating the portsdb <format:bdb1_btree> in /usr/ports ... - 11735 port
> entries found
> .........1000.........2000.........3000.........4000.........5000.......
> ..6000.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/po
> rtsdb.rb:587: [BUG] Bus Error
> ruby 1.8.2 (2004-07-29) [i386-freebsd4]
> 
> Abort (core dumped) 
>  

A fix for this problem was committed to RELENG_4 and RELENG_5 a few
days ago, HEAD some days before that -- so, yes cvsup and buildworld
to the head of one of those branches will fix things.  I don't think
there are any plans to commit it to any other branches though.

Failing that, and now that portindex has been withdrawn, the only
other way to get past the problem is to configure portupgrade to use a
different hashing function.  The simplest way to do that is just to
set an environment variable:

    # setenv PORTS_DBDRIVER bdb1_hash

There are several variations on that -- different DB drivers, using
pkgtools.conf to put the settings into the environment etc., but those
have been covered on this and other FreeBSD lists and you should have
no trouble searching the archives for them.

	Cheers,

	Matthew

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040924/2faafc3e/attachment-0001.bin


More information about the freebsd-ports mailing list