[Mono-bugs] [Bug 594464] New: SIGSEGV in ToObject

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 7 12:24:55 EDT 2010



           Summary: SIGSEGV in ToObject
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: rkumpera at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Compile & Run

using System;
using System.Threading;
using System.Reflection;
using System.Reflection.Emit;

class C
    public static void Main ()
        TypeBuilder tb;
        ILGenerator il_gen;

        AssemblyName assemblyName = new AssemblyName ();
        assemblyName.Name = "MonoTests.System.Reflection.Emit.ILGeneratorTest";

        AssemblyBuilder assembly = Thread.GetDomain ().DefineDynamicAssembly (
            assemblyName, AssemblyBuilderAccess.RunAndSave);

        ModuleBuilder module = assembly.DefineDynamicModule

        tb = module.DefineType ("T", TypeAttributes.Public);
        tb.SetParent (typeof (Enum));

        Enum.ToObject (tb, 1);

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

More information about the mono-bugs mailing list