portupgrade and portversion seg-fault in freebsd 6.0

TuxGirl tuxgirl at gmail.com
Thu Jan 12 20:51:00 PST 2006


Background:
The problem started while i was trying to install evince on my
machine.  The makefile told me to run gnomelogalyzer.sh to find the
problem, and that script didn't see whatever problem was preventing
the make, so it said to try a few things (most of which I'd already
done), and then to run 'portupgrade -u'.  portupgrade -u seg-faulted,
and since then portupgrade and portversion have seg-faulted every time
I've tried to run them.

Here is the output I'm getting:

[amon-re /root] portupgrade -aP
[Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... - 320
packages found (-1 +0)
(...)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:466: [BUG]
Segmentation fault
ruby 1.8.2 (2004-12-25) [i386-freebsd6]

zsh: abort (core dumped)  portupgrade -aP
[amon-re /root]

[amon-re /root] portversion -v | grep -v =
[Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... - 320
packages found (-1 +0)
(...)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:466: [BUG]
Segmentation fault
ruby 1.8.2 (2004-12-25) [i386-freebsd6]

zsh: abort (core dumped)  portversion -v |
zsh: exit 1               grep -v =
[amon-re /root]

I googled, and came across the following page:
http://www.freshports.org/sysutils/portupgrade/
However, after I attempted fixing it by changing the values of
PORTS_DEDRIVER (using 'export PORTS_DEDRIVER=dbm_hash', etc), I
noticed that according to this page, the problem only affects versions
of freebsd up to 5.3, but I'm using 6.0.  If I include "RELEASE-6.0"
in my google query, I don't find anything useful.

I tried debugging this over IRC with the president of the local bsd
users group, but he couldn't see anything immediately wrong.  I'll
include the output of the commands he had me run.  (This was after
running portsdb -Fu and portsdb -Uu):

[amon-re /root] portversion -v portupgrade
[Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... - 320
packages found (-1 +0)
(...)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:466: [BUG]
Segmentation fault
ruby 1.8.2 (2004-12-25) [i386-freebsd6]
zsh: abort (core dumped)  portversion -v portupgrade

[amon-re /root] portversion -vR portupgrade
[Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... - 320
packages found (-1 +0)
(...)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:466: [BUG]
Segmentation fault
ruby 1.8.2 (2004-12-25) [i386-freebsd6]
zsh: abort (core dumped)  portversion -vR portupgrade

[amon-re /root] for i in portupgrade ruby ruby18-bdb1; do pkg_info -Ix $i; done
portupgrade-2.0.1_1,1 FreeBSD ports/packages administration and
management tool s
ruby-1.8.2_5,1      An object-oriented interpreted scripting language
ruby18-bdb4-0.5.7   Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
pkg_info: no packages match pattern(s)

[amon-re /root] uname -sr
FreeBSD 6.0-RELEASE

I'd appreciate any ideas to resolve this problem.

Thanks,
~TuxGirl


More information about the freebsd-questions mailing list