[Mono-bugs] [Bug 467230] New: MethodInfo.MakeGenericMethod() crashes when a custom type is passed in.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 19 00:16:48 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=467230


           Summary: MethodInfo.MakeGenericMethod() crashes when a custom
                    type is passed in.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jeroen at sumatra.nl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=265919)
 --> (https://bugzilla.novell.com/attachment.cgi?id=265919)
C# repro

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64;
Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322;
NET CLR 3.5.21022; WWTClient2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)

When trying to create a generic method using custom (i.e. non-runtime) Type
instances, the method crashes instead returning the right MethodInfo object.

Reproducible: Always

Steps to Reproduce:
Run attached repro.
Actual Results:  
Stacktrace:

  at (wrapper managed-to-native)
System.Reflection.MonoMethod.MakeGenericMethod_impl (System.Type[]) <0x00004>
  at (wrapper managed-to-native)
System.Reflection.MonoMethod.MakeGenericMethod_impl (System.Type[])
<0xffffffff>
  at System.Reflection.MonoMethod.MakeGenericMethod (System.Type[]) <0x0004a>
  at MonoMakeGenericMethodBug.Program.Main (string[]) <0x00081>
  at (wrapper runtime-invoke)
MonoMakeGenericMethodBug.Program.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


Expected Results:  
n/a

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list