Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2004 17:01:11 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Yann Golanski <yann@kierun.org>
Cc:        stable@freebsd.org
Subject:   Re: Crash of portsdb
Message-ID:  <20040913160111.GA83205@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040913153540.GA22877@kierun.org>
References:  <20040913153540.GA22877@kierun.org>

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

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

On Mon, Sep 13, 2004 at 04:35:40PM +0100, Yann Golanski wrote:
> I'm getting the following crash:
>=20
> [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_r=
uby/1.8/portsdb.rb:587: [BUG] Bus Error ruby 1.8.2 (2004-07-29) [i386-freeb=
sd5]
> Abort trap (core dumped)
> Does anyone else get this? =20

You and about 10,000 other people.  It's been done to death on
freebsd-ports@... freebsd-questions@..., freebsd-current@..., and
probably a few other mailing lists as well.

The problem is a bug in the underlying BDB v1 btree implementation.
Jun Kuriyama posted a couple of patched for people to try out onto
freebsd-current@... -- this is the most recent one, which might even
work:

   http://lists.freebsd.org/pipermail/freebsd-current/2004-September/037222=
.html

Porting that to 4-STABLE is left as an exercise.  Should be fairly
easy, as the code in question hasn't been modified for 5.x (as far as
I know).

Otherwise, there's a nice simple low impact workaround:

    # setenv PORTS_DBDRIVER bdb1_hash

There are some other workarounds and some variations on this
workaround but you can find those for yourself by searching the
various FreeBSD mailing list archives

	Cheers,

	Matthew

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

--fdj2RfSjLxBAspz7
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFBRcRHiD657aJF7eIRAr1JAJ9TX6+2t2gqQMN/Mj0cgFk/xwZLTwCePB2H
+FAdp6xkeo9k8cD9yKmKnZU=
=Dwg0
-----END PGP SIGNATURE-----

--fdj2RfSjLxBAspz7--



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