Details
Description
I used the XML Schema Validation Example as a start point to experiment parsing XSD file. I got up to the point where I can parse more complex XSD set of files such as those provided by the SPIRIT consortium along with the IP-XACT-1.4 specification. The index.xsd file, which contains includes of several other files, has documentation annotations. When parsing this file I get a segmentation fault. Stepping through the XSD parsing sequence I found out that the segmentation fault is due to the fact that the object to which the annotation is added is not properly allocated (qxsdannotated.cpp line 50 - this = 0xC). It seems there is a bug with the initialization of some objects.
I joined the complete example I run. The segmentation fault happens when clicking the "Validate" button.