Bug 52064

Summary: rpm dumps core on any command (pretty much identical to Bug #47708)
Product: [Retired] Red Hat Linux Reporter: Need Real Name <matthias>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: www.schoener.net/rpmdb.tar.gz
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-20 09:09:21 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 Need Real Name 2001-08-20 09:09:16 UTC
Description of Problem:

Just like #47708: I installed a package using Kpackage, following that, my
database must have gotten trashed. Neither kpackage, nor rpm will work. rpm
-rebuilddb seg faults, as does rpm -qa (following the qt-designer package).
Attempt to install rpm 4.0.3 failed similarly. I attached a pointer to my
zipped /var/lib/rpm directory as an URL.
Version-Release number of selected component (if applicable):
4.0.2 on RH 7.1

How Reproducible:
Always

Steps to Reproduce:
1. enter any rpm command
2. 
3. 

Actual Results:
segmentation fault

Expected Results:


Additional Information:
contained in the archive...


Thanks for your help...

Comment 1 Jeff Johnson 2001-08-20 15:13:57 UTC
Try installing rpm-4.0.3 using rpm2cpio
	mkdir /var/tmp/xxx
	cd /var/tmp/xxx
	rpm2cpio rpm-4.0.3-*.rpm | cpio -dim
	find . -type d -exec chmod 755 {} \;
	tar cf - . | (cd /; tar xvf -)
and then doing "rpm --rebuilddb -vv"

Don't forget to reinstall the rpm packages afetrwards so that
the entries in the database reflect what is on the file system.

Reopen this bug if the above does not bring you joy.

Comment 2 Need Real Name 2001-08-20 16:35:18 UTC
Thanks, this fixed it. At least rpm works fine, now. As for kpackage, it 
refuses to launch:

[root@Tweety download]# kpackage
kpackage: error while loading shared libraries: /usr/lib/librpm.so.0: 
undefined symbol: fpHashFunction
[root@Tweety download]#

If you have any thoughts on how I might get that front-end fixed, I'd love to 
hear them.

Many thanks for the fix.

Matthias



Comment 3 Jeff Johnson 2001-08-20 17:11:54 UTC
Yup. Either downgrade rpm to rpm-4.0.2 or upgrade kpackage to rpm-4.0.3.