From owner-freebsd-questions Wed Aug 14 16:55:14 2002 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 31EC937B400 for ; Wed, 14 Aug 2002 16:55:09 -0700 (PDT) Received: from smtp.salzburg-online.at (smtp.salzburg-online.at [213.153.38.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE17C43E3B for ; Wed, 14 Aug 2002 16:55:07 -0700 (PDT) (envelope-from c.draschl@conova.com) Received: from conova.com (leviathan.campus-sbg.at.eu.org [195.70.114.210]) by smtp.salzburg-online.at (8.11.2/8.11.2) with ESMTP id g7ENt5o19614 for ; Thu, 15 Aug 2002 01:55:06 +0200 (MEST) Message-ID: <3D5AEDED.9020704@conova.com> Date: Thu, 15 Aug 2002 01:55:25 +0200 From: Clemens Draschl User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020812 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Subject: pkgdb fails with alloc-error Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi there, seems, that i have a strange problem. my box is running on freebsd 4.6 stable-1. when i try to fix some stale deps in the pkg-db, the command "pkgdb -F" fails witch this error-msg: [Updating the pkgdb in /var/db/pkg ... - 266 packages found (-1 +2) (...)Cannot allocate memory: Cannot update the pkgdb!] i've checkt the limits in login.conf, but everything seems to be ok. also the output of "limits looks good. Resource limits (current): cputime infinity secs filesize infinity kb datasize 393216 kb stacksize 393216 kb coredumpsize infinity kb memoryuse infinity kb memorylocked infinity kb maxprocesses 1818 openfiles 3636 sbsize infinity bytes vmemoryuse infinity kb maxusers in the kernel is set to 0 (zero), auto-adjust. trace with "truss" gives this output: ..... read(0x3,0x816681c,0x400) = 1024 (0x400) break(0x378cb000) ERR#12 'Cannot allocate memory' sigprocmask(0x3,0x2010a140,0x0) = 0 (0x0) the same with strace: ..... read(3, "\324\32\0\0\0\0\0\0`\23\0\0\4\0\0\0\0\0\0\0archivers/g"..., 1024) = 1024 break(0x378cb000) = -1 ENOMEM (Cannot allocate memory) sigprocmask(SIG_SETMASK, [], NULL) = 0 sigprocmask(SIG_SETMASK, [], NULL) = 0 close(3) = 0 write(2, "Cannot allocate memory: Cannot u"..., 49Cannot allocate memory: Cannot update the pkgdb!]) = 49 write(2, "\n", 1 ) = 1 sigprocmask(SIG_SETMASK, [], NULL) = 0 exit(1) = ? no negative memory-offsets appear. anybody knows, whats wrong with that system? greetings clemens To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message