Bug 55396

Summary: rpm 4.0.2 database queries dies in header.c:241
Product: [Retired] Red Hat Linux Reporter: bugzilla.com <dgarn>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
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: 2001-10-30 19:42:39 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 bugzilla.com 2001-10-30 19:42:34 UTC
Description of Problem:
installed rpm4.0.2 on my RH6.2 box.  I can install new packages fine, but
anything that tries to read from the package database dumps core:

[root@xerxes rpm]# rpm --rebuilddb
rpmdb: header.c:241: regionSwab: Assertion `ie.info.type >= 0 &&
ie.info.type <= 9' failed.
Aborted (core dumped)

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

How Reproducible:
Every time.

Steps to Reproduce:
1.  Be running RH6.2
2.  Be using rpm4.0.2
3.  rpm -q -a  *or* rpm --rebuilddb
Those are the two I've noticed it with.


Actual Results:
Aborted (core dumped)


Expected Results:
I should have received rpm database query results.

Additional Information:
Yes, I've noticed that this bears a striking resemblance to Bug# 38454.  I
tried what was recommended to fix that, but that seems to be specific to
RH7.x builds.  The proposed fix mentions doing some things with
/var/lib/rpm/Packages, but this file/directory does not exist.  I'm
guessing that this is specific to RH6.x...

Comment 1 Jeff Johnson 2001-11-04 15:51:20 UTC
The fix is the same on 6.x, but you will need the
db3-utils-3.2.9 package for Red Hat 6.x installed.
This is availbale through Errata/Updates as well as at
ftp://ftp.rpm.org/pub/rpm/dist/4.0.x

*** This bug has been marked as a duplicate of 38454 ***