Bug 52064 - rpm dumps core on any command (pretty much identical to Bug #47708)
Summary: rpm dumps core on any command (pretty much identical to Bug #47708)
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
URL: www.schoener.net/rpmdb.tar.gz
Depends On:
TreeView+ depends on / blocked
Reported: 2001-08-20 09:09 UTC by Need Real Name
Modified: 2007-04-18 16:36 UTC (History)
0 users

Clone Of:
Last Closed: 2001-08-20 09:09:21 UTC

Attachments (Terms of Use)

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:

Steps to Reproduce:
1. enter any rpm command

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.


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.

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