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.
When running any rpm commands as non-root user, there is no problem,
but of course, I can not install any packages.
Arnd <><