Bug 706935
Summary: | RPM sigfaults when installing a package with huge (80k) number of files. | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Andrei <Andrei.Kazarov> | |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> | |
Status: | CLOSED ERRATA | QA Contact: | Aleš Mareček <amarecek> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 5.6 | CC: | amarecek, ksrot, pkis, pmatilai | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | rpm-4.4.2.3-34.el5 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 919435 (view as bug list) | Environment: | ||
Last Closed: | 2013-09-30 21:57:54 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: | ||||
Bug Blocks: | 919435 |
Description
Andrei
2011-05-23 14:20:05 UTC
we realized that the package installs without --prefix option. Interesting case. There are actually several different (but related) issues here: The original header is big, but below the artificially limited 16MB max header size. However relocation nearly doubles the size because rpm saves both the original and relocated paths in the header, and that pushes the total header size above the limit, causing headerUnload() to return NULL which then blows up in rpmdbAdd(). rpm >= 4.9.0 doesn't crash (it checks for the NULL) but adding the header fails there too, causing the install to be considered failed despite all the files having been laid on disk already. Failing this because of an artificial size limit is silly, especially since it's rpm itself which causes the limit to be exceeded here when the original header from the package is perfectly legal even with the current (arguably too low) limit on the header size. Sorry, this has gone all but forgotten. We wont be able to address the fundamental limitation in rhel-5 (or -6 for that matter) but segfaulting is not acceptable, that needs to be fixed. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1297.html |