Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2006 21:50:58 -0700
From:      TuxGirl <tuxgirl@gmail.com>
To:        questions@freebsd.org
Subject:   portupgrade and portversion seg-fault in freebsd 6.0
Message-ID:  <6e4453640601122050k445515bdtbf2940e8b399284f@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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 =3D
[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 =3D
[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=3Ddbm_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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6e4453640601122050k445515bdtbf2940e8b399284f>