Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Created attachment 1536415[details]
Upstream fix
High-level overview: In the zlib version included in RHEL 7, the zlib contains a bug related to setting the inflate/deflate sliding window size. This manifests in the NodeJS package manager `npm` included in the rh-nodejs10 software collections as a regular error when working with gzipped streams (see bug #1677710 for details).
Lower-level details: According to zlib upstream, there is a bug in automatic window size settings in zlib versions < 1.2.9. In certain cases the window size should be retrieved from stream header. In some of the cases the header is not present at all (upstream notes gzip streams explicitly), which leads to this bug.
Version-Release number of selected component (if applicable):
zlib-1.2.7-18.el7
How reproducible: consistently
Steps to Reproduce (using npm from rh-nodejs10, which uses zlib):
1. npm info npm (or any other *existing* package)
Actual results:
npm ERR! code Z_DATA_ERROR
npm ERR! errno -3
npm ERR! invalid distance too far back
Expected results:
npm.0 | Artistic-2.0 | deps: 122 | versions: 308
a package manager for JavaScript
...snip...
Additional info:
Upstream fixed this via the attached commit/patch.
The upstream bundles the zlib, and the version bundled with nodejs-10 (currently 1.2.11, according to git messages) already contains the fix necessary for the npm to work as expected. We unbundle this and use system zlib, which on RHEL 7 currently contains the issue that triggers this.
It looks like the nodejs part of this issue was solved by bundling the zlib from nodejs project, and since it doesn't look like a problem for other issues, I'd support the idea of closing this WONTFIX for now in RHEL-7. We should just make sure this issue is fixed in RHEL-8 -- is that the case?
Thank you for reporting this issue!
As this bug is fixed in RHEL-8 and also in upstream and does not really
have a real functional impact on end users. Given the priority of this
bug is not considered high by engineering, and given the RHEL-7 is close
to the Maintenance Support 1 phase, it is not probable that it will be
fixed in the upcoming releases for RHEL-7. Therefore, closing it as WONTFIX.
The official life cycle policy can be reviewed here:
http://redhat.com/rhel/lifecycle. If this issue remains an important
requirement, please contact Red Hat Customer Support to request a
re-evaluation of the issue, citing a clear business justification.