Bug 45109 - rpm seg falts and core dumps on rpm database
Summary: rpm seg falts and core dumps on rpm database
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
URL: http://www.darkmist.net/~schallee/rpm...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-06-20 06:39 UTC by Ed Schaller
Modified: 2007-04-18 16:33 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-06-20 18:04:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Ed Schaller 2001-06-20 06:39:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.18-spore-01 i686)

Description of problem:
I'm having problems with rpm seg-falting when trying to get information
from the
database. It appears to be a bad entery in there. One of them is a
bind-utils
rpm from the 6.2 updates. Anything that does anything with that rpm (at
least)
core dumps. This includes all -ql -qi -F -U -i -e that do anything with
that
rpm. The rpm version is 4.0.2.


How reproducible:
Always

Steps to Reproduce:
1. use my rpm database at above url
2. do a rpm -qa
3. repeat with any other option that lists the rpms in the db
	

Actual Results:  partial list of rpms
Segmentation fault (core dumped)

Expected Results:  complete list of rpms

Additional info:

I copied a older version from another system (Version 3.0). It core dumps
some
of the time but not always. Some interesting outputs are:

# ./rpm -ql bind-utils
(contains no files)
#
# ./rpm -qa | grep null
(null)-(null)-(null)
(null)-(null)-(null)
#

It also segfaults on -ev as well.

I rebuilt the rpm database with rpm --rebuilddb which core dumped and
didn't
seem to change anything.

I tried to compile both 4.0.2 and 3.0.4 from the source rpms so I could run
a
debugger on one, but neither of them would even compile on my 6.2 system.
4.0.2
couldn't find "no" as a command and 3.0.4 had a linker error.

Comment 1 Jeff Johnson 2001-06-20 15:06:29 UTC
Can you provide a pointer (attachmensts won't work) to your database
	cd /var/lib
	tar czvf /tmp/rpmdb-45109.tar.gz rpm
and I'll take a look? Thanks ...

Comment 2 Ed Schaller 2001-06-20 18:03:58 UTC
Hum.. Funny, I put it in the URL field for bugzilla, but I guess it didn't work
to well. Here it is:
http://www.darkmist.net/~schallee/rpm/rpmdb.tar.gz

Comment 3 Jeff Johnson 2001-06-30 18:43:23 UTC
Apologies for the duplicated request, the URL field is often off the
immediate screen when I'm typing in comments.

Fixed in (at least) rpm-4.0.3-0.55. Meanwhile your rpm/packages.rpm
and my rebuild log are at
	ftp://people.redhat.com/jbj/rpmdb1-45109-FIX.tar.gz
Do the following
	cd /var/lib/rpm
	mv packages.rpm packages.rpm-SAVE
	cd ..
	tar xzvf  rpmdb1-45109-FIX.tar.gz
	rpm --rebuilddb -vv

Comment 4 Ed Schaller 2001-07-04 06:03:39 UTC
thanks. I sure appreciate the help.


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