Comment 4 for bug 2002511

Revision history for this message
In , lbalhar (lbalhar-redhat-bugs) wrote :

Description of problem:
The latest version of zlib (1.2.13) in rawhide breaks libxml2 (and therefore lxml). The problem appears during loading a gzipped XML file.

Version-Release number of selected component (if applicable):
zlib-1.2.13-1.fc38.s390x

How reproducible:
Allways.

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. It works fine with zlib-1.2.12-5.fc37.s390x.

Additional info:
Might this be caused by the downstream patches we have in Fedora for s390x?