[Bug 1961800] Re: Seeing out of memory errors after upgrade to 2.2.5-3ubuntu0.4
Francis Ginther
1961800 at bugs.launchpad.net
Tue Feb 22 15:52:51 UTC 2022
Attached is an example config file and python script which demonstrates
the parsing error. This was reproduced on focal with:
$ apt-cache policy libexpat1
libexpat1:
Installed: 2.2.9-1ubuntu0.2
Candidate: 2.2.9-1ubuntu0.2
Version table:
*** 2.2.9-1ubuntu0.2 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
100 /var/lib/dpkg/status
2.2.9-1build1 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
This example worked with 2.2.9-1build1 but not 2.2.9-1ubuntu0.2.
To run the example:
$ ./parser_example.py ./sample-config.xml
The sample-config.xml was generated by jenkins (version 2.303.2) of a freestyle project with only the job name and description set.
** Attachment added: "sample-config-and-parser.tgz"
https://bugs.launchpad.net/ubuntu/+source/expat/+bug/1961800/+attachment/5562745/+files/sample-config-and-parser.tgz
** Summary changed:
- Seeing out of memory errors after upgrade to 2.2.5-3ubuntu0.4
+ Seeing out of memory errors after upgrade to 2.2.5-3ubuntu0.4 (bionic) or 2.2.9-1ubuntu0.2 (focal)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to expat in Ubuntu.
https://bugs.launchpad.net/bugs/1961800
Title:
Seeing out of memory errors after upgrade to 2.2.5-3ubuntu0.4 (bionic)
or 2.2.9-1ubuntu0.2 (focal)
Status in expat package in Ubuntu:
New
Bug description:
I started seeing errors parsing XML files today (Feb 22, 2022) after
my system was updated to 2.2.5-3ubuntu0.4. This is on a bionic server.
The parsing is being done by python3's xmltodict module, which uses
python3 expat as the actual parser. This is the error it raises:
xml.parsers.expat.ExpatError: out of memory: line 1, column 0
So far this is happening on multiple xml files, although they all come
from the same source (these are jenkins config.xml files). I'm working
on coming up with a minimal test case which I'll provide once I have
it cleaned up of any private data.
[System info]
$ lsb_release -rd
Description: Ubuntu 18.04.6 LTS
Release: 18.04
$ apt-cache policy libexpat1
libexpat1:
Installed: 2.2.5-3ubuntu0.4
Candidate: 2.2.5-3ubuntu0.4
Version table:
*** 2.2.5-3ubuntu0.4 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
100 /var/lib/dpkg/status
2.2.5-3 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/expat/+bug/1961800/+subscriptions
More information about the foundations-bugs
mailing list