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 636420 - Apparent bug in xpath handling of namespace declarations
Apparent bug in xpath handling of namespace declarations
Status: RESOLVED DUPLICATE of bug 705413
Product: libxml2
Classification: Platform
Component: general
2.7.6
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2010-12-04 01:20 UTC by bwohlberg
Modified: 2014-03-08 00:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bug demo code (1.29 KB, text/x-csrc)
2010-12-04 01:20 UTC, bwohlberg
Details

Description bwohlberg 2010-12-04 01:20:18 UTC
Created attachment 175815 [details]
Bug demo code

Many of the pointer fields of nodes of type XML_NAMESPACE_DECL in a nodeset returned by evaluation of an XPath expression such as "//namespace::*" appear to be corrupted. The attached example code illustrates the problem; xmlNodeDump works as expected for a nodeset derived from XPath "//*", but segfaults with "//namespace::*".

Furthermore, such nodesets appear to contain two occurrences of each actual namespace declaration on the document (each of which has a different "doc" pointer, neither of which match the actual parent doc address).

If this is not a bug, an explanation of correct usage should be added to the documentation, since the observed behaviour is so unexpected.
Comment 1 Nick Wellnhofer 2014-03-08 00:10:52 UTC

*** This bug has been marked as a duplicate of bug 705413 ***