Bug 76331

Summary: rpm --rebuilddb seg faults
Product: [Retired] Red Hat Linux Reporter: Need Real Name <redhat-bugs>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 7.2   
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: 2005-04-19 18:46:58 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 2002-10-20 04:25:22 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826

Description of problem:
rebuilding the rpm database segfaults. rpm -qa works fine. I've attempted to use
t38454 to fix it but it's not working.

Here is the output with debugging on:

[root@john rpm]# rpm --rebuilddb
+++ RMW Packages 
    Get Packages key (0x805a8c0,4) data (0x805a8d0,4) "#0" 38f rc 0
    Get Packages key (0x805a8c0,4) data (0x805d290,9320) "#4" 44000000 rc 0
+++ RMW Packages WRITECURSOR
    Get Packages key (0xbffff5dc,4) data (0x8061b70,9320) "#0" deadbeef rc -30990
Segmentation fault
[root@john rpm]#

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


How reproducible:
Always

Steps to Reproduce:
1. run rpm --rebuilddb on my corrupt database
2. watch it segfault.
	

Actual Results:  [root@john rpm]# rpm --rebuilddb
+++ RMW Packages 
    Get Packages key (0x805a8c0,4) data (0x805a8d0,4) "#0" 38f rc 0
    Get Packages key (0x805a8c0,4) data (0x805d290,9320) "#4" 44000000 rc 0
+++ RMW Packages WRITECURSOR
    Get Packages key (0xbffff5dc,4) data (0x8061b70,9320) "#0" deadbeef rc -30990
Segmentation fault
[root@john rpm]#

Expected Results:  It rebuilds succesfully.

Additional info:

Comment 1 Jeff Johnson 2002-10-21 12:42:07 UTC
What version of rpm? If not rpm-4.1, then try
a --rebuilddb with rpm-4.1.

Comment 2 Jeremy Katz 2005-04-19 18:46:58 UTC
Closing due to inactivity.  If this issue still occurs with current releases,
please reopen and set the release in which you've encountered the problem.