Seeing out of memory errors after libexpat1 upgrade to 2.2.5-3ubuntu0.4 (bionic) or 2.2.9-1ubuntu0.2 (focal)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
expat (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned | ||
python-xmltodict (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
Kinetic |
Invalid
|
Undecided
|
Unassigned | ||
Lunar |
Invalid
|
Undecided
|
Unassigned |
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.
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://
500 http://
100 /var/lib/
2.2.5-3 500
500 http://
I was able to workaround the issue by downgrading to the release version of the package:
$ sudo apt-get install libexpat1=2.2.5-3 libexpat1- dev=2.2. 5-3