Red Hat Bugzilla – Bug 45109
rpm seg falts and core dumps on rpm database
Last modified: 2007-04-18 12:33:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.18-spore-01 i686)
Description of problem:
I'm having problems with rpm seg-falting when trying to get information
database. It appears to be a bad entery in there. One of them is a
rpm from the 6.2 updates. Anything that does anything with that rpm (at
core dumps. This includes all -ql -qi -F -U -i -e that do anything with
rpm. The rpm version is 4.0.2.
Steps to Reproduce:
1. use my rpm database at above url
2. do a rpm -qa
3. repeat with any other option that lists the rpms in the db
Actual Results: partial list of rpms
Segmentation fault (core dumped)
Expected Results: complete list of rpms
I copied a older version from another system (Version 3.0). It core dumps
of the time but not always. Some interesting outputs are:
# ./rpm -ql bind-utils
(contains no files)
# ./rpm -qa | grep null
It also segfaults on -ev as well.
I rebuilt the rpm database with rpm --rebuilddb which core dumped and
seem to change anything.
I tried to compile both 4.0.2 and 3.0.4 from the source rpms so I could run
debugger on one, but neither of them would even compile on my 6.2 system.
couldn't find "no" as a command and 3.0.4 had a linker error.
Can you provide a pointer (attachmensts won't work) to your database
tar czvf /tmp/rpmdb-45109.tar.gz rpm
and I'll take a look? Thanks ...
Hum.. Funny, I put it in the URL field for bugzilla, but I guess it didn't work
to well. Here it is:
Apologies for the duplicated request, the URL field is often off the
immediate screen when I'm typing in comments.
Fixed in (at least) rpm-4.0.3-0.55. Meanwhile your rpm/packages.rpm
and my rebuild log are at
Do the following
mv packages.rpm packages.rpm-SAVE
tar xzvf rpmdb1-45109-FIX.tar.gz
rpm --rebuilddb -vv
thanks. I sure appreciate the help.