Bug 29385

Summary: Segmentation fault in rpm 4.0-4 in transaction.c # 802
Product: [Retired] Red Hat Linux Reporter: mbosch
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-25 15:12:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mbosch 2001-02-25 14:11:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; 0.7)
Gecko/20010126


I've been trying to use RedCarpet from Ximian for the past week. However,
it never succeeds to install the packages it downloads because rpm crashes
on most of the rpm's it downloads. This also happens with the rpm-4.0-4 it
downloads, so I can not upgrade to a working rpm.
Therefor I have compiled rpm myself from the source rpm-4.0-4 src rpm.
Also this crashes, however, now I can use gdb.
It crashes in transaction.c at line 802 because otherStates = 0.

Note that approximately half of the rpm files I downloaded recently do not
crash and half of them do. I have no clue why otherStates ==0, but if you
need more information, or you can not reproduce, I can play some more with gdb.

greetings

Marco Bosch

Reproducible: Always
Steps to Reproduce:
1.download for instance GConf-0.12-100_helix_2001020808.i386.rpm2.
2.su (become root)
3.rpm -Uvvh GConf-0.12-100_helix_2001020808.i386.rpm

	
Actual Results:  Segmentation fault

Expected Results:  No crash, but installation of the package

output just before segfault

D: installing binary packages
D: getting list of mounted filesystems
D: opening db index       /var/lib/rpm/Group create mode=0x42
D: opening db index       /var/lib/rpm/Triggername create mode=0x42

Comment 1 Jeff Johnson 2001-02-25 14:23:26 UTC
Um, try the rpm-4.0.2 packages at
	ftp://ftp.rpm.org/pub/rpm/test-4.0.2
as there are several known miscompilations of rpm with gcc-2.96

Meanwhile, you probably have packages in your database that are
missing the file states tag. That will cause segfaults, but never should
have happened, and how you got into that state needs to be understood.
I can tell you how to work around, but I need to be on the same sources
as you to tell you what will be needed.

Comment 2 mbosch 2001-02-25 14:35:16 UTC
It's not really a big problem, I will reinstall Red Hat 7.0 and try to
see if it works ok. However, I've done this already yesterday, and the only
packages I've installed afterwards where the one that Red Carpet tried to
download and install.
And the first one is rpm-4.0-4. And sometime after that, I got into problems...


Marco

Comment 3 Jeff Johnson 2001-04-05 12:51:08 UTC
This problem is both caused and fixed by rpm-4.0.2. Install that version.