Bug 8605 - Segmentation fault with rpm --erase --allmatches
Summary: Segmentation fault with rpm --erase --allmatches
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm   
(Show other bugs)
Version: 6.1
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-01-19 15:27 UTC by vgeloven
Modified: 2008-05-01 15:37 UTC (History)
0 users

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


Attachments (Terms of Use)

Description vgeloven 2000-01-19 15:27:35 UTC
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 15:40:59 UTC
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 16:55:59 UTC
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.