2023-01-11 10:26:58 |
Frank Heimes |
bug |
|
|
added bug |
2023-01-11 10:27:17 |
Frank Heimes |
bug task added |
|
ubuntu-z-systems |
|
2023-01-11 10:27:34 |
Frank Heimes |
summary |
zlib 1.2.13 breaks libxml(2) on s390x |
zlib 1.2.13 (and patched 1.2.11) breaks libxml(2) on s390x |
|
2023-01-11 10:27:37 |
Frank Heimes |
ubuntu-z-systems: importance |
Undecided |
High |
|
2023-01-11 10:33:02 |
Frank Heimes |
attachment added |
|
1390.patch https://bugs.launchpad.net/ubuntu-z-systems/+bug/2002511/+attachment/5640636/+files/1390.patch |
|
2023-01-11 10:34:52 |
Frank Heimes |
attachment removed |
1390.patch https://bugs.launchpad.net/ubuntu-z-systems/+bug/2002511/+attachment/5640636/+files/1390.patch |
|
|
2023-01-11 10:35:40 |
Frank Heimes |
attachment added |
|
1390.patch https://bugs.launchpad.net/ubuntu-z-systems/+bug/2002511/+attachment/5640638/+files/1390.patch |
|
2023-01-11 11:51:00 |
Frank Heimes |
description |
It has been reported that 1.2.13 as well as the patch from LP#1990379 breaks libxml2 (and libxml) on s390x:
(https://bugzilla.redhat.com/show_bug.cgi?id=2155328). The attached patch should fix the issue.
The upstream author proposed a fix and a new test for zlib-ng (https://github.com/zlib-ng/zlib-ng/pull/1390) in order to detect such breakages in the future.
___
This was initially reported as part of LP#1990379,
especially: https://bugs.launchpad.net/ubuntu/+source/zlib/+bug/1990379/comments/12
but needs a separate LP bug (number) - this one.
___
The proposed patch at https://launchpadlibrarian.net/641454325/patch-1.2.11
needed some tweaks regarding white-spaces, but then applied fine on focal, jammy, kinetic and also 1.2.13, which is what we currently have in lunar-proposed. |
SRU Justification:
------------------
[ Impact ]
* zlib version 1.2.13, as well as patched zlib versions 1.2.11 with
the patch from LP#1990379, break libxml2 and lxml on s390x.
* The problem appears during loading a gzipped XML file.
* Disabling hw compression with 'export DFLTCC=0' solves this,
hence it's a problem with the hardware acceleration patches DFLTCC.
* For more info see: https://bugzilla.redhat.com/show_bug.cgi?id=2155328
[ Test Plan ]
* Steps to Reproduce:
1. echo "<a></a>" > file.xml
2. gzip file.xml
3. python3
>>> import libxml2
>>> libxml2.parseFile("file.xml.gz")
* Actual results:
file.xml.gz:1: parser error : Document is empty
^
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.11/site-packages/libxml2.py",
line 1362, in parseFile
if ret is None:raise parserError('xmlParseFile() failed')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
libxml2.parserError: xmlParseFile() failed
* Expected results:
Loaded file.
[ Where problems could occur ]
* Since this is limited to s390x and DFLTCC / hw acceleration active,
any possible problems are limited to such environments.
* Fix can be broken if the state handling (state->wrap),
or the states mixed.
* The translation from stream to parameter block could be broken
(again due to wrong states) and the inflate as well.
[ Other Info ]
* The official upstream fix is here:
https://github.com/zlib-ng/zlib-ng/pull/1390
but it's for zlib-ng.
* For zlib this needs to be adjusted and was done by the author here:
https://launchpadlibrarian.net/641454325/patch-1.2.11
* And again slightly adjusted by me (renamed, some white-space fixes
and conversion into a quilt patch with proper dep3 header):
https://launchpadlibrarian.net/645435847/1390.patch
* The zlib version in Focal, Jammy, Kinetic and Lunar are affected.
__________
It has been reported that 1.2.13 as well as the patch from LP#1990379 breaks libxml2 (and libxml) on s390x:
(https://bugzilla.redhat.com/show_bug.cgi?id=2155328). The attached patch should fix the issue.
The upstream author proposed a fix and a new test for zlib-ng (https://github.com/zlib-ng/zlib-ng/pull/1390) in order to detect such breakages in the future.
___
This was initially reported as part of LP#1990379,
especially: https://bugs.launchpad.net/ubuntu/+source/zlib/+bug/1990379/comments/12
but needs a separate LP bug (number) - this one.
___
The proposed patch at https://launchpadlibrarian.net/641454325/patch-1.2.11
needed some tweaks regarding white-spaces, but then applied fine on focal, jammy, kinetic and also 1.2.13, which is what we currently have in lunar-proposed. |
|
2023-01-11 11:51:07 |
Frank Heimes |
nominated for series |
|
Ubuntu Focal |
|
2023-01-11 11:51:07 |
Frank Heimes |
bug task added |
|
zlib (Ubuntu Focal) |
|
2023-01-11 11:51:07 |
Frank Heimes |
nominated for series |
|
Ubuntu Jammy |
|
2023-01-11 11:51:07 |
Frank Heimes |
bug task added |
|
zlib (Ubuntu Jammy) |
|
2023-01-11 11:51:07 |
Frank Heimes |
nominated for series |
|
Ubuntu Kinetic |
|
2023-01-11 11:51:07 |
Frank Heimes |
bug task added |
|
zlib (Ubuntu Kinetic) |
|
2023-01-11 11:51:07 |
Frank Heimes |
nominated for series |
|
Ubuntu Lunar |
|
2023-01-11 11:51:07 |
Frank Heimes |
bug task added |
|
zlib (Ubuntu Lunar) |
|
2023-01-11 11:51:30 |
Frank Heimes |
ubuntu-z-systems: status |
New |
Triaged |
|
2023-01-11 11:51:40 |
Frank Heimes |
zlib (Ubuntu Lunar): status |
New |
In Progress |
|
2023-01-11 12:25:23 |
Ubuntu Foundations Team Bug Bot |
tags |
s390x |
patch s390x |
|
2023-01-11 12:27:22 |
Frank Heimes |
bug watch added |
|
https://bugzilla.redhat.com/show_bug.cgi?id=2155328 |
|
2023-01-11 12:27:22 |
Frank Heimes |
bug task added |
|
zlib |
|
2023-01-11 13:08:00 |
Bug Watch Updater |
zlib: status |
Unknown |
In Progress |
|
2023-01-11 13:08:00 |
Bug Watch Updater |
zlib: importance |
Unknown |
Undecided |
|
2023-01-11 14:58:05 |
Frank Heimes |
summary |
zlib 1.2.13 (and patched 1.2.11) breaks libxml(2) on s390x |
zlib 1.2.13 (and patched 1.2.11) breaks libxml2 on s390x |
|
2023-01-11 16:21:17 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Review Team |
2023-01-11 17:12:15 |
Frank Heimes |
attachment added |
|
debdiff_zlib_lunar_from_1.2.13.dfsg-1ubuntu3_to_1.2.13.dfsg-1ubuntu4.diff https://bugs.launchpad.net/zlib/+bug/2002511/+attachment/5640780/+files/debdiff_zlib_lunar_from_1.2.13.dfsg-1ubuntu3_to_1.2.13.dfsg-1ubuntu4.diff |
|
2023-01-12 14:50:01 |
Frank Heimes |
ubuntu-z-systems: status |
Triaged |
In Progress |
|
2023-01-13 15:36:02 |
Bug Watch Updater |
zlib: status |
In Progress |
Fix Released |
|
2023-01-25 21:47:37 |
Launchpad Janitor |
zlib (Ubuntu Lunar): status |
In Progress |
Fix Released |
|
2023-08-10 18:01:08 |
Utkarsh Gupta |
zlib (Ubuntu Kinetic): status |
New |
Won't Fix |
|