Bug 8605 - Segmentation fault with rpm --erase --allmatches
Segmentation fault with rpm --erase --allmatches
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
6.1
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-01-19 10:27 EST by vgeloven
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-01-19 11:54:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description vgeloven 2000-01-19 10:27:35 EST
Hi,

I installed xemacs-21.1.4-2.i386.rpm and now rpm tells me with rpm -q
xemacs that I have:

[root@ibb0197 /root]# rpm -q xemacs
xemacs-info-21.1.4-2
xemacs-21.1.4-2
xemacs-21.1.4-2

So I do an uninstall:

[root@ibb0197 /root]# rpm --erase --allmatches xemacs
Segmentation fault

It doesn't leave a core file. And xemacs-info isn't even installed:

[root@ibb0197 /root]# rpm -q xemacs-info
package xemacs-info is not installed

According to gnorpm I have three installation of xemacs-21.1.4-2 (none with
"info" in the name). If I try to uninstall the packages with gnorpm it will
crash.

If I do rpm -V xemacs I get:

missing    /usr/lib/xemacs-21.1.4/info/cl.info
missing    /usr/lib/xemacs-21.1.4/info/cl.info-1
missing    /usr/lib/xemacs-21.1.4/info/cl.info-2
...(a lot of files)
missing    /usr/lib/xemacs/xemacs-packages/info/mh-e.info-4
missing    /usr/lib/xemacs/xemacs-packages/info/pcl-cvs.info
missing    /usr/lib/xemacs/xemacs-pac
(then te CPU is 100% for rpm for a while and then it exits)

If I look if these files exist with ls, the do exist, and:

[root@ibb0197 etc]# rpm -qf /usr/lib/xemacs-21.1.4/info/dir
xemacs-21.1.4-2
xemacs-21.1.4-2
xemacs-21.1.4-2

What should I do? I'm always very carefull with installing rpm packages and
have lot's of experince with it. Is there another way of getting rid of
there entries in the rpm database?

Thanks,

Sander
Comment 1 Jeff Johnson 2000-01-19 10:40:59 EST
What version of rpm? You might want to upgrade to rpm-3.0.3 (ftp.rpm.org)
or rpm-3.0.4 from Raw Hide. And, make sure that you do "rpm --rebuilddb"
after any/every segfault in rpm, as you may have segfaults from spurious
data in the database from a previoud segfault).
Comment 2 vgeloven 2000-01-19 11:55:59 EST
upgrade to rpm 3.0.4-0.31, rpm --rebuilddb and rpm --erase xemacs did the trick

Note You need to log in before you can comment on or make changes to this bug.