Bug 50105

Summary: rpm --rebuildb Segmentation fault
Product: [Retired] Red Hat Linux Reporter: tanner
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-07-26 21:17:37 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 tanner 2001-07-26 21:17:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010710

Description of problem:
Upgraded to rpm-4.0.2-6x using the rpm -Uhv command.
The upgrade Segmentation faulted.

Tried rpm -q rpm, it seg faulted.
Tried rpm -qa, it seg faulted.
Tried rpm --rebuilddb, it seg faulted.

Doing a rpm -vv --rebuildb showed:

D: adding "nfs-utils" to Name index.
D: adding 73 entries to Basenames index.
D: adding "System Environment/Daemons" to Group index.
D: adding 17 entries to Requirename index.
D: adding 6 entries to Providename index.
D: adding 3 entries to Triggername index.
Segmentation fault

I removed nfs-utls to see if that would fix the problem, another 
rpm -vv --rebuilddb shows this:

D: adding "mutt" to Name index.
D: adding 52 entries to Basenames index.
D: adding "Applications/Internet" to Group index.
D: adding 17 entries to Requirename index.
D: adding 2 entries to Providename index.
D: adding 1 entries to Conflictname index.
Segmentation fault


I cannot install or remove any software.

How reproducible:
Always

Steps to Reproduce:
	The upgrade Segmentation faulted.

Tried rpm -q rpm, it seg faulted.
Tried rpm -qa, it seg faulted.
Tried rpm --rebuilddb, it seg faulted.

Doing a rpm -vv --rebuildb showed:

D: adding "nfs-utils" to Name index.
D: adding 73 entries to Basenames index.
D: adding "System Environment/Daemons" to Group index.
D: adding 17 entries to Requirename index.
D: adding 6 entries to Providename index.
D: adding 3 entries to Triggername index.
Segmentation fault

I removed nfs-utls to see if that would fix the problem, another
rpm -vv --rebuilddb shows this:

D: adding "mutt" to Name index.
D: adding 52 entries to Basenames index.
D: adding "Applications/Internet" to Group index.
D: adding 17 entries to Requirename index.
D: adding 2 entries to Providename index.
D: adding 1 entries to Conflictname index.
Segmentation fault


Additional info:

Comment 1 Jeff Johnson 2001-07-26 21:47:20 UTC
Try rpm-4.0.3-0.57.6x packages (there are 5) from
	ftp://ftp.rpm.org/pub/rpm/test-4.0.3
Most segfaults from bad headers in the database are fixed there.

Please reopen this bug if "rpm --rebuilddb" with rpm-4.0.3-0.57
does not fix your problem.