portupgrade problem

Matthew Seaman m.seaman at infracaninophile.co.uk
Mon Oct 11 10:00:36 PDT 2004


On Mon, Oct 11, 2004 at 04:05:17PM +0100, Vince Hoffman wrote:
> Hi all,
> 	Got a port upgrade problem here, ruby is dumping core during a 
> portsdb -uU (and thus any time it tries to update the portsdb.
> only noticed it today but i did upgrade ruby recently so i tried following 
> the emergency recovery part in /usr/port/UPDATING and did
> pkg_delete portupgrade-\*
> pkg_delete -r ruby-\*
> then cd /usr/ports/sysutils/portupgrade
> make install clean
> 
> but no joy, i still get the same error 
> ---------cut portupgrade error test----------
> <root at lobster> [/root/cvsup-files] [13:59] 
> #portsdb -uU
> Updating the ports index ... Generating INDEX.tmp - please wait..test: <: 
> unexpected operator
> Warning: Duplicate INDEX entry: freeciv-gtk2-1.14.1
> Warning: Duplicate INDEX entry: mod_jk2-apache2-2.0.2
> Warning: Duplicate INDEX entry: mod_rpaf-ap2-0.5
>  Done.
> done
> [Updating the portsdb <format:bdb1_btree> in /usr/ports ... - 11732 port 
> entries found 
> .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:587: 
> [BUG] Bus Error
> ruby 1.8.2 (2004-07-29) [i386-freebsd5]
> 
> Abort (core dumped)
> ------------------end of port upgrade error text----------
> 
> uname -a
> 
> FreeBSD lobster.unsane.co.uk 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #2: 
> Fri Sep 17 21:45:48 BST 2004 
> toor at lobster.unsane.co.uk:/usr/obj/usr/src/sys/UNSANE  i386
> 
> (14:40:05 <~>) 0 $ ruby -v
> ruby 1.8.2 (2004-07-29) [i386-freebsd5]
> 
> any suggestions welcome

Gawd.  Not this *again*.  Did you try searhing the web at all?

   http://freebsd.rambler.ru/srch?words=%5BBUG%5D+Bus+Error+%3E+ruby+1.8.2+%282004-07-29%29+%5Bi386-freebsd5%5D+solution&set=freebsd 

Anyhow, a work-around is to:

    % setenv PORTS_DBDRIVER=bdb1_hash

and then do all your portupgrade stuff as usual.  

The problem is with the bdb1_btree functions in the base system.  A
fix has been committed to HEAD, RELENG_4 and RELENG_5.  It won't be
applied to RELENG_5_2, so either you're going to have to extract the
patch yourself and apply it manually, or you can upgrade to one of the
5.3-BETAs.

    http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/db/btree/bt_split.c.diff?r1=1.5&r2=1.7

	Cheers,

	Matthew				

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041011/9e9a4df1/attachment.bin


More information about the freebsd-questions mailing list