Bug 86553 - rpm database corrupt after a rpm hang
rpm database corrupt after a rpm hang
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-03-25 08:42 EST by Robert de Nijs
Modified: 2007-04-18 12:52 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-19 14:44:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert de Nijs 2003-03-25 08:42:21 EST
Description of problem:
rpm gives a segmentation fault after hang on
rpm -Fvh binutils-
(100 % complete, then a hang.)
binutils is twice in the database
rpm -qa | grep binutils gives

every rpm update gives a segmentation fault

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

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Robert de Nijs 2003-03-25 08:43:09 EST
tried rpm --rebuild, db_verify (no errors), db_dump db_load 
every update gives a segmentation fault
for example
rpm -Fvvh cvs-
gives at the end
########################################### [100%]
D: ========== +++ cvs-1.11.2-8
D: Expected size:      1128389 = lead(96)+sigs(344)+pad(0)+data(1127949)
D:   Actual size:      1128389
D:   install: cvs-1.11.2-8 has 55 files, test = 0
D:  read h#     645 Header V3 DSA signature: NOKEY, key ID db42a60e
Segmentation fault

in fact every update gives a segmentation fault

Comment 2 Jeff Johnson 2003-03-28 14:39:56 EST
"Every install segfaults" smells like LDAP pam module.

Try doing
    server nscd restart
and repeating. If that fixes, then insure that nscd is
started during boot.

If that does not fix, please reopen this bug with more
specific information.
Comment 3 Robert de Nijs 2003-04-02 02:32:40 EST
I've tried a rpm --rebuilddb after deleting all files but the Packages file 
with nscd started, this didn't fix the problem.
A db_verify didn't help either.
I still think that the problem is caused by the dubbel binutils in the rpm
Packages file.
(all the file on my system are from the newest binutils package)
rpm -qa still works fine.
Every update gives a segfault, i am not able to remove one of the binutils.
The only thing I can find to do is a "pretended install" to recreate a new rpm 
database. This looks very tricky to me.
Comment 4 Jeff Johnson 2003-04-02 19:00:03 EST
Please give me a pointer (i.e. URL, attachments won't work)
to a tarball of your database
    cd /var/lib
    tar czvf /tmp/rpmdb-86553.tar.gz
and I'll verify that there is nothing wrong.
Comment 5 Jeff Johnson 2003-04-02 19:01:21 EST
Hmmm that should have been
    tar czvf /tmp/rpmdb-86553.tar.gz rpm
Comment 6 Jeremy Katz 2005-04-19 14:44:23 EDT
Closing due to inactivity.  If this issue still occurs with current releases,
please reopen and set the release in which you've encountered the problem.

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