Re: [xml] XML Schema crash in W3C test suite

Daniel Veillard wrote:
On Thu, Feb 28, 2008 at 06:06:49PM +0100, Stefan Behnel wrote:
Daniel Veillard wrote:
On Thu, Feb 28, 2008 at 10:35:20AM +0100, Stefan Behnel wrote:
For the following test, however, I get a crash:


Valgrind gives me this:

==15628== Invalid free() / delete / delete[]
==15628==    at 0x402237F: free (vg_replace_malloc.c:233)
==15628==    by 0x4187985: xmlSchemaFreeValue
==15628==    by 0x416A6CC: xmlSchemaFreeFacet (xmlschemas.c:3927)
==15628==    by 0x416A742: xmlSchemaFreeType (xmlschemas.c:3954)
==15628==    by 0x416A9A9: xmlSchemaComponentListFree
==15628==    by 0x416AAAA: xmlSchemaBucketFree (xmlschemas.c:3504)
==15628==    by 0x410D7E8: xmlHashFree (hash.c:307)
==15628==    by 0x416AC49: xmlSchemaFree (xmlschemas.c:4119)
==15628==    by 0x804F853: main (xmllint.c:3534)
==15628==  Address 0x4389800 is 0 bytes inside a block of size 4
==15628==    at 0x402237F: free (vg_replace_malloc.c:233)
==15628==    by 0x4174BF8: xmlSchemaValidateNotation
==15628==    by 0x417634B: xmlSchemaVCheckCVCSimpleType
==15628==    by 0x417D606: xmlSchemaCheckFacet (xmlschemas.c:18599)
==15628==    by 0x417DC88: xmlSchemaFixupSimpleTypeStageTwo
==15628==    by 0x4183E33: xmlSchemaFixupComponents
==15628==    by 0x418694E: xmlSchemaParse (xmlschemas.c:21263)
==15628==    by 0x804F457: main (xmllint.c:3384)

  Can you provide the .xml and .xsd leading to the crash ?

Sure. The W3C test suite is here:

I attached the two test files.

  I wanted to look at it yesterday in the train, alas the test were not
standalone and depending on another file not included in the mail, so i
not debug it, i hope i will find some time at some point later. Still
is a good reason i ask people to try to provide and send standalone test
cases in the

Sure, sorry. I didn't write the test myself, and since I was running a
couple of tests in a row, I didn't look any deeper into the single tests.

Here's the missing file.


Attachment: targetNS00101m1.xsd
Description: Binary data

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