[Mono-bugs] [Bug 465864] New: Runtime crash when calling BeginInvoke right before exiting Main

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 13 15:55:36 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=465864


           Summary: Runtime crash when calling BeginInvoke right before
                    exiting Main
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gonzalo at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=264886)
 --> (https://bugzilla.novell.com/attachment.cgi?id=264886)
Test case

Running the attached test case I get (NOTE: update to latest class/System):
gonzalo at lalo:/tmp$ mono proto.exe

Native stacktrace:

    mono [0x80c8a39]
    mono [0x805d6c8]
    [0xffffe410]
    [0xffffe410]
    mono [0x81bad41]
    /lib/libpthread.so.0 [0xb7e961b5]
    /lib/libc.so.6(clone+0x5e) [0xb7ddc38e]

Debug info from gdb:

Cannot access memory at address 0x80
[Thread debugging using libthread_db enabled]
[New Thread 0xb690bb90 (LWP 19409)]
[New Thread 0xb6d22b90 (LWP 19408)]
[New Thread 0xb6d46b90 (LWP 19407)]
[New Thread 0xb7b9db90 (LWP 19406)]
0xffffe430 in __kernel_vsyscall ()
  5 Thread 0xb7b9db90 (LWP 19406)  0xffffe430 in __kernel_vsyscall ()
  4 Thread 0xb6d46b90 (LWP 19407)  0xffffe430 in __kernel_vsyscall ()
  3 Thread 0xb6d22b90 (LWP 19408)  0xffffe430 in __kernel_vsyscall ()
  2 Thread 0xb690bb90 (LWP 19409)  0xffffe430 in __kernel_vsyscall ()
* 1 Thread 0xb7cd66f0 (LWP 19405)  0xffffe430 in __kernel_vsyscall ()

Thread 5 (Thread 0xb7b9db90 (LWP 19406)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7e99c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x081bb0af in GC_wait_marker () at pthread_support.c:1777
#3  0x081c088e in GC_help_marker (my_mark_no=5) at mark.c:1116
#4  0x081b9f39 in GC_mark_thread (id=0x0) at pthread_support.c:548
#5  0xb7e961b5 in start_thread () from /lib/libpthread.so.0
#6  0xb7ddc38e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xb6d46b90 (LWP 19407)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7e9d3f6 in nanosleep () from /lib/libpthread.so.0
#2  0x081abb58 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7e961b5 in start_thread () from /lib/libpthread.so.0
#4  0xb7ddc38e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb6d22b90 (LWP 19408)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7e9bef5 in sem_wait@@GLIBC_2.1 () from /lib/libpthread.so.0
#2  0x0815c319 in finalizer_thread (unused=0x0) at gc.c:928
#3  0x08161818 in start_wrapper (data=0x82da5e0) at threads.c:623
#4  0x081a6636 in thread_start_routine (args=0x82cf6cc) at threads.c:286
#5  0x081bad41 in GC_start_routine (arg=0x26f20) at pthread_support.c:1382
#6  0xb7e961b5 in start_thread () from /lib/libpthread.so.0
#7  0xb7ddc38e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb690bb90 (LWP 19409)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7e9cbbb in read () from /lib/libpthread.so.0
#2  0x080c8bb3 in mono_handle_native_sigsegv (signal=11, ctx=0xb690ac4c) at
mini-exceptions.c:1439
#3  0x0805d6c8 in sigsegv_signal_handler (_dummy=11, info=0xb690abcc,
context=0xb690ac4c) at mini.c:4270
#4  <signal handler called>
#5  sigusr1_signal_handler (_dummy=35, info=0xb690af6c, context=0xb690afec) at
mini.c:4329
#6  <signal handler called>
#7  0xffffe430 in __kernel_vsyscall ()
#8  0xb7e9bef5 in sem_wait@@GLIBC_2.1 () from /lib/libpthread.so.0
#9  0x081a6618 in thread_start_routine (args=0x82cf754) at threads.c:236
#10 0x081bad41 in GC_start_routine (arg=0xb4fe0) at pthread_support.c:1382
#11 0xb7e961b5 in start_thread () from /lib/libpthread.so.0
#12 0xb7ddc38e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7cd66f0 (LWP 19405)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7e99c35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x081ab6c4 in _wapi_handle_timedwait_signal_handle (handle=0x40a,
timeout=0x0, alertable=0) at handles.c:1601
#3  0x081ab6fc in _wapi_handle_wait_signal_handle (handle=0x40a, alertable=0)
at handles.c:1548
#4  0x081934e2 in WaitForSingleObjectEx (handle=0x40a, timeout=4294967295,
alertable=0) at wait.c:205
#5  0x081937d3 in WaitForMultipleObjectsEx (numobjects=1, handles=0x83d9f00,
waitall=1, timeout=4294967295, alertable=0) at wait.c:580
#6  0x0815f6b1 in wait_for_tids (wait=0x83d9f00, timeout=1) at threads.c:2421
#7  0x08162e6c in mono_thread_manage () at threads.c:2711
#8  0x080b04ed in mono_main (argc=2, argv=0xbfcbb3c4) at driver.c:1645
#9  0x0805adf1 in main (argc=) at main.c:34

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

Aborted




I cannot reproduce it reliably inside gdb

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