Bug 60970

Summary: rpm-4.0.2-6x upgrade and - - rebuilddb segfaults
Product: [Retired] Red Hat Linux Reporter: Ian Scott <ian>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i586   
OS: Linux   
URL: ftp.pwhosting.com/rpmdb.tar.gz
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-03-11 01:12:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Scott 2002-03-11 01:12:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 3.0; H010818)

Description of problem:
Unable to rebuild rpm db after upgrading to rpm-4.0.2-6x.  --rebuilddb causes 
segmentation fault, as does rpm -qa

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.rpm --rebuilddb -vvv
2.rpm -qa
3.
	

Actual Results:  Segmentation Fault after performing above commands.

Expected Results:  rpm db should have been rebuilt and rpm should work.

Additional info:

I may have done something wrong myself, but I am not sure.  I followed the 
steps in Upgrading, including installing the other dependencies such as popt 
and db3 utilities.  This might not be a bug in the rpm - rather a buggy brain 
at the time of doing the work :).  Nevertheless, I was asked to submit this bug 
by jbj.

Comment 1 Jeff Johnson 2002-03-11 13:25:24 UTC
I did a --rebuilddb with rpm-3.0.5 to fix a
damaged record, then did another --rebuilddb
with rpm-4.0.2 to make sure that db1 -> db3
conversion "works".

A fixed copy of your rpm/packages.rpm is at
	ftp://people.redhat.com/jbj/rpmdb-60970-FIX.tar.gz

Download, and install by doing (as root)
	cd /var/lib
	mv rpm rpm-SAVE
	tar xzvf rpmdb-60970-FIX.tar.gz
	rpm --rebuilddb -vv
	rpm -qa

Reopen this bug if you run into trouble