[Mono-bugs] [Bug 77287][Nor] Changed - xsd hangs when generating classes for schema

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 17 01:48:01 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=77287

--- shadow/77287	2006-01-17 01:38:09.000000000 -0500
+++ shadow/77287.tmp.18603	2006-01-17 01:48:00.000000000 -0500
@@ -45,6 +45,37 @@
         </xsd:complexType>
       </xsd:element>
     </xsd:choice>
   </xsd:group>
 
 </xsd:schema>
+
+------- Additional Comments From atsushi at ximian.com  2006-01-17 01:48 -------
+repro code:
+
+using System;
+using System.Xml;
+using System.Xml.Schema;
+using System.Xml.Serialization;
+
+public class Test
+{
+        public static void Main (string [] args)
+        {
+                XmlSchema s = XmlSchema.Read (new XmlTextReader (args
+[0]), null);
+                XmlSchemas ss = new XmlSchemas ();
+                ss.Add (s);
+                XmlSchemaImporter imp = new XmlSchemaImporter (ss);
+                imp.ImportTypeMapping (new XmlQualifiedName ("list"));
+        }
+}
+
+I found some suspicious lines in the stack trace (with
+--trace=N:System.Xml.Serialization):
+
+. . . ENTER: System.Xml.Serialization.TypeData:get_TypeName
+()(this:017D5188[System.Xml.Serialization.TypeData 77287.exe], )
+. . . LEAVE: System.Xml.Serialization.TypeData:get_TypeName
+()[STRING:017D3690:listOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOpOp]
+
+So, it looks like some weird loop occurs in XmlSchemaImporter.


More information about the mono-bugs mailing list