An OpenPKG instance I've recently upgraded to RPM 5.1.0 first worked
just fine for a few days and today I noticed that on a simple "openpkg
rpm -qa" I get mostly all packages in the output but near the end of the
output I receive:
| error: rpmdb: skipping h# 157 region trailer: BAD, tag 256 type 256 offset -256 count 256
So, seems like an entry of a package in the RPMDB crashed for totally
unknown reasons. There was no system crash or any other package
manipulations recently, etc. Hence I've no clue how this can happen and
I see it the first time.
I fixed the problem for me with a full BDB based dump/restore of the
database, followed by a "rpm --rebuilddb" and a "rpm -i --justdb" of the
single lost package. Nevertheless I wanted to drop you a note about this
here. I can provide a copy of the RPMDB (in the state before I fixed it)
in case someone like Jeff wants to peek at it in more detail...
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
Received on Fri Apr 25 13:29:08 2008