Bug 318704 (MONO75773) - [GMCS] runtime fails on a specific chain of generic method calls
Summary: [GMCS] runtime fails on a specific chain of generic method calls
Status: RESOLVED FIXED
Alias: MONO75773
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.0
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 21:13 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:27:10 UTC


---- Reported by nazgul@omega.pl 2005-08-10 14:13:32 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
I got an assertion from runtime on specific pattern of generic methods
calls. It is occuring also in Nemerle generated code, so it seems to be a
runtime bug.

Steps to reproduce the problem:
1. Compile and run

public class Map <b>
{
     b x;

    public a Fold1 <a> (a ini)
    {
      return ini;
    } 

    public c Fold<c> (c ini)
    {
       Fold1 <b> (x);
       return   ini;
    }
}


public class LocalContext
{
    Map <string> locals = new Map <string> ();

    public a Fold <a> (a acc)
    {
      return locals.Fold (acc);
    }
}

class M {
  static void Main () {
     LocalContext x = new LocalContext ();
     x.Fold ("a" );
  }
}

Actual Results:
** ERROR **: file metadata.c: line 1827
(mono_metadata_parse_generic_param): assertion failed: (generic_container
&& !generic_container->is_method)
aborting...


Expected Results:
clear run

How often does this happen? 
Always

Additional Information:
This pattern occurs only once in our codebase, so we can easily create an
workaround. But it would be nice to have it fixed :-)



---- Additional Comments From miguel@ximian.com 2005-08-23 13:37:09 MST ----

Martin, this is very similar to the monodis issue, can you look at it?



---- Additional Comments From martin@ximian.com 2005-09-27 14:24:15 MST ----

Fixed in SVN; added gtest-204.cs.


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