After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 634675 - libxml2 python binding: segfault on xpathEval(None)
libxml2 python binding: segfault on xpathEval(None)
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: python
2.7.7
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-12 11:45 UTC by Stefan Schramm
Modified: 2021-07-05 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Schramm 2010-11-12 11:45:39 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)
Comment 1 GNOME Infrastructure Team 2021-07-05 13:22:52 UTC
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.