Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 2004 18:00:21 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Vince Hoffman <jhary@unsane.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: portupgrade problem
Message-ID:  <20041011170021.GA73181@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20041011143307.Q94319@unsane.co.uk>
References:  <20041011143307.Q94319@unsane.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=20
> 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 followin=
g=20
> 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
>=20
> but no joy, i still get the same error=20
> ---------cut portupgrade error test----------
> <root@lobster> [/root/cvsup-files] [13:59]=20
> #portsdb -uU
> Updating the ports index ... Generating INDEX.tmp - please wait..test: <:=
=20
> 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=
=20
> entries found=20
> .........1000.........2000.........3000.........4000.........5000........=
.6000.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/portsd=
b.rb:587:=20
> [BUG] Bus Error
> ruby 1.8.2 (2004-07-29) [i386-freebsd5]
>=20
> Abort (core dumped)
> ------------------end of port upgrade error text----------
>=20
> uname -a
>=20
> FreeBSD lobster.unsane.co.uk 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #2=
:=20
> Fri Sep 17 21:45:48 BST 2004=20
> toor@lobster.unsane.co.uk:/usr/obj/usr/src/sys/UNSANE  i386
>=20
> (14:40:05 <~>) 0 $ ruby -v
> ruby 1.8.2 (2004-07-29) [i386-freebsd5]
>=20
> any suggestions welcome

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

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

Anyhow, a work-around is to:

    % setenv PORTS_DBDRIVER=3Dbdb1_hash

and then do all your portupgrade stuff as usual. =20

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=3D1.5&r2=3D1.7

	Cheers,

	Matthew			=09

--=20
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

--1yeeQ81UyVL57Vl7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBarwliD657aJF7eIRAr4AAJ46tpQHlmtPrfhoRMJq8Lz1/D2/KACgjcye
plyOZMunlKxXlGHQ768nfpw=
=ftyQ
-----END PGP SIGNATURE-----

--1yeeQ81UyVL57Vl7--



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