Description of Problem: When a _user_ (not root) uses kpackage, sometimes a crash occurs. After that, the rpm database is unusable. db_verify /var/lib/rpm/Packages gives no output. rpm -vv --rebuilddb segfaults with <snip> libstdc++-2.96-85 xmms-devel-1.2.5-2 SDL_mixer-1.1.0-2 xmms-more-vis-plugins-1.3.0-4rh Segmentation fault How Reproducible: Not always Steps to Reproduce: Use kpackage until it crashes :-) Actual Results: rpm --rebuilddb segfaults rpm -i segfaults rpm -e sometimes segfaults Expected Results: rpm should update the database correctly ;-) Additional Information: I wonder if it is kpackage that does the damage. User programs shouldn't be able to do such damage.
Oops, that was the output of rpm -qa rpm -vv --rebuilddb output is in the attachment
Created attachment 22328 [details] stderr output of rpm -vv --rebuilddb
I have a similar, possibly related situation where rpm segfaults after -qa or -- rebuilddb or any other usage. Gnorpm segfaults as soon as the root password is entered. In my case I believe is is due to corruption of the db when StarOffice was uninstalled incorrectly. "rpm -qa" shows a long list, then segfaults right after displaying the StarOffice package that no longer exists. Attempts to use rpm to remove this package reply that the package does not exist. I am a newbie, but if I can provide any information, please let me know. This is a new RH7.1 install from a retail package (Delux Workstation).
Ok, the problem seems to be a package called xmms-more-vis-plugins. The package is a (bad) hack I made on an srpm from Mandrake ftp... (next time I'll learn ;-) I use two methods in order to install packages. One is rpm -Uvh (I tend to use it even when there was no previous release of a package) The other is through mc's menu (I just press return on the rpm and press enter on "install" or "upgrade") I am not sure which one I used to install this package. However the src.rpm and the rpms I made with rpm --rebuild can be found at http://digilander.iol.it/melodymaker/rpm/bad/xmms-more-vis-plugins-1.3.0-4rh.i686.rpm http://digilander.iol.it/melodymaker/rpm/bad/xmms-more-vis-plugins-unsafe-1.3.0-4rh.i686.rpm http://digilander.iol.it/melodymaker/rpm/bad/xmms-more-vis-plugins-1.3.0-4rh.src.rpm (they were rebuilt using xmms-1.2.5 libraries) Note: I haven't tried these, and cannot guarantee they will not trash your computer if run ;-)
I believe this problem is resolved. Please reopen if I'm wrong.