Problems loading gzipped file on s390x
I'm sorry because I have a feeling that this does not belong here but I'm kinda lost and I'd appreciate any help.
I have two machines running on s390x. One is on Fedora Rawhide (devel) and one is on the latest stable Fedora 37. I have python3-libxml2 installed from RPM – the very same version on both systems (python3-libxml2-2.10.3-2). Then I have a small file:
# gunzip -c a.tmp
<a><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/><b/></a>
When I load it on Fedora 37, it works:
# python3
Python 3.11.1 (main, Dec 7 2022, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxml2
>>> libxml2.parseFile("a.tmp")
<xmlDoc (a.tmp) object at 0x3ff9ec69f90>
>>>
But if I do the same on rawhide, it fails:
# python3
Python 3.11.1 (main, Dec 7 2022, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxml2
>>> libxml2.parseFile("a.tmp")
a.tmp: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
I found this problem when I tried to rebuild python-lxml package because the build failed only on s390x. lxml uses libxml2 under the hood so the debugging brought me here.
Where I can take a look to see the difference between those two systems causing this? I've tried to compare lists of installed packages but there is nothing really suspicious (Fedora 37 is still kinda fresh so there are no that many big differences).