Bug 582 - rpm crashes and dumps core when removing XFree86-devel
rpm crashes and dumps core when removing XFree86-devel
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
5.2
i386 Linux
medium Severity high
: ---
: ---
Assigned To: David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1998-12-25 01:43 EST by yye
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1998-12-28 11:06:21 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 yye 1998-12-25 01:43:02 EST
I have XFree86-devel-3.3.2.3-25 installed with my RH 5.2
box, and I tried to update the package to 3.3.3-1, but I
can't seem to remove the old package:

# rpm -e XFree86-devel
package (null) contains no files
Segmentation fault

Strangely, I was able to upgrade the package on another RH
5.2 system.  The version of RPM on both systems is
rpm-2.5.5-5.2.

These are the last few lines from the strace output of "rpm
-Uvh XFree86-devel-3.3.3-1.i386.rpm":  I can provide the
full strace output and the core dump if you need it.

lseek(4, 4092504, SEEK_SET)             = 4092504
select(5, [4], NULL, NULL, {5, 0})      = 1 (in [4], left
{5, 0})
read(4, "\0\0\0+", 4)                   = 4
select(5, [4], NULL, NULL, {5, 0})      = 1 (in [4], left
{5, 0})
read(4, "\0\0\33\34", 4)                = 4
brk(0)                                  = 0x81aa000
brk(0x81ac000)                          = 0x81ac000
select(5, [4], NULL, NULL, {5, 0})      = 1 (in [4], left
{5, 0})
read(4, "\0\0\0d\0\0\0\10\0\0\0\0\0\0\0\10"..., 7628) = 7628
lseek(4, 7329944, SEEK_SET)             = 7329944
select(5, [4], NULL, NULL, {5, 0})      = 1 (in [4], left
{5, 0})
read(4, "\0\0\0\0", 4)                  = 4
select(5, [4], NULL, NULL, {5, 0})      = 1 (in [4], left
{5, 0})
read(4, "\0\0\0\0", 4)                  = 4
write(2, "package (null) contains no files"..., 32package
(null) contains no files) = 32
write(2, "\n", 1
)                       = 1
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
Comment 1 Jeff Johnson 1998-12-28 11:06:59 EST
You need to do
	rpm --rebuilddb
after any/every rpm segfault. Otherwise, the database can be
inconsistent leading to "weirdo" rpm seg faults such as you are
seeing.

Do "rpm --rebuilddb" and try your remove again.
If the problem persists, please reopen this bug.

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