Bug 320159 (MONO77368) - [GMCS] ves_icall_MonoType_get_DeclaringMethod abort during compilation
Summary: [GMCS] ves_icall_MonoType_get_DeclaringMethod abort during compilation
Status: RESOLVED FIXED
Alias: MONO77368
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 18:35 UTC by horst.reiterer
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:46:14 UTC


---- Reported by horst.reiterer@mind-breeze.com 2006-01-26 11:35:17 MST ----

The following testcase fails to compile with Mono 1.1.13's gmcs, the
runtime aborts.
MethodClass defines a method 'Get' with an out parameter.
GenericMethodClass provides a similar method, it is generic however.
Invoking 'Get' on an instance of GenericMethodClass (FAILURE must be
defined) causes the runtime to abort. If the target method is not generic,
compilation succeeds. Compiling the same testcase with Microsoft's csc
succeeds aswell.

using System;

public class TestClass
{
}

public class MethodClass
{
  public void Get(out TestClass test)
  {
    test = new TestClass();
  }
};

public class GenericMethodClass
{
  public void Get<T>(out T test) where T : new()
  {
    test = new T();
  }
};

public class Test
{
  public static void Main(string[] args)
  {
    TestClass unassigned;

#if FAILURE
    GenericMethodClass cl = new GenericMethodClass();
#else
    MethodClass cl = new MethodClass();
#endif

    cl.Get(out unassigned);
  }
};

Steps to reproduce the problem:
1. gmcs -define:FAILURE testcase.cs

Actual Results:

** ERROR **: file icall.c: line 2394
(ves_icall_MonoType_get_DeclaringMethod): assertion failed: (method)
aborting...
Aborted

Expected Results:

Successful compilation

How often does this happen? 

100 out of 100 times



---- Additional Comments From vargaz@gmail.com 2006-01-26 12:10:39 MST ----

-> mcs



---- Additional Comments From rharinath@novell.com 2006-01-29 14:50:56 MST ----

Should be fixed in SVN r56228.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Red Hat Enterprise Linux 4</cf_op_sys_details>
Unknown bug field "cf_version_details" encountered while moving bug
   <cf_version_details>1.1.13</cf_version_details>
Unknown operating system other. Setting to default OS "Other".