Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2002 01:55:25 +0200
From:      Clemens Draschl <c.draschl@conova.com>
To:        questions@freebsd.org
Subject:   pkgdb fails with alloc-error
Message-ID:  <3D5AEDED.9020704@conova.com>

next in thread | raw e-mail | index | archive | help
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 <format:bdb1_btree> 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




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