Bug 89519 - rpm hangs followed by rpm segfault on -qa, --rebuildb,
rpm hangs followed by rpm segfault on -qa, --rebuildb,
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-04-23 14:49 EDT by Val Schmidt
Modified: 2007-04-18 12:53 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-04-28 13:41:05 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 Val Schmidt 2003-04-23 14:49:52 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
This is a RH8.0 systems with a "complete" installation.  

I was experiencing similar symptoms to previous bugs in which rpm would hang on
-Uvh or Fvh.  I killed the rpm process each time and only later learned that I
also needed to ensure the db lock files were removed for proper operation.

However, I have since done that...

[root@kokua i386]# rm /var/lib/rpm/__db*
rm: remove regular file `/var/lib/rpm/__db.001'? y
rm: remove regular file `/var/lib/rpm/__db.002'? y
rm: remove regular file `/var/lib/rpm/__db.003'? y

...and now any operation with rpm results in a segmentation fault. For example:

 rpm -vv --rebuilddb
Segmentation fault

 rpm -vv -qa
Segmentation fault

An strace can be seen at http://www.ldeo.columbia.edu/~vschmidt/rpmqatrace 
if that's any help.

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

How reproducible:

Steps to Reproduce:
1.rpm -qa  is all that's required

Additional info:

Although I see the problem every time, I'm not sure what steps were required to
get me here - so in that sense I haven't been able to reproduce it. I'm grasping
at straws to understand what causes these kinds of errors.
Comment 1 Jeff Johnson 2003-04-23 15:03:09 EDT
Can you give me a pointer (i.e. URL, attachments won't work)
to a tarball of your database
    cd /var/lib
    tar xzvf /tmp/rpmdb-89519.tar.gz rpm
and I'll take a look? Thanks.
Comment 2 Val Schmidt 2003-04-23 16:13:33 EDT

/var/lib/rpm tar'd and zipped and can be found at


Comment 3 Jeff Johnson 2003-04-24 14:51:55 EDT
OK, your database looks fine, all header signatures verify,
so something else is going on.

The strace indicates segfault before reaching main in rpm,
which seems to point at something other than rpm as the cause.

Do any rpm commads work? Try
    rpm -V glibc kernel
possibly other commands as well, and tell me what works or
not, please.
Comment 4 Val Schmidt 2003-04-28 13:41:05 EDT
It turns out the cause of this didn't have anything to do with rpm directly.  

Early on, rpm (4.1.1) had hung and had to be killed. It appears that some, but 
not all, of the glib* rpms were updated during that process.  

This seems to have caused the ensuing segmentation faults with rpm and (other 
processes on the system it would turn out).  

I force updated the glib* rpms from the RH8.0 basic distro with
rpm -Uvh --force glib*

The segmentation faults are gone.

OF NOTE: There were two errors when executing the above (in a trigger script 
and a post install script).  Although this may bite me in the bottom, at first 
look, they appear to be inconsequential.  To be sure, I've executed an rpm -
qa --info > rpmlonglist, and when I have time I'll try to figure out if my 
forced install has broken any dependancies.

Thanks for everyone's help.


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