Re: [libxml++] external entities substitution - libxml++ crashes



Hi Igor,

Igor L. Smolovski wrote:

[...]

I then added this very function to DomParser as a method DomParser::parse_file_test() and rebuilt libxml++.
I then called this method from a small program which used libxml++ and it crashed:

#0  0x00000019 in ?? ()
#1  0x0806a320 in xmlFreeNodeList (cur=0x82311a0) at tree.c:3282
#2  0x0804f1a6 in xmlFreeEntity (entity=0x821ffe8) at entities.c:72
#3  0x0806dff0 in xmlHashFree (table=0x821e7d0, f=0x804fb2c <xmlFreeEntityWrapper>) at hash.c:284
#4  0x0804fb53 in xmlFreeEntitiesTable (table=0x821e7d0) at entities.c:690
#5  0x08067f1c in xmlFreeDtd (cur=0x821e6e0) at tree.c:1023
#6  0x080680d4 in xmlFreeDoc (cur=0x821e570) at tree.c:1114
#7  0x08049bae in parse_file_test(std::string const&) (filename= 0xbffff7a0) at domparser.cc:277
#8  0x08048577 in main (argc=1, argv=0xbffff824) at main.cc:84
#9  0x081202e6 in __libc_start_main ()

Went into xmlFreeDoc never to return...
Could you post the smallest program possible that reproduce the problem (possibly the one mentionned above) ? This would save much time for understanding what's going wrong.

Regards,

Christophe




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