From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; McKesson Corporation; .NET CLR 1.0.3705; .NET CLR 1.1.4322) Description of problem: Attempting to remove any packages gives this result: [root@ddcdxt01 tmp]# rpm -e cdrecord-devel Segmentation fault [root@ddcdxt01 tmp]# rpm -e -vv cdrecord-devel 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: ========== --- cdrecord-devel-1.10-4 D: opening db index /var/lib/rpm/Requirename mode=0x82 D: opening db index /var/lib/rpm/Basenames mode=0x82 D: erase: cdrecord-devel-1.10-4 has 47 files, test = 0 Segmentation fault [root@ddcdxt01 tmp]# Version-Release number of selected component (if applicable): rpm-4.0.4-7x.20 How reproducible: Always Steps to Reproduce: 1.Attempt to remove an existing RPM package Actual Results: Segmentation Fault and the RPM is not removed Expected Results: RPM should be removed Additional info: I have strace output available upon request. This issue is being tracked by ticket number 268077 by RedHat 24X7 support.
rm /var/lib/rpm/__* rpm --rebuilddb try to reproduce after that
Same result (this was my second time trying this as the engineer I spoke to Thursday evening suggested this early on). [root@ddcdxt01 tmp]# rm -f /var/lib/rpm/__* [root@ddcdxt01 tmp]# rpm --rebuilddb [root@ddcdxt01 tmp]# rpm -e cdrecord-devel Segmentation fault [root@ddcdxt01 tmp]#
Created attachment 95788 [details] strace output from the command that is segmentation faulting strace is from the following command: rpm -e cdrecord-devel
Is this still a problem? I suspect doing --rebuilddb with rpm-4.1 or later will fix your problem. If you give me a ptr (i.e. URL) to a tarball of /var/lib/rpm, then I will mail you back a fixed copy of your rpmdb
As it's been almost two months in the NEEDINFO state, I'm closing this. If it is still a problem, please reopen with additional information.