[Mono-bugs] [Bug 373459] New: MonoCMethod.Invoke() on generic type definition causes SIGABRT

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 24 18:46:59 EDT 2008


           Summary: MonoCMethod.Invoke() on generic type definition causes
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=203627)
 --> (https://bugzilla.novell.com/attachment.cgi?id=203627)
simple test case

Running the attached test case leads to this:

** ERROR **: file object.c: line 678 (compute_class_bitmap): should not be

  at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke
(object,object[]) <0x00004>
  at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke
(object,object[]) <0xffffffff>
  at System.Reflection.MonoCMethod.Invoke
  at System.Reflection.MonoCMethod.Invoke
  at System.Reflection.ConstructorInfo.Invoke (object[]) <0x00035>
  at Test.Main () <0x00029>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono [0x8187e1f]
        /lib/libc.so.6(abort+0x101) [0x383f91]
        /lib/libglib-2.0.so.0(g_logv+0x4da) [0x768201a]
        /lib/libglib-2.0.so.0(g_log+0x29) [0x7682059]
        /lib/libglib-2.0.so.0(g_assert_warning+0x76) [0x76820d6]
        mono [0x809a1bd]
        mono [0x809a3a3]
        mono(mono_class_vtable+0x130) [0x809adb0]
        mono(mono_object_new+0x18) [0x809d0d8]
        mono(mono_runtime_invoke_array+0x3d7) [0x809d647]
        mono [0x810d756]
        mono(mono_runtime_exec_main+0xeb) [0x809e65b]
        mono(mono_runtime_run_main+0x1ba) [0x809fa8a]
        mono(mono_main+0x1030) [0x8059620]
        mono [0x80580e2]
        /lib/libc.so.6(__libc_start_main+0xe0) [0x36f390]
        mono [0x8058001]

Debug info from gdb:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1217760 (LWP 8885)]
[New Thread 14990224 (LWP 8887)]
[New Thread 3382160 (LWP 8886)]
0x00110402 in __kernel_vsyscall ()
  3 Thread 3382160 (LWP 8886)  0x00110402 in __kernel_vsyscall ()
  2 Thread 14990224 (LWP 8887)  0x00110402 in __kernel_vsyscall ()
  1 Thread 1217760 (LWP 8885)  0x00110402 in __kernel_vsyscall ()

Thread 3 (Thread 3382160 (LWP 8886)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x004f2d26 in nanosleep () from /lib/libpthread.so.0
#2  0x081200f1 in collection_thread (unused=0x0) at collection.c:34
#3  0x004eb50b in start_thread () from /lib/libpthread.so.0
#4  0x0042cb2e in clone () from /lib/libc.so.6

Thread 2 (Thread 14990224 (LWP 8887)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x004ef5d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x0811d27f in timedwait_signal_poll_cond (cond=0x52a1dc, mutex=0x52a1c4, 
    timeout=0x80, alertable=0) at handles.c:1443
#3  0x0811fc9f in _wapi_handle_timedwait_signal_handle (handle=0x404, 
    timeout=0x0, alertable=0) at handles.c:1523
#4  0x0811fd1c in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0)
    at handles.c:1483
#5  0x0811c4bf in WaitForSingleObjectEx (handle=0x404, timeout=4294967295, 
    alertable=0) at wait.c:200
#6  0x08103e8a in finalizer_thread (unused=0x0) at gc.c:894
#7  0x080c907f in start_wrapper (data=0x87ff418) at threads.c:587
#8  0x08124782 in thread_start_routine (args=0x5eb3c0) at threads.c:282
#9  0x081386c5 in GC_start_routine (arg=0x27f40) at pthread_support.c:1369
#10 0x004eb50b in start_thread () from /lib/libpthread.so.0
#11 0x0042cb2e in clone () from /lib/libc.so.6

Thread 1 (Thread 1217760 (LWP 8885)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x004f252b in read () from /lib/libpthread.so.0
#2  0x076a9fcd in ?? () from /lib/libglib-2.0.so.0
#3  0x076aa412 in ?? () from /lib/libglib-2.0.so.0
#4  0x076aadcb in g_spawn_sync () from /lib/libglib-2.0.so.0
#5  0x076ab24c in g_spawn_command_line_sync () from /lib/libglib-2.0.so.0
#6  0x08187eb1 in mono_handle_native_sigsegv (signal=6, ctx=0xbfdbf51c)
    at mini-exceptions.c:1089
#7  <signal handler called>
#8  0x00110402 in __kernel_vsyscall ()
#9  0x00382690 in raise () from /lib/libc.so.6
#10 0x00383f91 in abort () from /lib/libc.so.6
#11 0x0768201a in g_logv () from /lib/libglib-2.0.so.0
#12 0x07682059 in g_log () from /lib/libglib-2.0.so.0
#13 0x076820d6 in g_assert_warning () from /lib/libglib-2.0.so.0
#14 0x0809a1bd in compute_class_bitmap (class=0x882ac9c, bitmap=0xbfdbfe8c, 
    size=128, offset=0, max_set=0xbfdbfea0, static_fields=0) at object.c:678
#15 0x0809a3a3 in mono_class_compute_gc_descriptor (class=0x882ac9c)
    at object.c:903
#16 0x0809adb0 in mono_class_vtable (domain=0x26f00, class=0x882ac9c)
    at object.c:1382
#17 0x0809d0d8 in mono_object_new (domain=0x26f00, klass=0x882ac9c)
    at object.c:3203
#18 0x0809d647 in mono_runtime_invoke_array (method=0x882addc, obj=0x0, 
    params=0x2dc90, exc=0x0) at object.c:3109
#19 0x0810d756 in ves_icall_InternalInvoke (method=0x4afd8, this=0x0, 
    params=0x2dc90) at icall.c:2913
#20 0x005002a5 in ?? ()
#21 0x0004afd8 in ?? ()
#22 0x00000000 in ?? ()
#0  0x00110402 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: https://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