Bug 318279 (MONO75278) - [GMCS] Generic methods contain invalid context when JIT emits method call in them
Summary: [GMCS] Generic methods contain invalid context when JIT emits method call in ...
Status: RESOLVED FIXED
Alias: MONO75278
Product: Mono: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 1.0
Hardware: Other Other
: P3 - Medium : Blocker
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 23:05 UTC by Kamil Skalski
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:21:31 UTC


---- Reported by nazgul@omega.pl 2005-06-15 16:05:53 MST ----

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...



---- Additional Comments From martin@ximian.com 2005-06-15 16:16:29 MST ----

Set Priority back to Blocker, why was this Wishlist ???



---- Additional Comments From martin@ximian.com 2005-06-17 09:54:38 MST ----

Fixed in SVN; added gtest-168-lib.cs and gtest-168.cs.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>mono svn 15.06.2005</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".