[Mono-bugs] [Bug 643372] New: Long dynamic method name causes an assertion failure

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 3 00:08:21 EDT 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=643372#c0


           Summary: Long dynamic method name causes an assertion failure
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tomas.matousek at microsoft.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1;
Trident/5.0)

The following code crashes:


using System;
using System.Text;
using System.Reflection;
using System.Reflection.Emit;

public class C {
    public static void Main() {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i <= Char.MaxValue; i++) {
            sb.Append((char)i);
        }

        DynamicMethod dm = new DynamicMethod(sb.ToString(), typeof(void),
Type.EmptyTypes);
        dm.GetILGenerator().Emit(OpCodes.Ret);
        dm.CreateDelegate(typeof(Action));
    }
}

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Actual Results:  
* Assertion at reflection.c:10112, condition `mono_error_ok (&error)' not met



Expected Results:  
no error

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