[Mono-bugs] [Bug 480807] New: repro for generics sharing related vm crash

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Mar 1 12:57:07 EST 2009


           Summary: repro for generics sharing related vm crash
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: basjsmit at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=276232)
 --> (https://bugzilla.novell.com/attachment.cgi?id=276232)
repro for vm crash

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
Gecko/2009011913 Firefox/3.0.6

Encountered a vm crash while running moq3 test suite.

Reproducible: Always

Steps to Reproduce:
1.Run attached exe

Actual Results:  

ERROR:mini-exceptions.c:312:get_generic_context_from_stack_frame: assertion
failed: (mono_class_has_parent_and_ignore_generics (class,

Native stacktrace:

    mono [0x80d1062]
    /lib/tls/i686/cmov/libc.so.6(abort+0x188) [0xb7c9c248]
    /usr/lib/libglib-2.0.so.0(g_assertion_message+0x123) [0xb7e7ab73]
    /usr/lib/libglib-2.0.so.0 [0xb7e7b09d]
    mono [0x80cee6c]
    mono [0x80d039e]
    mono [0x80d04b9]
    mono [0x80fbeea]
    mono(mono_runtime_exec_main+0xe5) [0x8108a55]
    mono(mono_runtime_run_main+0x16b) [0x81091fb]
    mono(mono_main+0x18fa) [0x80b3b9a]
    mono [0x805b1d1]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c85685]
    mono [0x805b101]

Debug info from gdb:

Cannot access memory at address 0x1cef
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c436d0 (LWP 7407)]
[New Thread 0xb6b56b90 (LWP 7410)]
[New Thread 0xb6b7ab90 (LWP 7409)]
[New Thread 0xb7b10b90 (LWP 7408)]
0xb7f02430 in __kernel_vsyscall ()
  4 Thread 0xb7b10b90 (LWP 7408)  0xb7f02430 in __kernel_vsyscall ()
  3 Thread 0xb6b7ab90 (LWP 7409)  0xb7f02430 in __kernel_vsyscall ()
  2 Thread 0xb6b56b90 (LWP 7410)  0xb7f02430 in __kernel_vsyscall ()
  1 Thread 0xb7c436d0 (LWP 7407)  0xb7f02430 in __kernel_vsyscall ()

Thread 4 (Thread 0xb7b10b90 (LWP 7408)):
#0  0xb7f02430 in __kernel_vsyscall ()
#1  0xb7dfd075 in pthread_cond_wait@@GLIBC_2.3.2 () from
#2  0x081dbfe5 in GC_wait_marker () at pthread_support.c:1777
#3  0x081e219f in GC_help_marker (my_mark_no=5) at mark.c:1116
#4  0x081dadc9 in GC_mark_thread (id=0x0) at pthread_support.c:548
#5  0xb7df950f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6  0xb7d507ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xb6b7ab90 (LWP 7409)):
#0  0xb7f02430 in __kernel_vsyscall ()
#1  0xb7e00906 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x081ba578 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7df950f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7d507ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb6b56b90 (LWP 7410)):
#0  0xb7f02430 in __kernel_vsyscall ()
#1  0xb7dff405 in sem_wait@@GLIBC_2.1 () from
#2  0x08112379 in finalizer_thread (unused=0x0) at gc.c:938
#3  0x081a48c8 in start_wrapper (data=0x9b43170) at threads.c:624
#4  0x081ca326 in thread_start_routine (args=0x9b43844) at threads.c:286
#5  0x081dbc77 in GC_start_routine (arg=0x35f20) at pthread_support.c:1382
#6  0xb7df950f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb7d507ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7c436d0 (LWP 7407)):
#0  0xb7f02430 in __kernel_vsyscall ()
#1  0xb7e0010b in read () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x080d12c6 in mono_handle_native_sigsegv (signal=6, ctx=0xbfa02b3c) at
#3  <signal handler called>
#4  0xb7f02430 in __kernel_vsyscall ()
#5  0xb7c9a880 in raise () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7c9c248 in abort () from /lib/tls/i686/cmov/libc.so.6
#7  0xb7e7ab73 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
#8  0xb7e7b09d in g_assertion_message_expr () from /usr/lib/libglib-2.0.so.0
#9  0x080cee6c in get_generic_context_from_stack_frame (ji=<value optimized
out>, generic_info=<value optimized out>)
    at mini-exceptions.c:312
#10 0x080d039e in mono_handle_exception_internal (ctx=0xbfa03214, obj=0x8db28,
original_ip=0xb65523f9, test_only=1, 
    out_filter_idx=0xbfa03250) at mini-exceptions.c:823
#11 0x080d04b9 in mono_handle_exception_internal (ctx=0xbfa03298, obj=0x8db28,
original_ip=0xb65523f9, test_only=0, 
    out_filter_idx=0x0) at mini-exceptions.c:916
#12 0x080fbeea in throw_exception (eax=580392, ecx=647728, edx=3059033248,
ebx=569704, esi=580896, edi=582760, 
    ebp=3214947128, exc=0x8db28, eip=3059033081, esp=3214947064,
rethrow=-1235934215) at exceptions-x86.c:406
#13 0xb7b11d0d in ?? ()
#14 0xb65522cb in ?? ()
#15 0xb655213b in ?? ()
#16 0xb6551f9d in ?? ()
#17 0xb6551f5f in ?? ()
#18 0xb654e6dd in ?? ()
#19 0xb654e47a in ?? ()
#20 0xb654d92f in ?? ()
#21 0xb6f145f1 in ?? ()
#22 0xb6f142b2 in ?? ()
#23 0xb6f14203 in ?? ()
#24 0x08108a55 in mono_runtime_exec_main (method=0x8e468, args=0x3be70,
exc=0x0) at object.c:3343
#25 0x081091fb in mono_runtime_run_main (method=0x9b25d84, argc=0,
argv=0xbfa037ec, exc=0x0) at object.c:3123
#26 0x080b3b9a in mono_main (argc=3, argv=0xbfa037e4) at driver.c:969
#27 0x0805b1d1 in main (argc=) at main.c:34
#0  0xb7f02430 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.


Expected Results:  
Regular execution.

Compiled with csc, works on clr, crashes vm r128214.

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