Re: [xml] exception/segfault on xmlFreeDoc()
- From: Daniel Veillard <veillard redhat com>
- To: oliverst online de
- Cc: xml gnome org
- Subject: Re: [xml] exception/segfault on xmlFreeDoc()
- Date: Wed, 10 Mar 2004 13:07:29 -0500
On Wed, Mar 10, 2004 at 06:54:02PM +0100, oliverst online de wrote:
When I run test_LoadDocument() I get a exception/segfault in the
xmlFreeDoc() after the successful LoadDocument.
With MSVC++ and libxml2-2.6.5 it crashes in dict.c line 709, because
dict has already been free'd.
The libxml2 has been linked statically and was compiled with teh
following configuration and defines:
cscript configure.js xml_debug=no debug=no static=yes iconv=no
schemas=no regexps=no docb=no threads=native ftp=no http=no reader=no
walker=no legacy=no xpath=yes xptr=no catalog=no xinclude=no c14n=no
cruntime=/MT
LIBXML_STATIC / LIBXML_STATIC_FOR_DLL / _REENTRANT / HAVE_WIN32_THREADS
And trying an older version (I don't have the version number handy) in
MinGW also crashes. The crash does happen in valid.c line 2856
(xmlGetDtdAttrDesc() -> if (dtd->attributes == NULL) return(NULL);)
because dtd has already been free'd.
I looked all over it and couldn't see the problem at all. It all looked
fine to me. I unlinked the nodes properly.
If you start moving subtrees from different document, use the
new xmlReadxxx() function and pass it the XML_PARSE_NODICT option.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]