Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 484094

Summary: rpm -e fails on package with many files
Product: Red Hat Enterprise Linux 4 Reporter: Petr Sklenar <psklenar>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED DEFERRED QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.8CC: ohudlick, redhat-bugzilla, zarg
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 483235 Environment:
Last Closed: 2010-02-04 09:16:33 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:
Bug Depends On: 483235    
Bug Blocks:    

Description Petr Sklenar 2009-02-04 18:26:04 UTC
+++ This bug was initially created as a clone of Bug #483235 +++

Created an attachment (id=330460)
huge dir with many files

Description of problem:
there is 129936 files in tree, you can built it and install it, but it cannot be uninstalled

Version-Release number of selected component (if applicable):
rpm-4.4.2.3-9.el5
+ rhel4 too

How reproducible:
always

Steps to Reproduce:
1. rpmbuild -ba huge-dir-tree.spec
2. rpm -Uvh huge-dir-tree.rpm
3. rpm -e huge-dir-tree
  
Actual results:
rpmbuild + install PASS

# rpm -e huge-dir-tree
On rhel5 it writes : memory alloc (8 bytes) returned NULL.
On rhel4 it writes : memory alloc (3455160288 bytes) returned NULL.

Expected results:
# rpm -e huge-dir-tree
..successfully erased

Additional info:
there is similar bug for rpmbuild
bug 438675
bug 462539
..but when it is possible to create a built , it has to be erased

Comment 4 Panu Matilainen 2010-02-04 09:16:33 UTC
Like bug 483235, this is not fixable in RHEL 4/5, but rpm in RHEL 6 wont have this problem.

Comment 5 Panu Matilainen 2010-02-04 09:17:30 UTC
*** Bug 185694 has been marked as a duplicate of this bug. ***