GNOME Bugzilla – Bug 634675
libxml2 python binding: segfault on xpathEval(None)
Last modified: 2021-07-05 13:22:52 UTC
Executing the following Python script causes a segmentation fault: import libxml2 doc = libxml2.parseDoc("<example />") context = doc.xpathNewContext() nodelist = context.xpathEval(None) I guess it should rather throw some exception. I'm not sure if the problem is in libxml2's xpath-component itself or the Python-binding. Tested in Debian Squeeze using these packages: python2.6 (2.6.6-6) python-libxml2 (2.7.7.dfsg-4) libxml2 (2.7.7.dfsg-4) linux-image-2.6.32-5-amd64 (2.6.32-27)
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.