From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Description of problem: RPM Error when i try to do a rpm query or rpm --rebuilddb Database corrupted. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Using rpm-4.0.2-6x 2. rpm -qa or rpm --rebuilddb Actual Results: rpm --rebuilddb rpmdb: header.c:241: regionSwab: Assertion `ie.info.type >= 0 && ie.info.type <= 9' failed. Aborted (core dumped) Additional info: Bug is the same as 38454 but i use RH 6.2 and i've not /var/lib/rpm/Packages file but only rpm files (packages.rpm, ...). And t38454 program doesn't work correctly.
A rebuild with the 6x version of rpm-4.0.3-1.03 at ftp://ftp.rpm.org/pub/rpm/test-4.0.3 should fix you up. Reopen this bug if not.