pb with portupgrade (segfault or cannot allocate memory)

Gregory Nou gregorynou at altern.org
Wed Jan 26 01:57:02 PST 2005


Hi,

Since I don't really know where the relevant place to post this is, I 
thought it would be ok there. If it's not the case, I would be glad 
someone would transfer it to the right location :)

I had a deep use of portupgrade/portinstall this morning. Everything was 
working pretty good (at least, it used to have the behaviour I was 
expecting), but after 2 hours, I got this :

10:45 root at alfred /usr/ports# portupgrade -P gnomevfs2-2.8.3_1
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 561 
packages found (-1 +0) (...)[Updating the pkgdb <format:bdb1_btree> in 
/var/db/pkg ... - 561 packages found (-1 +0) 
(...)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:467: [BUG] Segmentation 
fault
ruby 1.8.2 (2004-07-29) [i386-freebsd5]

zsh: abort      portupgrade -P gnomevfs2-2.8.3_1


10:46 root at alfred /usr/ports# portupgrade -P gnomevfs2
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 561 
packages found (-1 +0) (...)[Updating the pkgdb <format:bdb1_btree> in 
/var/db/pkg ... - 561 packages found (-1 +0) 
(...)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:239:in `origin': Cannot 
allocate memory: Cannot update the pkgdb!] (PkgDB::DBError)
        from /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:178:in `origin'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:913:in `tsort_build'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `each'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `tsort_build'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:929:in `sort_build'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:933:in `sort_build!'
        from /usr/local/sbin/portupgrade:674:in `main'
        from /usr/local/sbin/portupgrade:207:in `initialize'
        from /usr/local/sbin/portupgrade:207:in `new'
        from /usr/local/sbin/portupgrade:207:in `main'
        from /usr/local/sbin/portupgrade:1845
zsh: exit 1     portupgrade -P gnomevfs2

Any idea ?
I cannot figure why it suddently segfaulted, and why the  errors are not 
at the same line.

Thx

-- 
Grégory


More information about the freebsd-questions mailing list