[Mono-bugs] [Bug 574353] New: SRE: ** ERROR **: unhandled type in custom attr

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 27 10:02:03 EST 2010


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

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


           Summary: SRE: ** ERROR **: unhandled type in custom attr
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: rkumpera at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


using System;

using System.Threading;

using System.Reflection;

using System.Reflection.Emit;



class C

{

    public C (object i)

    {

    }



    public static void Main ()

    {

        var cab = new CustomAttributeBuilder(

                        typeof (C).GetConstructors ()[0],

                        new object[] { new C (1) });

    }

}



Compile & Run

** ERROR **: unhandled type in custom attr
aborting...
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[])
<0x005b0>
  at System.Reflection.Emit.CustomAttributeBuilder..ctor
(System.Reflection.ConstructorInfo,object[]) <0x0007c>
  at C.Main () <0x001e0>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x0003a>

Native stacktrace:

    mono [0x80d62d4]
    [0xee0410]
    /lib/tls/i686/cmov/libc.so.6(abort+0x182) [0x1f4932]
    /lib/libglib-2.0.so.0 [0x153046]
    /lib/libglib-2.0.so.0(g_log+0x26) [0x153076]
    mono [0x819734d]
    mono(mono_reflection_get_custom_attrs_blob+0xff) [0x81976ef]
    [0x74f5af]
    [0x74e8e9]
    [0x74e325]
    [0xd0c1b9]
    [0xd0bf0b]
    mono [0x8063c91]
    mono(mono_runtime_invoke+0x40) [0x8138680]
    mono(mono_runtime_exec_main+0xdb) [0x813bd4b]
    mono(mono_runtime_run_main+0x15a) [0x813f78a]
    mono(mono_main+0x1951) [0x80b5671]
    mono [0x805b8e5]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x1ddb56]
    mono [0x805b821]

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