Bug 117528 - rpm segfaults and stalls installing kernel package
Summary: rpm segfaults and stalls installing kernel package
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-04 22:48 UTC by Ryan Lovett
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-03-19 11:30:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ryan Lovett 2004-03-04 22:48:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040122 Galeon/1.3.13 (Debian package 1.3.13-2)

Description of problem:
# rpm -Uvh kernel-smp-2.4.22-1.2174.nptl.x86_64.rpm
error: failed to stat proc: No such file or directory
Preparing...               
########################################### [100%]
   1:kernel-smp            
########################################### [100%]
/sbin/mkkerneldoth: line 9: 14266 Segmentation fault      rpm -q
kernel$KERNEL_TYPE-$KERNEL_RELEASE >/dev/null 2>&1
 
RPM stalls here. The command prompt doesn't return. /proc exists and
is mounted. Here's strace attaching to rpm:

# strace -p 14248
Process 14248 attached - interrupt to quit
futex(0x2a955fbf40, FUTEX_WAIT, 0, NULL



Version-Release number of selected component (if applicable):
RPM version 4.2.1

How reproducible:
Didn't try

Steps to Reproduce:
1. wget http://.../kernel-smp-2.4.22-1.2174.nptl.x86_64.rpm
2. rpm -Uvh kernel-smp-2.4.22-1.2174.nptl.x86_64.rpm
    

Actual Results:  rpm froze and didn't return.

Expected Results:  rpm should not have segfaulted within mkkerneldoth.

Additional info:

This was the first package I tried to install after the initial
installation of test 1 of Fedora Core 1 for AMD64.

Comment 1 Jeff Johnson 2004-03-19 11:30:23 UTC
A futex hang is probably a stale lock. Try
    rm -f /var/lib/rpm/__db*
to fix.


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