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 from the database. It appears to be a bad entery in there. One of them is a bind-utils rpm from the 6.2 updates. Anything that does anything with that rpm (at least) core dumps. This includes all -ql -qi -F -U -i -e that do anything with that rpm. The rpm version is 4.0.2. How reproducible: Always 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 Additional info: I copied a older version from another system (Version 3.0). It core dumps some of the time but not always. Some interesting outputs are: # ./rpm -ql bind-utils (contains no files) # # ./rpm -qa | grep null (null)-(null)-(null) (null)-(null)-(null) # It also segfaults on -ev as well. I rebuilt the rpm database with rpm --rebuilddb which core dumped and didn't seem to change anything. I tried to compile both 4.0.2 and 3.0.4 from the source rpms so I could run a debugger on one, but neither of them would even compile on my 6.2 system. 4.0.2 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 cd /var/lib 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: http://www.darkmist.net/~schallee/rpm/rpmdb.tar.gz
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 ftp://people.redhat.com/jbj/rpmdb1-45109-FIX.tar.gz Do the following cd /var/lib/rpm mv packages.rpm packages.rpm-SAVE cd .. tar xzvf rpmdb1-45109-FIX.tar.gz rpm --rebuilddb -vv
thanks. I sure appreciate the help.