Bug 140880 - rpm --rebuild segfaults
Summary: rpm --rebuild segfaults
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rpm
Version: 3.0
Hardware: powerpc
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-26 03:41 UTC by Anthony Rumble
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2004-11-29 23:39:17 UTC


Attachments (Terms of Use)
Strace of rpm --rebuilddb (657.23 KB, application/x-bzip)
2004-11-26 03:44 UTC, Anthony Rumble
no flags Details

Description Anthony Rumble 2004-11-26 03:41:29 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0

Description of problem:
ppc64/iseries (Note theres no ppc64 arch option in the bugzilla list!)



Version-Release number of selected component (if applicable):
rpm-4.2.3-10

How reproducible:
Always

Steps to Reproduce:
1. Is specific to this Logical Partition, others seem to be fine
2.
3.
    

Additional info:

Comment 1 Anthony Rumble 2004-11-26 03:44:58 UTC
Created attachment 107470 [details]
Strace of rpm --rebuilddb

Here is an strace -s255 of the rpm --rebuilddb in question

Comment 2 Jeff Johnson 2004-11-26 07:46:50 UTC
What does the following say:
    cd /var/lib/rpm
    rm -f __db*
    /usr/lib/rpm/rpmdb_verify Packages

If rpmdb_verify detects problems, the fix is
    cd /var/lib/rpm
    mv Packages Packages-ORIG
    /usr/lib/rpm/rpmdb_dump Packages-ORIG | \
       /usr/lib/rpm/rpmdb_load Packages
    rpm --rebuilddb -vv



Comment 3 Anthony Rumble 2004-11-26 08:39:26 UTC
rpmdb_verify doesn't report any problems.



Comment 4 Jeff Johnson 2004-11-26 14:15:22 UTC
OK. Could you give me a ptr (i.e. URL, rpmdb's are too big for
an attachment) to your rpmdb please?
    cd /var/lib
    tar czvf /tmp/rpmdb-140880.tar.gz ./rpm
and I'll see if I can reproduce the problem.

Specific to a single logical partition sounds like
some other cause than rpm however. I would expect
an rpm problem to track with an rpmdb or rpm executable,
not a logical partition. But ya never know ...

Comment 5 Anthony Rumble 2004-11-26 21:09:25 UTC
http://images.elx.com.au/rpmdb-140880.tar.gz


Comment 6 Dmitri Kushak 2004-11-29 00:49:57 UTC
No comments, just adding myself to the CC: list

Comment 7 Anthony Rumble 2004-11-29 23:39:17 UTC
The client now informs me that they had inadvertantly restored their
backup tape over /var, including their i386 based /var/lib/rpm from
their previous machine!

Which explains a lot.

Sorry to waste your time Jeff.

Hopefully I will have some better ppc64 bug reports for you later.
(Im chasing down a few at the moment)



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