Bug 59088 - RPM 4.0.3 and 4.0.4 segfaulting at a probably corrupt database
RPM 4.0.3 and 4.0.4 segfaulting at a probably corrupt database
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
7.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
http://www.cs.unipr.it/~bagnara/rpmdb...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-01-30 14:26 EST by Roberto Bagnara
Modified: 2008-05-01 11:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-01-30 14:26:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Roberto Bagnara 2002-01-30 14:26:53 EST
Description of Problem:

after doing `rpm -Fvh some-packages' I got a message saying something
about the database being not in good shape.  Then I tried to rebuild
the database, but I get

# rpm --rebuilddb
error: rpmdb: damaged header instance #266 retrieved, skipping.
error: rpmdb: damaged header instance #278 retrieved, skipping.
error: rpmdb: damaged header instance #312 retrieved, skipping.
error: rpmdb: damaged header instance #794 retrieved, skipping.
error: rpmdb: damaged header instance #834 retrieved, skipping.
error: rpmdb: damaged header instance #878 retrieved, skipping.
error: rpmdb: damaged header instance #886 retrieved, skipping.
error: rpmdb: damaged header instance #954 retrieved, skipping.
error: rpmdb: damaged header instance #980 retrieved, skipping.
error: rpmdb: damaged header instance #1043 retrieved, skipping.
Segmentation fault
# rpm -q rpm
rpm-4.0.3-1.03

I have also tried with version 4.0.4 which gives me a slightly
more informative message

# ./rpm --rebuilddb
error: rpmdb: damaged header instance #266 retrieved, skipping.
error: rpmdb: damaged header instance #278 retrieved, skipping.
error: rpmdb: damaged header instance #312 retrieved, skipping.
error: rpmdb: damaged header instance #794 retrieved, skipping.
error: rpmdb: damaged header instance #834 retrieved, skipping.
error: rpmdb: damaged header instance #878 retrieved, skipping.
error: rpmdb: damaged header instance #886 retrieved, skipping.
error: rpmdb: damaged header instance #954 retrieved, skipping.
error: rpmdb: damaged header instance #980 retrieved, skipping.
error: rpmdb: damaged header instance #1043 retrieved, skipping.
*** dbiUpdateRecord: uh is NULL
Segmentation fault
Comment 1 Jeff Johnson 2002-01-30 18:36:01 EST
Hmmm, something else is going on, as rpm --rebuilddb worked
flawlessly for me.

There's a tarball of your rebuilt database at
	ftp://people.redhat.com/jbj/rpmdb-59088-FIX.tar.gz
if that helps. Do
	cd /var/lib
	mv rpm rpm-SAVE
	tar xzvf rpmdb-59088-FIX.tar.gz
to replace. An rpm -qa is a pretty good check, try a rpm --rebuilddb -vv
as well.

Note You need to log in before you can comment on or make changes to this bug.