Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Feb 2004 10:14:02 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Edwin Culp <eculp@viviendaatualcance.com.mx>
Cc:        knu@FreeBSD.org
Subject:   Re: ruby in malloc(): error: allocation failed  Abort (core dumped)
Message-ID:  <20040211181402.GA69185@xor.obsecurity.org>
In-Reply-To: <20040211062819.kgg4owsgsg8swggs@mail.viviendaatualcance.com.mx>
References:  <20040211062819.kgg4owsgsg8swggs@mail.viviendaatualcance.com.mx>

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

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

On Wed, Feb 11, 2004 at 06:28:19AM -0600, Edwin Culp wrote:
> This error seems to be part of the threading issue or was brought to ligh=
t by
> it.
>=20
> First I'm running current as of yesterday, while doing a portupgrade -Rrua
> during the rebuild of portupgrade.  I tried to get past it by recompiling
> qmake, etc. with no luck so I added a /etc/libmap.conf based on the man p=
age,
> recompiled everything based other's information on the mailling list.  I =
even
> blew away my ports tree, distfiles, etc and resuped all.  Everything is/w=
as
> working except portupgrade/ruby.  When I start portupgrade or friends, I =
get
> the above malloc message and signal 6 from ruby.
>=20
> --->  Session started at: Wed, 11 Feb 2004 06:02:56 -0600
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 301 packages=
 found
> (-26 +17) (...)ruby in malloc(): error: allocation failed
> Abort (core dumped)
>=20
> Any suggestions would be highly appreciated.  I'm blocked.

I ran into this and fixed it by removing /var/db/pkg/pkgdb.db.  This
file had become corrupt (perhaps because ruby and the ruby modules
were linked against conflicting thread libraries), but recompiling
ruby* from scratch did not allow pkgdb to fix the file.  This is
probably a bug in pkgdb.

Kris

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

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

iD8DBQFAKnDqWry0BWjoQKURAhJlAJ0X0vGKVZ9LCdZJGNbBhjNQzHAQLwCfTs9n
X6Yn1ug1h+PFZxYsIvFIF38=
=ZD92
-----END PGP SIGNATURE-----

--FCuugMFkClbJLl1L--



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