[Mono-bugs] [Bug 75278][Wis] New - [GMCS] Generic methods contain invalid context when JIT emits method call in them

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 15 16:05:54 EDT 2005


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 nazgul at omega.pl.

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

--- shadow/75278	2005-06-15 16:05:54.000000000 -0400
+++ shadow/75278.tmp.19908	2005-06-15 16:05:54.000000000 -0400
@@ -0,0 +1,62 @@
+Bug#: 75278
+Product: Mono: Runtime
+Version: 1.0
+OS: 
+OS Details: mono svn 15.06.2005
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: JIT
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: nazgul at omega.pl               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] Generic methods contain invalid context when JIT emits method call in them
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Mono runtime crashes when JITing (?) generic method
+
+Steps to reproduce the problem:
+1. compile tlib.cs with gmcs
+public class lis <a> {}
+
+public class M {
+
+  public static lis <a> Rev <a> (lis <a> x) { return x; }
+  
+      public static lis <b> MapFromArray<a, b> (a[] x) 
+    {
+      return M.Rev (new lis <b>());
+    }
+}
+
+
+2. compile t.cs  with  gmcs t.cs -r:tlib.dll
+
+class A {
+  static void Main () {
+    M.MapFromArray <int, string> (new int[] { });
+  }
+}
+
+
+3. run mono t.exe 
+
+Actual Results:
+** ERROR **: file metadata.c: line 1813
+(mono_metadata_parse_generic_param): assertion failed: (index <
+generic_container->type_argc)
+
+Expected Results:
+clear run
+
+How often does this happen? 
+Always
+
+Additional Information:
+this is the current blocker for nemerle bootstrap...


More information about the mono-bugs mailing list