[Mono-bugs] [Bug 42235][Wis] New - Crash when ahead-of-time compiling System.dll

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 1 May 2003 18:35:39 -0400 (EDT)


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 ramon_garcia_f@terra.es.

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

--- shadow/42235	Thu May  1 18:35:39 2003
+++ shadow/42235.tmp.25783	Thu May  1 18:35:39 2003
@@ -0,0 +1,43 @@
+Bug#: 42235
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ramon_garcia_f@terra.es               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Crash when ahead-of-time compiling System.dll
+
+Running mono --aot /usr/local/lib/System.dll produces a crash:
+Mono AOT compiler - compiling assembly /usr/local/lib/System.dll
+ 
+** ERROR **: file aot.c: line 291 (cond_emit_klass_label): assertion
+failed: (klass->type_token)
+aborting...
+
+The problem is related to the use of int[][] int
+System.Text.RegularExpression.Interpreter:GenerateMatch.
+
+The following small test case can be used to reproduce the problem:
+
+---------test.cs------------
+class test {
+        public void mymethod() {
+                int[][] grps = new int[2][];
+        }
+};
+
+----------------------------
+
+mcs /target:library test.cs
+mono --aot test.dll => crash
+
+The problem is not solved by replacing mcs with Microsoft.NET C# compiler.