Bug 2167453
| Summary: | gzip --list misinterprets the correct uncompressed size for large file sizes on RHEL8 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Ameya Patil <amepatil> |
| Component: | gzip | Assignee: | Jakub Martisko <jamartis> |
| Status: | CLOSED MIGRATED | QA Contact: | qe-baseos-daemons |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.7 | Keywords: | MigratedToJIRA |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-09-20 23:13:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |
Description of problem: One of our customer found that On RHEL8, when running gzip --list on a large compressed file (multi-GB), it misinterprets the uncompressed filesize: On RHEL8, when running gzip --list on a large compressed file (multi-GB), it misinterprets the uncompressed filesize: ~~~ $ gzip --list rhel9.tar.gz compressed uncompressed ratio uncompressed_name 8262683410 4279486464 -93.1% rhel9.tar $ cat /etc/redhat-release Red Hat Enterprise Linux release 8.6 (Ootpa) ~~~ The same command on RHEL9 works fine: ~~~ # gzip --list rhel9.tar.gz compressed uncompressed ratio uncompressed_name 8262683410 8574453760 3.6% rhel9.tar # cat /etc/redhat-release Red Hat Enterprise Linux release 9.1 (Plow) ~~~ Customer has listed this was fixed in the upstream gzip in this commit and want this to be implemented in RHEL 8: https://git.savannah.gnu.org/cgit/gzip.git/commit/?id=cf26200380585019e927fe3cf5c0ecb7c8b3ef14 Version-Release number of selected component (if applicable): gzip-1.9-13.el8_5.x86_64 How reproducible: Everytime Steps to Reproduce: 1. REAL file ~~~ # ls -la rhel8.tar -rw-r--r--. 1 root root 11465134080 Feb 3 05:35 rhel8.tar ~~~ 2. RHEL 8 GZIP latest version - gzip-1.9-13.el8_5.x86_64 ~~~ # gzip --list rhel8.tar.gz compressed uncompressed ratio uncompressed_name 11024697867 2875199488 -283.4% rhel8.tar ~~~ 3. RHEL 9 GZIP latest version - gzip-1.12-1.el9.x86_64 ~~~ # gzip --list rhel8.tar.gz compressed uncompressed ratio uncompressed_name 11024697867 11465134080 3.8% rhel8.tar ~~~ Actual results: The uncompressed size show is much smaller causing a negative compression ratio. Users cannot rely on the information provided by the utility and have to develop workarounds Expected results: Should display correct uncompressed file size. Additional info: