Re: [xml] libxml2-2.6.26: xmlXPathCacheNewString(): Bus error (coredumped)



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 <libxslt/transform.h>
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

[...]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]