From owner-freebsd-ports@FreeBSD.ORG Wed Feb 11 10:18:49 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3503F16A4CE; Wed, 11 Feb 2004 10:18:49 -0800 (PST) Received: from viviendaatualcance.com.mx (dsl-200-78-46-212.prod-infinitum.com.mx [200.78.46.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id D05D743D1D; Wed, 11 Feb 2004 10:18:48 -0800 (PST) (envelope-from eculp@viviendaatualcance.com.mx) Received: from localhost (localhost [127.0.0.1]) (uid 80) by viviendaatualcance.com.mx with local; Wed, 11 Feb 2004 12:18:48 -0600 Received: from local-62.local.net.mx (local-62.local.net.mx [192.168.5.62]) by mail.viviendaatualcance.com.mx (Horde) with HTTP for ; Wed, 11 Feb 2004 12:18:48 -0600 Message-ID: <20040211121848.kcs4gwgcwswso4os@mail.viviendaatualcance.com.mx> Date: Wed, 11 Feb 2004 12:18:48 -0600 From: Edwin Culp To: Kris Kennaway References: <20040211062819.kgg4owsgsg8swggs@mail.viviendaatualcance.com.mx> <20040211181402.GA69185@xor.obsecurity.org> In-Reply-To: <20040211181402.GA69185@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs cc: ports@freebsd.org cc: knu@FreeBSD.org Subject: Re: ruby in malloc(): error: allocation failed Abort (core dumped) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 18:18:49 -0000 Quoting Kris Kennaway : > 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 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