Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10805

Segmentation fault on annotation when parsing XSD files with QXMLSchema

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.0
    • 4.6.2
    • XML: QtXmlPatterns
    • None

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            marc.gandillon@abilis.com Marc Gandillon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes