From owner-freebsd-questions@FreeBSD.ORG Thu Aug 12 09:13:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40D3016A4CE for ; Thu, 12 Aug 2004 09:13:42 +0000 (GMT) Received: from fidel.freesurf.fr (fidel.freesurf.fr [212.43.206.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11BC743D46 for ; Thu, 12 Aug 2004 09:13:42 +0000 (GMT) (envelope-from ogautherot@freesurf.fr) Received: from freesurf.fr (jose.freesurf.fr [212.43.206.13]) by fidel.freesurf.fr (Postfix) with SMTP id A7C092A71B3 for ; Thu, 12 Aug 2004 11:13:40 +0200 (CEST) Received: from 212.157.144.34 (SquirrelMail authenticated user ogautherot) by jose.freesurf.fr with HTTP; Thu, 12 Aug 2004 11:13:40 +0200 (CEST) Message-ID: <50257.212.157.144.34.1092302020.squirrel@jose.freesurf.fr> Date: Thu, 12 Aug 2004 11:13:40 +0200 (CEST) From: To: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-Mailer: SquirrelMail (version 1.2.5) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Broken pkgdb and ruby core dump... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 09:13:42 -0000 Hi! I'm running FreeBSD 5.2.1 with a number of updates (thanks in advance for copying me on answers as I had to unsusbscribe to this list due to high traffic). After installing a package (I'm updating KDE and GNOME), I suddenly got the error message: [Updating the pkgdb in /var/db/pkg ... - 614 packages found (-10 +77) (...)ruby18 in malloc(): error: allocation failed Abort (core dumped) # I can confirm that the core is really dumped :-) I get this message upon each (direct or indirect) invocation of pkgdb - the number of packages to update varies though... Is there a way to fix the database? I seem to have this problem on a regular basis and could fix it so far... only by reinstalling the system! I suspect there must be a "pkg fsck" somewhere... I can rebuild it by deleteing /var/db/pkg and rebuild all the packages manually but I have more fun plans than rerunning "make install clean" on 614 packages :-) Thanks in advance Olivier