[Mono-bugs] [Bug 77580][Maj] Changed - [GMCS] Segmentation fault when loading generic program

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Mar 7 11:33:23 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=77580

--- shadow/77580	2006-03-07 11:21:22.000000000 -0500
+++ shadow/77580.tmp.13921	2006-03-07 11:33:22.000000000 -0500
@@ -84,6 +84,33 @@
 instead of the planned Linux server if it's not fixed by the time we
 have to deliver the system (which is in about 2 weeks).
 
 Best regards,
 
 Patrick Aussems, DTI sa
+
+------- Additional Comments From atsushi at ximian.com  2006-03-07 11:33 -------
+simplified testcase (less generics):
+
+public class BaseList<SubType>
+{
+        // without this field instantiation everything works fine.
+        object obj = new object ();
+}
+
+public class XXX : BaseList<object>
+{
+}
+
+public class Crash
+{
+        public static void Main()
+        {
+                // After creating an array, instantiation got broken.
+                XXX [] arr = new XXX [0];
+                // this array creation is OK
+                // BaseList<object> [] arr = new BaseList<object> [0];
+
+                new BaseList<object> (); // even this causes SISSEGV
+        }
+}
+


More information about the mono-bugs mailing list