[Mono-bugs] [Bug 650117] New: xsd.exe hangs on valid circular groups schema

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 29 01:16:32 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=650117

https://bugzilla.novell.com/show_bug.cgi?id=650117#c0


           Summary: xsd.exe hangs on valid circular groups schema
    Classification: Mono
           Product: Mono: Tools
           Version: 2.8.x
          Platform: Other
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: zapodlo at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development
           Blocker: Yes


Running xsd.exe with the following schema hangs indefinitely, showily growing
in memory consumption (leak?)

I ran it on Windows 7 x64, with this command (with all the proper paths to
avoid accidentally calling windows versions)

mono xsd.exe circularGroups.xsd /c


<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.fixprotocol.org/ns/fast/t/1.0"
xmlns:t="http://www.fixprotocol.org/ns/fast/t/1.0">

  <xs:element name="elem1">
    <xs:complexType>
      <xs:group ref="t:grp1" />
    </xs:complexType>
  </xs:element>

  <xs:group name="grp1">
    <xs:sequence>
      <xs:group ref="t:grp2" />
    </xs:sequence>
  </xs:group>

  <xs:group name="grp2">
    <xs:sequence>
      <xs:element minOccurs="0" name="elem2">
        <xs:complexType>
          <xs:group ref="t:grp1" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:group>

</xs:schema>

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list