RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1434656 - rpm installation failed with --relocate option due to large header size
Summary: rpm installation failed with --relocate option due to large header size
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: Jan Blazek
URL:
Whiteboard:
Depends On:
Blocks: 1420851 1465896 1466368
TreeView+ depends on / blocked
 
Reported: 2017-03-22 02:37 UTC by Masahiro Matsuya
Modified: 2021-06-10 12:05 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 15:58:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0877 0 None None None 2018-04-10 15:59:42 UTC

Description Masahiro Matsuya 2017-03-22 02:37:38 UTC
Description of problem:
This is related with a old fedora bug.
https://bugzilla.redhat.com/show_bug.cgi?id=982348

A customer has a custom package with a large number of files.
He could not install it on RHEL7.3 with --relocate option.

I put the actual command and the result in another private comment.

After investigation, it failed with the following code (hdrchkData) in headerExport().

    /* Sanity checks on header intro. */
    if (hdrchkTags(il) || hdrchkData(dl))
        goto errxit;

(gdb) print il
$3 = 68
(gdb) print/x dl
$2 = 0x1496158

In lib/header_internal.h:
/**
 * Sanity check on data size and/or offset and/or count.
 * This check imposes a limit of 16 MB, more than enough.
 */
#define HEADER_DATA_MAX 0x00ffffff
#define hdrchkData(_nbytes) ((_nbytes) & (~HEADER_DATA_MAX))

It failed in hdrchkData().

Can we remove this limitation by increasing the maximum header data?


Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 7

How reproducible:
Always

Steps to Reproduce:
I will write this in a separated private comment.

Actual results:
installation failed. rpmdb was not updated.
But, the files are installed on the system.

Expected results:
installation doesn't fail

Additional info:

C#1 in https://bugzilla.redhat.com/show_bug.cgi?id=982348
> But yes, this needs fixing sooner than later.

This comment was created in 2013, so I want to know if it can be fixed in RHEL7 at this stage.

Comment 1 Masahiro Matsuya 2017-03-22 02:44:33 UTC
Also, it seems that BZ#953719 referred from above bugzilla (BZ#982348, C#4)
The patch should be https://github.com/rpm-software-management/rpm/commit/da3a3a14e757ccd517e2eb2a3f0293ff48b3ff7f, and it has already been applied to RHEL7.

Comment 11 errata-xmlrpc 2018-04-10 15:58:38 UTC
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.

https://access.redhat.com/errata/RHBA-2018:0877


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