Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 33419 - rpm-4.0.2-6x: rpmq: header.c:511: headerLoad: Assertion `rdlen == dl' failed
rpm-4.0.2-6x: rpmq: header.c:511: headerLoad: Assertion `rdlen == dl' failed
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
high Severity high
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-03-27 11:49 EST by Aleksey Nogin
Modified: 2005-10-31 17:00 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-04-22 12:19:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to fix rpm-2.5.x i18n tag offset/length bug (2.79 KB, patch)
2001-03-28 11:16 EST, Jeff Johnson
no flags Details | Diff

  None (edit)
Description Aleksey Nogin 2001-03-27 11:49:51 EST
I've upgraded rpm to rpm-4.0.2-6x and I've recompiled rpm2html under it.
When I try to run rpm2html, it dies (every time) with

rpm2html: header.c:511: headerLoad: Assertion `rdlen == dl' failed.
Abort (core dumped) 

Using strace, I figured out which package "kills" it. If I run

rpm -qp tcl-8.0.3-20an.i386.rpm

then I get the same thing:

rpmq: header.c:511: headerLoad: Assertion `rdlen == dl' failed.
Abort (core dumped)

gdb shows:

(gdb) bt
#0  0x40173d21 in __kill () from /lib/libc.so.6
#1  0x40173996 in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x401750b8 in abort () at ../sysdeps/generic/abort.c:88
#3  0x4016dbae in __assert_fail () at assert.c:59
#4  0x4005341d in headerLoad () from /usr/lib/librpm.so.0
#5  0x40053fe9 in headerRead () from /usr/lib/librpm.so.0
#6  0x4005e8c0 in readPackageHeaders () from /usr/lib/librpm.so.0
#7  0x4005eba8 in rpmReadPackageHeader () from /usr/lib/librpm.so.0
#8  0x400620a8 in rpmQueryVerify () from /usr/lib/librpm.so.0
#9  0x40062b47 in rpmQuery () from /usr/lib/librpm.so.0
#10 0x804b697 in poptResetContext ()
#11 0x4016d9cb in __libc_start_main (main=0x804ac14
<poptResetContext+6364>, argc=5,
    argv=0xbffffb64, init=0x8048fd8 <_init>, fini=0x804b8fc <_fini>,
    rtld_fini=0x4000aea0 <_dl_fini>, stack_end=0xbffffb5c)
    at ../sysdeps/generic/libc-start.c:92

The package in question can be obtained from the URL (above). It was
compiled on a RH 5.2 system.

I am running RH6.2+all updates.
Comment 1 Jeff Johnson 2001-03-27 11:57:23 EST
Have you run --rebuilddb to convert from db1 to db3? Was the conversion

Otherwise, try erasing and/or reinstalling the tcl package.
Comment 2 Aleksey Nogin 2001-03-27 12:00:20 EST
Yes, I did --rebuilddb the first thing after I've upgraded rpm.

The package in question is an (old) .i386.rpm file, not something I have
Comment 3 Aleksey Nogin 2001-03-27 12:02:03 EST
BTW, I just tried running rpm -Kv on that package and it worked fine - both MD5
and PGP signatures checked OK.
Comment 4 Jeff Johnson 2001-03-27 12:28:20 EST
rpm -Kv tests the package, not the header in the database.

What happens if you reinstall the package after you've converted to db3?
What I suspect is the well known "free list corrupt bug" showing up as a
header in the database ...
Comment 5 Aleksey Nogin 2001-03-27 12:34:19 EST
As I said, the package is not (and never was) installed. Both rpm2html and rpmq
die when trying to query the .i386.rpm package, not the database.

Just to be sure, I did another --rebuilddb and (no surprize) it didn't change
Comment 6 Jeff Johnson 2001-03-28 11:16:16 EST
Created attachment 13964 [details]
Patch to fix rpm-2.5.x i18n tag offset/length bug
Comment 7 Jeff Johnson 2001-03-28 11:17:00 EST
Fixed in rpm CVS, will be in rpm-4.0.3
Comment 8 Aleksey Nogin 2001-04-12 13:13:41 EDT
Any estimates on when this will be available? Any plans for a new errata with
these fixes? 

Obviously, I can recompile RPM myself, but it would be so much easier to
download an install a package signed by RedHat :-)
Comment 9 Aleksey Nogin 2001-04-22 11:58:14 EDT
This bug still exists in the rpm shipped with RedHat 7.1 and I don't see the
fixed package anywhere.
Comment 10 Jeff Johnson 2001-04-22 12:10:45 EDT
And I repeat:

	Fixed in rpm CVS, will be in rpm-4.0.3

That does NOT say Red Hat 7.1 or rpm-4.0.2, and a failure of
a 2.5 year old package built with a broken version of rpm is
not a sufficient show stopper to change rpm in Red Hat 7.1
Comment 11 Aleksey Nogin 2001-04-22 12:19:36 EDT
Well, then it should be marked "RESOLVED CVS". :-) But marking it "RESOLVED
RAWHIDE" is inaccurate since Rawhide does not have an updated package.
Comment 12 Aleksey Nogin 2001-04-22 14:50:18 EDT
After I upgraded to 4.0.3, everyting seems fine. Thanks!

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