From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.4.1)
Description of problem:
rpm -q seg faults on my system. Something must have corrupted
the database, but that is not the issue here, the program should
be robust enough to cope with database corruptions without crashing.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install Red Hat 9
2. Upgrade to FC1
3. Run 'rpm -q'
Actual Results: [njh@sian src]$ rpm -qa
I have since found that the seg fault does not occur when I run 'rpm
-qa' as root. Maybe rpm segfaults when it can't open a file/resource?
Can you attach the output of rpm -qa -vv that segfaults?
Created attachment 99953 [details]
Output of rpm -qa -vv as requested
Any update on this?
YOu have rpm-4.2.1 installed.
The likeliest explanation is a dangling ptr fixed in rpm-4.2.2-0.6 and
Doing "rm -f /var/lib/rpm/Pubkeys" should make the segfault go away;
then doing --rebuilddb will recreate the Pubkeys index.
If that procedure "fixes", then you should upgrade to rpm-4.2.2-0.6 or