From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Description of problem: I was hoping you might be able to help me with a little problem. I just upgraded from RH 7.2 to RH 7.3, and after doing this, "rpm -e" is segfaulting (making it tough for me to remove some unnecessary rpms).. For example: [root@cpe008[root@cpe0080c6f8615f Downloads]# rpm -e NVIDIA_GLX Segmentation fault [root@cpe0[root@cpe0080c6f8615f Downloads]# rpm -V rpm .....UG. c /var/lib/rpm/__db.001 .....UG. c /var/lib/rpm/__db.002 There's only those two files at issue within rpm itself (but that's just a group ownership thing). I've tried removing them and doing a --rebuilddb, but it didn't fix the problem. [root@cpe0080c6f8615f Downloads]# rpm --query rpm rpm-4.0.4-7x.18 [root@cpe0080c6f8615f lib]# rpm -vv -e NVIDIA_GLX D: opening db environment /var/lib/rpm/Packages create:mpool D: opening db index /var/lib/rpm/Packages mode=0x82 D: locked db index /var/lib/rpm/Packages D: opening db index /var/lib/rpm/Name mode=0x82 D: ========== --- NVIDIA_GLX-1.0-2960 D: opening db index /var/lib/rpm/Requirename mode=0x82 D: opening db index /var/lib/rpm/Depends create mode=0x82 D: opening db index /var/lib/rpm/Providename mode=0x82 D: Requires: libGL.so.1 YES (db provides) D: Requires: R libGL.so.1 YES (cached) D: Requires: R libGL.so.1 YES (cached) D: Requires: R libGL.so.1 YES (cached) D: Requires: R libGL.so.1 YES (cached) D: Requires: R libGL.so.1 YES (cached) D: Requires: R libGL.so.1 YES (cached) D: Requires: R libGL.so.1 YES (cached) D: closed db index /var/lib/rpm/Depends D: opening db index /var/lib/rpm/Basenames mode=0x82 D: erase: NVIDIA_GLX-1.0-2960 has 17 files, test = 0 Segmentation fault I will attempt to attach an "strace" of the operation Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.rpm -e NVIDIA_GLX Actual Results: I see "Segmentation Fault" Expected Results: Removal of the package Additional info:
Created attachment 89684 [details] An "strace" of the entire operation The result of an "strace rpm -e NVIDIA_GLX"
Created attachment 89685 [details] output from a "rpm --rebuilddb -vv" At the request of Jeff Johnson <jbj>, I have added the output of an rpm --rebuilddb -vv
See the URL field for a link to my rpm database
Hmmm, after adding the Red Hat GPG key rpm --import /usr/share/doc/rpm-4*/RPM-GPG-KEY all available signatures verify during --rebuilddb. I've deleted the NVIDIA_GLX package, you'll need to erase the files manually (file list attached). A tarball of your database with NVIDIA_GLX is at ftp://people.redhat.com/jbj/rpmdb-83033-FIX.tar.gz Download and install by doing cd /var/lib mv rpm rpm-SAVE tar xzvf rpmdb-83033-FIX.tar.gz rpm --rebuilddb -vv You should install the public key rpm --import /usr/share/doc/rpm-4*/RPM-GPG-KEY and verify by doing rpm -qavv Then remove the NVIDIA_GLX files by downloading the attachment, and doing (as root) rm -i `cat files-83033.list` Reopen if further problems, as there may be something else causing the segfault.
Created attachment 89721 [details] NVIDIA_GLX file list
Created attachment 89723 [details] Upgrade log for the 7.2 to 7.3 upgrade.