[Ubuntu 20.10] - When zlib acceleration is enabled, gzip fails when given multiple files larger than 5KB (gzip)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
Skipper Bug Screeners | ||
gzip (Ubuntu) |
Fix Released
|
High
|
Canonical Foundations Team | ||
Groovy |
Fix Released
|
High
|
Unassigned |
Bug Description
When zlib acceleration is enabled, gzip fails when given multiple files larger than 5KB.
This problem does not happen when running gzip against a single file at a time. It only happens when you provide multiple files as gzip arguments.
So this works whether zlib acceleration is enabled or not:
for file in file1 file2; do gzip $file ; done
But this fails (when zlib acceleration is enabled):
gzip file1 file2
The patch to fix this has been accepted upstream:
https:/
[Impact]
* With zlib acceleration enabled, attempting to compress multiple files
over 5MB would cause a segmentation fault.
* The files could still be compressed in separate commands
[Test Case]
* Create two files that are larger than 5MB
* Enable zlib acceleration (z15 hardware required)
* Run the command gzip <file1> <file2>
* NOTE: we do not have access to z15 hardware and therefore are relying
on IBM to verify this fix
[Where problems could occur]
* Due to lack of testing resources, it's possible the bug has not been
fully fixed, and the segmentation fault could still occur.
tags: | added: architecture-s39064 bugnameltc-188840 severity-high targetmilestone-inin2010 |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → zlib (Ubuntu) |
Changed in ubuntu-z-systems: | |
importance: | Undecided → High |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
tags: | added: fr-859 |
Changed in zlib (Ubuntu): | |
assignee: | Skipper Bug Screeners (skipper-screen-team) → nobody |
Changed in gzip (Ubuntu): | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
Changed in zlib (Ubuntu): | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
Changed in ubuntu-z-systems: | |
assignee: | Canonical Foundations Team (canonical-foundations) → Skipper Bug Screeners (skipper-screen-team) |
Changed in gzip (Ubuntu): | |
status: | New → In Progress |
Changed in zlib (Ubuntu): | |
status: | New → Invalid |
description: | updated |
Changed in ubuntu-z-systems: | |
status: | New → Fix Committed |
no longer affects: | zlib (Ubuntu) |
no longer affects: | zlib (Ubuntu Groovy) |
Changed in gzip (Ubuntu): | |
importance: | Undecided → High |
Changed in gzip (Ubuntu Groovy): | |
importance: | Undecided → High |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package gzip - 1.10-2ubuntu2
---------------
gzip (1.10-2ubuntu2) hirsute; urgency=medium
[ William 'jawn-smith' Wilson ]
* Applying patch from upstream to fix a segfault caused by passing
multiple files larger than 5kb to a gzip command while zlib
acceleration is enabled (LP: #1901528)
-- Brian Murray <email address hidden> Mon, 18 Jan 2021 10:35:03 -0800