[Mono-bugs] [Bug 591788] New: ERROR:class.c:5420:mono_class_from_mono_type: code should not be reached

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 29 04:33:28 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=591788

http://bugzilla.novell.com/show_bug.cgi?id=591788#c0


           Summary: ERROR:class.c:5420:mono_class_from_mono_type: code
                    should not be reached
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.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("bug-sre-test.exe");

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

        Type[] constructorArgs = { tb };
        ConstructorBuilder mb = tb.DefineConstructor(MethodAttributes.Public, 
                      CallingConventions.Standard, constructorArgs);

        il_gen = mb.GetILGenerator ();

        il_gen.Emit (OpCodes.Ret);

        new CustomAttributeBuilder (mb, new object [] { 200000 });
    }
}



WARNING **: mono_class_from_mono_type: implement me 0x00

**
ERROR:class.c:5420:mono_class_from_mono_type: code should not be reached
Stacktrace:

  at (wrapper managed-to-native)
System.Reflection.Emit.CustomAttributeBuilder.GetBlob
(System.Reflection.Assembly,System.Reflection.ConstructorInfo,object[],System.Reflection.PropertyInfo[],object[],System.Reflection.FieldInfo[],object[])
<0x00004>
  at (wrapper managed-to-native)
System.Reflection.Emit.CustomAttributeBuilder.GetBlob
(System.Reflection.Assembly,System.Reflection.ConstructorInfo,object[],System.Reflection.PropertyInfo[],object[],System.Reflection.FieldInfo[],object[])
<0x00004>
  at System.Reflection.Emit.CustomAttributeBuilder.Initialize
(System.Reflection.ConstructorInfo,object[],System.Reflection.PropertyInfo[],object[],System.Reflection.FieldInfo[],object[])
<0x00621>
  at System.Reflection.Emit.CustomAttributeBuilder..ctor
(System.Reflection.ConstructorInfo,object[]) <0x0007c>
  at C.Main () <0x00181>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x0003a>

Native stacktrace:

    mono [0x80d7da4]
    [0x481410]
    /lib/tls/i686/cmov/libc.so.6(abort+0x182) [0xbbf932]
    /lib/libglib-2.0.so.0(g_assertion_message+0x13c) [0x1b8dec]
    mono(mono_class_from_mono_type+0x62) [0x81249a2]
    mono [0x81940c1]
    mono [0x819b7d6]
    mono(mono_reflection_get_custom_attrs_blob+0x13f) [0x819beaf]
    [0xcf7d6f]
    [0xcf6efa]
    [0xcf68c5]
    [0x2ae15a]
    [0x2adf0b]
    mono [0x8063e31]
    mono(mono_runtime_invoke+0x40) [0x813e8d0]
    mono(mono_runtime_exec_main+0xd6) [0x8141f26]
    mono(mono_runtime_run_main+0x112) [0x8145962]
    mono(mono_main+0x1949) [0x80b6559]
    mono [0x805b615]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xba8b56]
    mono [0x805b551]

-- 
Configure bugmail: http://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