Bus Error in protsdb.rb updating INDEX.db

Kyle Mott kyle at xraided.net
Thu Sep 23 22:56:38 PDT 2004


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) 
 

 

-Kyle Mott



> -----Original Message-----
> From: owner-freebsd-ports at freebsd.org
[mailto:owner-freebsd-ports at freebsd.org] On Behalf Of Steve Hodgson
> Sent: Saturday, September 04, 2004 3:55 AM
> To: freebsd-ports at freebsd.org
> Cc: ports at freebsd.org; Michael Edenfield; Dan Finn
> Subject: Re: Bus Error in protsdb.rb updating INDEX.db
> 
> On Friday 03 September 2004 23:06, Michael Edenfield wrote:
> > * Dan Finn <dhrider at gmail.com> [040903 18:04]:
> > > How do you tell ruby to skip that line?  That might be at least a
> > > usable hack for some of us until this is fixed.
> 
> After installing sysutils/portindex, have a look
> in /usr/local/share/doc/portindex/README.txt
> 
> Looks like this is all old news
> 
> Quote>>
> 
> Possible problems with portsdb -u
> =================================
> 
> If portsdb -u fails because of bug in Ruby, delete incorrectly
> created INDEX.db file and reorder lines in INDEX file. Ruby is
sensitive
> to order of lines in INDEX file. With index generated by original
> make index procedure Ruby can still crash, but less likely.
> 
> #Method 0
> Use portindexdb program. Works fast and nicely. Of course, categories
> are not generated, so if you are using in ignore by category feature
> in pkgtools.conf....
> 
> #Method 1
> Use script like this:
> 
> ``
> sort < INDEX-5 > INDEX-5.sorted
> mv INDEX-5.sorted INDEX-5
> ``
> 
> #Method 2
> Or you can install ports textproc/rl and misc/inplace. Then use
> ``
> inplace rl /usr/ports/INDEX-5
[Rest of message truncated]



More information about the freebsd-ports mailing list