portupgrade をやろうとしたら
# portversion -vl”<"
—> Checking the package registry database
[Updating the pkgdb <format:dbm_hash> in /var/db/pkg … ** Database file locked. Waiting.
** Stale lock file was found. Removed.
– 635 packages found (-2 +1) (…)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:431: [BUG] Segmentation fault
ruby 1.8.6 (2008-08-11) [i386-freebsd7]
といわれてしまったので
# mv /var/db/pkg/pkgdb.db /tmp/pkgdb.db.bak
# pkgdb -F
で pkgdb.db を再構築して対応した。