Bug 483235 - rpm -e fails on package with many files
Summary: rpm -e fails on package with many files
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rpm
Version: 5.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Panu Matilainen
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 484094
TreeView+ depends on / blocked
 
Reported: 2009-01-30 12:27 UTC by Petr Sklenar
Modified: 2011-03-15 13:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 484094 (view as bug list)
Environment:
Last Closed: 2009-09-02 13:47:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
huge dir with many files (1.10 KB, text/x-rpm-spec)
2009-01-30 12:27 UTC, Petr Sklenar
no flags Details

Description Petr Sklenar 2009-01-30 12:27:13 UTC
Created attachment 330460 [details]
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 1 Florian Festi 2009-09-02 13:47:41 UTC
Reason for this is non linear run time and memory usage for erases/updates for large number of files. This already got fixed upstream. As these fixes require rewriting large parts of the file (conflict) handling they are not acceptable for backporting. Sorry.


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