[Mono-bugs] [Bug 521885] New: Runtime crashes with ** ERROR **: get custom attrs not yet supported for MyType

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 14 06:36:39 EDT 2009


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


           Summary: Runtime crashes with ** ERROR **: get custom attrs not
                    yet supported for MyType
    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: ---


Runtime crashes when System.Attribute.GetCustomAttribute is used with
user-defined type.

Works as expected on .NET 4.0

Full stack trace

** ERROR **: get custom attrs not yet supported for MyType
aborting...
Stacktrace:

  at (wrapper managed-to-native)
System.MonoCustomAttrs.GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x00004>
  at (wrapper managed-to-native)
System.MonoCustomAttrs.GetCustomAttributesInternal
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0xffffffff>
  at System.MonoCustomAttrs.GetCustomAttributesBase
(System.Reflection.ICustomAttributeProvider,System.Type) <0x00017>
  at System.MonoCustomAttrs.GetCustomAttributes
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x0003a>
  at System.MonoCustomAttrs.GetCustomAttribute
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x00017>
  at System.Attribute.GetCustomAttribute
(System.Reflection.MemberInfo,System.Type,bool) <0x00029>
  at System.Attribute.GetCustomAttribute
(System.Reflection.MemberInfo,System.Type) <0x00015>
  at Mono.CSharp.TypeManager.IndexerPropertyName (System.Type) <0x000cd>
  at Mono.CSharp.IndexerAccess/Indexers.GetIndexersForTypeOrInterface
(System.Type,System.Type) <0x00010>
  at Mono.CSharp.IndexerAccess/Indexers.GetIndexersForType
(System.Type,System.Type) <0x0015d>
  at Mono.CSharp.IndexerAccess.ResolveAccessor
(Mono.CSharp.EmitContext,Mono.CSharp.IndexerAccess/AccessorType) <0x0003f>
  at Mono.CSharp.IndexerAccess.DoResolve (Mono.CSharp.EmitContext) <0x00015>
  at Mono.CSharp.Expression.Resolve
(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags) <0x0015b>
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext) <0x00016>
  at Mono.CSharp.ElementAccess.DoResolve (Mono.CSharp.EmitContext) <0x00281>
  at Mono.CSharp.Expression.Resolve
(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags) <0x0015b>
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext) <0x00016>
  at Mono.CSharp.Assign.DoResolve (Mono.CSharp.EmitContext) <0x00021>
  at Mono.CSharp.SimpleAssign.DoResolve (Mono.CSharp.EmitContext) <0x00017>
  at Mono.CSharp.Expression.Resolve
(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags) <0x0015b>
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext) <0x00016>
  at Mono.CSharp.ExpressionStatement.ResolveStatement (Mono.CSharp.EmitContext)
<0x00016>
  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext)
<0x00025>
  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext) <0x001f5>
  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext) <0x001f5>
  at Mono.CSharp.EmitContext.ResolveTopBlock
(Mono.CSharp.EmitContext,Mono.CSharp.ToplevelBlock,Mono.CSharp.ParametersCompiled,Mono.CSharp.IMethodData,bool&)
<0x000ed>
  at Mono.CSharp.EmitContext.EmitTopBlock
(Mono.CSharp.IMethodData,Mono.CSharp.ToplevelBlock) <0x00046>
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace) <0x00170>
  at Mono.CSharp.MethodOrOperator.Emit () <0x00285>
  at Mono.CSharp.Method.Emit () <0x0009b>
  at Mono.CSharp.TypeContainer.EmitType () <0x008a3>
  at Mono.CSharp.RootContext.EmitCode () <0x000ac>
  at Mono.CSharp.Driver.Compile () <0x005ff>
  at Mono.CSharp.Driver.Main (string[]) <0x00067>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    mono [0x80d5212]
    [0xb7ffb410]
    /lib/tls/i686/cmov/libc.so.6(abort+0x188) [0xb7da0098]
    /usr/lib/libglib-2.0.so.0(g_logv+0x5dc) [0xb7f66eac]
    /usr/lib/libglib-2.0.so.0(g_log+0x26) [0xb7f66ee6]
    mono(mono_reflection_get_custom_attrs_info+0x2bb) [0x816e46b]
    mono(mono_reflection_get_custom_attrs_by_type+0x1a) [0x817173a]
    mono [0x81a795a]
    [0xb686b56d]
    [0xb686b4b0]
    [0xb686ae7b]
    [0xb67b86f0]
    [0xb67b85fa]
    [0xb67c5686]
    [0xb67c55fe]
    [0xb67c5501]
    [0xb67c53ee]
    [0xb67c4d60]
    [0xb67c4d0e]
    [0xb67bd24c]
    [0xb67bd06f]
    [0xb67c4922]
    [0xb67bd24c]
    [0xb67bd06f]
    [0xb67bd532]
    [0xb67bd4a8]
    [0xb67bd24c]
    [0xb67bd06f]
    [0xb67bcfff]
    [0xb67bcfc6]
    [0xb67b8fa6]
    [0xb67b8fa6]
    [0xb67b8a96]
    [0xb67bbdd7]
    [0xb67bbb71]
    [0xb67bb996]
    [0xb67bb66c]
    [0xb67ce80c]
    [0xb67cdae5]
    [0xb717c6a8]
    [0xb71765f0]
    [0xb7171203]
    mono(mono_runtime_exec_main+0x16e) [0x8127a2e]
    mono(mono_runtime_run_main+0x16b) [0x812814b]
    mono(mono_main+0x194a) [0x80b620a]
    mono [0x805b481]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7d89775]
    mono [0x805b3b1]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
[New Thread 0xb7d3f6f0 (LWP 21430)]
[New Thread 0xb6d76b90 (LWP 21433)]
[New Thread 0xb7fe7b90 (LWP 21432)]
[New Thread 0xb7c04b90 (LWP 21431)]
0xb7ffb430 in __kernel_vsyscall ()
  4 Thread 0xb7c04b90 (LWP 21431)  0xb7ffb430 in __kernel_vsyscall ()
  3 Thread 0xb7fe7b90 (LWP 21432)  0xb7ffb430 in __kernel_vsyscall ()
  2 Thread 0xb6d76b90 (LWP 21433)  0xb7ffb430 in __kernel_vsyscall ()
  1 Thread 0xb7d3f6f0 (LWP 21430)  0xb7ffb430 in __kernel_vsyscall ()

Thread 4 (Thread 0xb7c04b90 (LWP 21431)):
#0  0xb7ffb430 in __kernel_vsyscall ()
#1  0xb7f060e5 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x081de99d in GC_wait_marker () at pthread_support.c:1785
#3  0x081d7947 in GC_help_marker (my_mark_no=5) at mark.c:1116
#4  0x081dd781 in GC_mark_thread (id=0x0) at pthread_support.c:548
#5  0xb7f024ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6  0xb7e5749e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xb7fe7b90 (LWP 21432)):
#0  0xb7ffb430 in __kernel_vsyscall ()
#1  0xb7f098f6 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x081ae448 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7f024ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7e5749e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb6d76b90 (LWP 21433)):
#0  0xb7ffb430 in __kernel_vsyscall ()
#1  0xb7f083f5 in sem_wait@@GLIBC_2.1 () from
/lib/tls/i686/cmov/libpthread.so.0
#2  0x081ad3c4 in finalizer_thread (unused=0x0) at gc.c:1013
#3  0x08163967 in start_wrapper (data=0x8c90a70) at threads.c:643
#4  0x081b1786 in thread_start_routine (args=0x8c9633c) at wthreads.c:286
#5  0x081de62f in GC_start_routine (arg=0x26f00) at pthread_support.c:1390
#6  0xb7f024ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb7e5749e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7d3f6f0 (LWP 21430)):
#0  0xb7ffb430 in __kernel_vsyscall ()
#1  0xb7f090fb in read () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x080d5476 in mono_handle_native_sigsegv (signal=6, ctx=0xbfe17d1c)
    at /usr/include/bits/unistd.h:45
#3  <signal handler called>
#4  0xb7ffb430 in __kernel_vsyscall ()
#5  0xb7d9e6d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7da0098 in abort () from /lib/tls/i686/cmov/libc.so.6
#7  0xb7f66eac in IA__g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, 
    format=0x822a878 "get custom attrs not yet supported for %s", 
    args1=0xbfe185fc "\202���\001") at
/build/buildd/glib2.0-2.20.1/glib/gmessages.c:506
#8  0xb7f66ee6 in IA__g_log (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, 
    format=0x822a878 "get custom attrs not yet supported for %s")
    at /build/buildd/glib2.0-2.20.1/glib/gmessages.c:526
#9  0x0816e46b in mono_reflection_get_custom_attrs_info (obj=0x4b880)
    at reflection.c:8399
#10 0x0817173a in mono_reflection_get_custom_attrs_by_type (obj=0x4b880, 
    attr_klass=0x900688c) at reflection.c:8420
#11 0x081a795a in custom_attrs_get_by_type (obj=0x4b880, attr_type=0xcc540)
    at icall.c:7518
#12 0xb686b56d in ?? ()
#13 0xb686b4b0 in ?? ()
#14 0xb686ae7b in ?? ()
#15 0xb67b86f0 in ?? ()
#16 0xb67b85fa in ?? ()
#17 0xb67c5686 in ?? ()
#18 0xb67c55fe in ?? ()
#19 0xb67c5501 in ?? ()
#20 0xb67c53ee in ?? ()
#21 0xb67c4d60 in ?? ()
#22 0xb67c4d0e in ?? ()
#23 0xb67bd24c in ?? ()
#24 0xb67bd06f in ?? ()
#25 0xb67c4922 in ?? ()
#26 0xb67bd24c in ?? ()
#27 0xb67bd06f in ?? ()
#28 0xb67bd532 in ?? ()
#29 0xb67bd4a8 in ?? ()
#30 0xb67bd24c in ?? ()
#31 0xb67bd06f in ?? ()
#32 0xb67bcfff in ?? ()
#33 0xb67bcfc6 in ?? ()
#34 0xb67b8fa6 in ?? ()
#35 0xb67b8fa6 in ?? ()
#36 0xb67b8a96 in ?? ()
#37 0xb67bbdd7 in ?? ()
#38 0xb67bbb71 in ?? ()
#39 0xb67bb996 in ?? ()
#40 0xb67bb66c in ?? ()
#41 0xb67ce80c in ?? ()
#42 0xb67cdae5 in ?? ()
#43 0xb717c6a8 in ?? ()
#44 0xb71765f0 in ?? ()
#45 0xb7171203 in ?? ()
#46 0x08127a2e in mono_runtime_exec_main (method=0x4b880, args=0x30f90,
exc=0x0)
    at object.c:3445
#47 0x0812814b in mono_runtime_run_main (method=0x8cadf9c, argc=1,
argv=0xbfe193d8, 
    exc=0x0) at object.c:3233
#48 0x080b620a in mono_main (argc=3, argv=0xbfe193d4) at driver.c:976
#49 0x0805b481 in main (argc=0, argv=0x0) at main.c:34
#0  0xb7ffb430 in __kernel_vsyscall ()

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

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