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

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Kris Kennaway <kris@obsecurity.org>:

> 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 
>> light by
>> it.
>>
>> 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 page,
>> recompiled everything based other's information on the mailling 
>> list.  I even
>> blew away my ports tree, distfiles, etc and resuped all.  Everything is/was
>> working except portupgrade/ruby.  When I start portupgrade or friends, I get
>> the above malloc message and signal 6 from ruby.
>>
>> --->  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)
>>
>> 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,  ! F A N T A S T I C !  That was it.  It works fine :-)  I don't think I
would have ever found it, I was looking everywhere else.  Of course, thanks to
this I now have a un planed, pristin and empty ports and package tree but it
was time.

Thanks so much for sharing,

ed




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