[Mono-bugs] [Bug 555464] reflection.c:2609:get_field_on_inst_generic_type: assertion

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 1 13:10:23 EST 2009


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

http://bugzilla.novell.com/show_bug.cgi?id=555464#c15


--- Comment #15 from Onur Gumus <emperon at gmail.com> 2009-12-01 18:10:22 UTC ---
Current SVN r147243  fails with below:

ERROR:reflection.c:10097:inflate_mono_method: assertion failed: (i <
klass->method.count)
Stacktrace:

  at (wrapper managed-to-native) System.Reflection.MonoGenericClass.initialize
(System.Reflection.MonoGenericClass*,System.Reflection.MethodInfo[],System.Reflection.ConstructorInfo[],System.Reflection.FieldInfo[],System.Reflection.PropertyInfo[],System.Reflection.EventInfo[])
<0x00063>
  at (wrapper managed-to-native) System.Reflection.MonoGenericClass.initialize
(System.Reflection.MonoGenericClass*,System.Reflection.MethodInfo[],System.Reflection.ConstructorInfo[],System.Reflection.FieldInfo[],System.Reflection.PropertyInfo[],System.Reflection.EventInfo[])
<0x00063>
  at System.Reflection.MonoGenericClass.initialize () <0x00117>
  at System.Reflection.MonoGenericClass.GetConstructor
(System.Reflection.ConstructorInfo) <0x00027>
  at System.Reflection.Emit.TypeBuilder.GetConstructor
(System.Type,System.Reflection.ConstructorInfo) <0x00031>
  at Nemerle.Compiler.ILEmitter.FrameworkGetConstructor
(System.Type,System.Reflection.ConstructorInfo) <0x000e7>
  at Nemerle.Compiler.ILEmitter.GetConstructorInfo
(System.Type,Nemerle.Compiler.IMethod) <0x0004b>
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr)
<0x089c7>
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr)
<0x01897>
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr)
<0x03a47>
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr)
<0x03e97>
  at Nemerle.Compiler.ILEmitter.Run () <0x00127>
  at Nemerle.Compiler.MethodBuilder/_N__N_lambda__59337__59458.apply_void ()
<0x000c7>
  at Nemerle.Compiler.TypeBuilder.FinalizeType () <0x000cd>
  at Nemerle.Compiler.TypeBuilder.EmitImplementation () <0x001f3>
  at Nemerle.Compiler.TypeBuilder/_N__N_lambda__54472__54503.apply_void ()
<0x00077>
  at Nemerle.Compiler.Solver.Enqueue (Nemerle.Builtins.FunctionVoid) <0x000a5>
  at Nemerle.Compiler.TypesManager.EmitDecls () <0x0005b>
  at Nemerle.Compiler.ManagerClass.Run () <0x0056f>
  at Nemerle.CommandlineCompiler.MainClass.main_with_catching () <0x00153>
  at Nemerle.CommandlineCompiler.MainClass.Main () <0x001ef>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x00049>

Native stacktrace:

    /usr/local/bin///mono [0x48c64e]
    /lib/libpthread.so.0 [0x2ac15e57e080]
    /lib/libc.so.6(gsignal+0x35) [0x2ac15ea43fb5]
    /lib/libc.so.6(abort+0x183) [0x2ac15ea45bc3]
    /usr/lib/libglib-2.0.so.0(g_assertion_message+0x113) [0x2ac15defd4f3]
    /usr/lib/libglib-2.0.so.0 [0x2ac15defda82]
    /usr/local/bin///mono [0x5145e7]
    /usr/local/bin///mono [0x5226de]
    [0x41c7c213]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
[New Thread 0x2ac15efb40c0 (LWP 13950)]
[New Thread 0x2aaaabc0d950 (LWP 13952)]
[New Thread 0x2aaaab9ac950 (LWP 13951)]
0x00002ac15e57cedb in read () from /lib/libpthread.so.0
  3 Thread 0x2aaaab9ac950 (LWP 13951)  0x00002ac15e57d7e1 in nanosleep ()
   from /lib/libpthread.so.0
  2 Thread 0x2aaaabc0d950 (LWP 13952)  0x00002ac15e57c281 in sem_wait ()
   from /lib/libpthread.so.0
  1 Thread 0x2ac15efb40c0 (LWP 13950)  0x00002ac15e57cedb in read ()
   from /lib/libpthread.so.0

Thread 3 (Thread 0x2aaaab9ac950 (LWP 13951)):
#0  0x00002ac15e57d7e1 in nanosleep () from /lib/libpthread.so.0
#1  0x000000000059adb2 in collection_thread (unused=<value optimized out>)
    at collection.c:34
#2  0x00002ac15e5763ba in start_thread () from /lib/libpthread.so.0
#3  0x00002ac15eaf6fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x2aaaabc0d950 (LWP 13952)):
#0  0x00002ac15e57c281 in sem_wait () from /lib/libpthread.so.0
#1  0x00000000004e3120 in finalizer_thread (unused=<value optimized out>)
    at gc.c:1022
#2  0x000000000050f955 in start_wrapper (data=<value optimized out>)
    at threads.c:721
#3  0x0000000000599cdb in thread_start_routine (args=0x1ffea50)
    at wthreads.c:286
#4  0x00000000005c59f0 in GC_start_routine (arg=0x2aaaaaad1e70)
    at pthread_support.c:1390
#5  0x00002ac15e5763ba in start_thread () from /lib/libpthread.so.0
#6  0x00002ac15eaf6fcd in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x2ac15efb40c0 (LWP 13950)):
#0  0x00002ac15e57cedb in read () from /lib/libpthread.so.0
#1  0x000000000048c7d1 in mono_handle_native_sigsegv (
    signal=<value optimized out>, ctx=<value optimized out>)
    at /usr/include/bits/unistd.h:45
#2  <signal handler called>
#3  0x00002ac15ea43fb5 in raise () from /lib/libc.so.6
#4  0x00002ac15ea45bc3 in abort () from /lib/libc.so.6
#5  0x00002ac15defd4f3 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
#6  0x00002ac15defda82 in g_assertion_message_expr ()
   from /usr/lib/libglib-2.0.so.0
#7  0x00000000005145e7 in inflate_mono_method (klass=<value optimized out>, 
    method=0x2ef0600, obj=0x2aaaadb158c0) at reflection.c:10097
#8  0x00000000005226de in mono_reflection_generic_class_initialize (
    type=0x2aaaad138318, methods=<value optimized out>, ctors=0x2aaaaf4e5820, 
    fields=0x2aaaaf4e9d20, properties=0x2aaaaf4e9d00, events=0x2aaaaf4e9d40)
    at reflection.c:10189
#9  0x0000000041c7c213 in ?? ()
#10 0x0000000001fbc0d0 in ?? ()
#11 0x00007fff4d025670 in ?? ()
#12 0x00002aaaaaad7f80 in ?? ()
#13 0x00002aaaaf4e9d40 in ?? ()
#14 0x0000000000000000 in ?? ()
#0  0x00002ac15e57cedb in read () from /lib/libpthread.so.0

=================================================================
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.
You are the assignee for the bug.


More information about the mono-bugs mailing list