Re: [xml] libxml2-2.6.26: xmlXPathCacheNewString(): Bus error (coredumped)
- From: Guang Yang <yg_cn yahoo com>
- To: Guang Yang <yg_cn yahoo com>, "Buchcik, Kasimier" <k buchcik 4commerce de>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2-2.6.26: xmlXPathCacheNewString(): Bus error (coredumped)
- Date: Wed, 12 Jul 2006 14:22:39 -0700 (PDT)
Additional info: it seems if quotes (single or double) appear between brackets [] in an attribute of a tag, segmentation fault or bus error will happen.
e.g. <xsl:template match='h:meta/@http-equiv[.!="refresh"]'/>
or <xsl:template match="*[ class='myclass']"></xsl:template>
-Guang
Guang Yang <yg_cn yahoo com> wrote:
Thanks Kasimier, here is the simple stylesheet:
<xsl:transform xsl:version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:h ='http://www.w3.org/1999/xhtml' exclude-result-prefixes='h'>
<xsl:template match='h:meta/@http-equiv[.!="refresh"]'/>
</xsl:transform>
It seems the <xsl:template> line is causing the trouble, somewhere near the double quotes.
Regards,
-Guang
"Buchcik, Kasimier" <k buchcik 4commerce de> wrote: Hi,
Please provide the XSLT stylesheet in order to have this debugged.
Regards,
Kasimier
> -----Original Message-----
> From: xml-bounces gnome org [mailto:xml-bounces gnome org] On
> Behalf Of Guang Yang
> Hi all,
>
> I am having a problem with the latest libxml2-2.6.26. Here is
> the simple .cc file that incurs the bus error, where the file
> "test.xsl" contains an xsl stylesheet.
>
> #include
> void main () {
> xmlDocPtr xmldoc = xmlParseFile("test.xsl");
> xsltParseStylesheetDoc(xmldoc);
> }
>
> It compiles (in FreeBSD 4.11) successfully with both
> libxml2-2.6.22 and libxml2-2.6.26 (libxslt is always 1.1.14).
>
It runs with libxml2-2.6.22. However, with libxml2-2.6.26 it
> crashes. The problem seems to be in the new function
> xmlXPathCacheNewString() in libxml2-2.6.26.
>
> Stack trace:
> (gdb) bt
> #0 0x2108a295 in xmlXPathCacheNewString () from
> /usr/local/lib/libxml2.so.5
> #1 0x21093f06 in xmlXPathCompLiteral () from
> /usr/local/lib/libxml2.so.5
> #2 0x21094388 in xmlXPathCompPrimaryExpr ()
> from /usr/local/lib/libxml2.so.5
[...]
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta._______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
Want to be your own boss? Learn how on
Yahoo! Small Business.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]