On Mon, 25 Jun 2001, Arnd Bergmann wrote:

> After pressing <ctrl>+<c> during a package upgrade, rpm stopped working,
> e.g.
> 
> > [root@project RPMS]# rpm -U 7colors-0.80-1mdk.i586.rpm
> > rpmdb: Unable to allocate 8247 bytes from mpool shared region: 
> >  Cannot allocate memory
> >  
> > error: cannot open Depends index using db3 - Cannot allocate memory (12)
> > rpmdb: Unable to allocate 8247 bytes from mpool shared region: 
> >  Cannot allocate memory
> 
> Similar error message appears for any -e, -i and -U, alway with twice
> the following error in '-vv' mode:
> 
> > D: opening  db index       /var/lib/rpm/Depends create mode=0x42
> > rpmdb: Unable to allocate 8247 bytes from mpool shared region: 
> > Cannot allocate memory
> > D: closed   db index       /var/lib/rpm/Depends                                  
> The file /var/lib/rpm/Depends does not exist and the rpm command
> always hangs after the second error.
> 
> Running 'rpmdb --rebuilddb -vv' hangs after processing 348 out of
> ~1500 installed packages. Further investigation shows that
> 'rpm -q' does not work for gentoo, gtkeyboard and swi-prolog.
> These packages have nothing particular in common and I have not
> touched them recently.
> 
OK, I solved the problem with the hangs myself by running db_dump and
db_read on /var/lib/rpm/Packages, but I guess it should not have
happened in the first place.
The problem with the missing /var/lib/Depends still exists but does
not cause any immediate harm except for the warning when running rpm.
Is anyone aware of a way to reproduce that file without reinstalling?

Arnd <><


Reply via email to