Bug 98517

Summary: rpm database verification failed
Product: [Retired] Red Hat Linux Reporter: Thomas Emde <thomas.emde>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-03 14:57:24 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 Thomas Emde 2003-07-03 06:04:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows NT 5.0; U) Opera 7.11  [en]

Description of problem:
After trying to install a self-built package, the rpm database seems to be 
corrupted. rpm -q tells that the package is not installed, rpm -Uvh <package> 
tells the following:
Preparing...                ########################################### [100%]
package <package> is already installed
rpmdb: Overflow item incomplete on page 3492
error: db4 error(-30979) from db->verify: DB_VERIFY_BAD: Database verification 
failed

rpm --rebuilddb results in a segmentation fault.

Version-Release number of selected component (if applicable):
rpm-4.0.4-7x.18

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
    

Additional info:

Comment 1 Jeff Johnson 2003-07-03 14:57:24 UTC
The following will verify the problem (you need db4-utils):

    db_verify /var/lib/rpm/Packages

Fix is to dump and reload Packages, then rebuild the indices

    cd /var/lib/rpm
    mv Packages Packages-ORIG
    db_dump Packages-ORIG | db_load Packages

    rpm --rebuilddb -vv

Reopen if above does not solve the problem.