From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010702
Description of problem:
I'm using rpm v4.0.2 with Redhat 6.2. Some packages must have gone bad in
the rpm database but i have no idea how to fix it.
Steps to Reproduce:
1. rpm -qa or
2. rpm --rebuilddb
Actual Results: ...
Segmentation fault (core dumped)
Expected Results: No Segfault
it happens if I do rpm -qa or rpm --rebuilddb. I can install and remove
packages fine though.
Created attachment 23469 [details]
My RPM database
Try installing rpm-4.0.3-0.57 from
A "rpm --rebuilddb" should fix your problem.
If that does not fix the problem, please reopen this bug and I'll try
to get you a fix.
I've installed the RPM package you've mentioned and now if i do rpm -ivh or rpm
-Uvh it saids "error: cannot open Packages database in /var/lib/rpm" and typing
rpm -qa shows nothing
Try "rpm -qa --dbapi 1". If that displays your packages, then do
rpm --rebuilddb --dbapi 1 -vv
to convert from db1 to db3 format.