LXML dependency needs to be updated to fix segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
crmsh (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
lxml (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
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/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
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:/
Thank you for the bug report. I created a PPA containing the relevant changes in 4.9.1 that may fix this issue here: https:/ /launchpad. net/~lvoytek/ +archive/ ubuntu/ lxml-fix- iterwalk- crash
If you would like to test the fix you can run the following:
$ sudo add-apt-repository ppa:lvoytek/ lxml-fix- iterwalk- crash
$ sudo apt update
$ sudo apt upgrade
If this works for you please let us know, thanks!