AW: Re: [xml] xmllint problems




On Tue, 2005-10-18 at 13:16 +0200, oliverst online de wrote:
When I run xmllint with "--valid" or "--postvalid" it does crash when using
the XML output of MAME as input (http://www.breaken.de/temp/output.xml).

Cannot reproduce the crash on my Debian (sarge) box:

kbu librax:/data/home/kbuchcik/temp$ xmllint --valid output.xml
output.xml:143: element driver: validity error : No declaration for
attribute savestate of element driver
color="good" sound="good" graphic="good" savestate="supported"
palettesize="32"
[... some hundreds of validation errors...]
</game>
</mame>

This is happening because of a missing DTD entry. Add this to the DTD before the "palettesize" entry and 
those warnings should go away.

<!ATTLIST driver savestate (supported|unsupported) #REQUIRED>

I just compiled a debug version and here is the backtrace:

Starting program: C:\libxml2-2.6.22\win32\bin.mingw/xmllint.exe --valid C:/Dev-C
pp/Projects/libxml_test/output_orig.xml

Program received signal SIGSEGV, Segmentation fault.
0x1005844f in xmlValidateElementType (ctxt=0x3f45e4) at ../valid.c:4712
4712 if ((CONT != NULL) &&
(gdb) bt
#0 0x1005844f in xmlValidateElementType (ctxt=0x3f45e4) at ../valid.c:4712
#1 0x10059228 in xmlValidateElementContent (ctxt=0x3f45e4, child=0x548750,
elemDecl=0x540480, warn=1, parent=0x5485a0) at ../valid.c:5248
#2 0x1005a437 in xmlValidateOneElement (ctxt=0x3f45e4, doc=0x3f8b20,
elem=0x5485a0) at ../valid.c:6052
#3 0x1003cf09 in xmlSAX2EndElementNs (ctx=0x3f4578,
localname=0x3f86fa "dipswitch", prefix=0x0, URI=0x0) at ../SAX2.c:2311
#4 0x1002e7d4 in xmlParseEndTag2 (ctxt=0x3f4578, prefix=0x0, URI=0x0,
line=100, nsNr=0, tlen=9) at ../parser.c:8203
#5 0x1002f71c in xmlParseElement (ctxt=0x3f4578) at ../parser.c:8538
#6 0x1002f07b in xmlParseContent (ctxt=0x3f4578) at ../parser.c:8357
#7 0x1002f60c in xmlParseElement (ctxt=0x3f4578) at ../parser.c:8517
#8 0x1002f07b in xmlParseContent (ctxt=0x3f4578) at ../parser.c:8357
#9 0x1002f60c in xmlParseElement (ctxt=0x3f4578) at ../parser.c:8517
#10 0x100312ba in xmlParseDocument (ctxt=0x3f4578) at ../parser.c:9118
#11 0x10035178 in xmlDoRead (ctxt=0x3f4578, URL=0x0, encoding=0x0,
options=65552, reuse=1) at ../parser.c:13090
#12 0x10035605 in xmlCtxtReadFile (ctxt=0x3f4578,
filename=0x3f3e71 "C:/Dev-Cpp/Projects/libxml_test/output_orig.xml",
encoding=0x0, options=65552) at ../parser.c:13325
#13 0x004031ce in parseAndPrintFile (
filename=0x3f3e71 "C:/Dev-Cpp/Projects/libxml_test/output_orig.xml",
rectxt=0x0) at ../xmllint.c:2209
#14 0x00405c06 in main (argc=3, argv=0x3f3f38) at ../xmllint.c:3438



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