[Bug 2017853] Re: LXML dependency needs to be updated to fix segmentation fault
Paride Legovini
2017853 at bugs.launchpad.net
Fri May 5 10:31:03 UTC 2023
Hello Dennis, thanks for testing the PPA. The patch Lena identified was
really promising: by looking at the commit messages I can't identify a
better candidate between 4.9.0 and 4.9.2:
https://github.com/lxml/lxml/compare/lxml-4.9.0...lxml-4.9.2
Could you please double check you actually have the PPA version
installed, e.g. by doing
dpkg -l | grep lxml
and checking that the installed lxml packages have ~ppa1 in their
version string? Also: please make sure that while testing the PPA
packages installed from pip are not interfering.
If everything looks good, could you please try installing version 4.9.1
from pip? This way we'll be able to tell which version contains the fix.
You can install a specific version from pip with e.g.:
pip3 install lxml==4.0.1
Thanks!
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lxml in Ubuntu.
https://bugs.launchpad.net/bugs/2017853
Title:
LXML dependency needs to be updated to fix segmentation fault
Status in crmsh package in Ubuntu:
Incomplete
Status in lxml package in Ubuntu:
Incomplete
Bug description:
After upgrading our pacemaker/corosync cluster to Ubuntu 22.04 we had
segmentation faults when running "crm configure". Using faulthandler
to generate a python stacktrace yielded:
Fatal Python error: Segmentation fault
Current thread 0x00007efe7677a1c0 (most recent call first):
File "/usr/lib/python3/dist-packages/crmsh/cibconfig.py", line 58 in show_unrecognized_elems
File "/usr/lib/python3/dist-packages/crmsh/cibconfig.py", line 2779 in initialize
File "/usr/lib/python3/dist-packages/crmsh/ui_configure.py", line 492 in requires
File "/usr/lib/python3/dist-packages/crmsh/ui_context.py", line 265 in enter_level
File "/usr/lib/python3/dist-packages/crmsh/ui_context.py", line 84 in run
File "/usr/lib/python3/dist-packages/crmsh/main.py", line 196 in handle_noninteractive_use
File "/usr/lib/python3/dist-packages/crmsh/main.py", line 249 in main_input_loop
File "/usr/lib/python3/dist-packages/crmsh/main.py", line 370 in run
File "/usr/sbin/crm", line 46 in <module>
Extension modules: lxml._elementpath, lxml.etree (total: 2)
Segmentation fault
At that point, the code was using the findall method of lxml._Element
to search through our (valid) cib configuration.
Using pip3 install --upgrade lxml to update lxml to version 4.9.2
solved this problem.
I'm not really sure what specific bug was fixed, but I assume that it
was this one in 4.9.1: https://lxml.de/4.9/changes-4.9.1.html
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/crmsh/+bug/2017853/+subscriptions
More information about the foundations-bugs
mailing list