[Mono-bugs] [Bug 376391] New: SIGABRT: DeleteCriticalSection assertion finalizing thread

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 2 11:58:26 EDT 2008


           Summary: SIGABRT: DeleteCriticalSection assertion finalizing
           Product: Mono: Runtime
           Version: unspecified
          Platform: x86
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: dick at novell.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Running the attached repro results in the following SIGABRT:

** ERROR **: file critical-sections.c: line 95 (DeleteCriticalSection):
assertion failed: (ret == 0)

  at (wrapper managed-to-native) System.Threading.Thread.Thread_free_internal
(intptr) <0x00004>
  at (wrapper managed-to-native) System.Threading.Thread.Thread_free_internal
(intptr) <0xffffffff>
  at System.Threading.Thread.Finalize () <0x0004f>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono [0x81923ff]
        /lib/libc.so.6(abort+0x101) [0x401741e1]
        /usr/lib/libglib-2.0.so.0(g_logv+0x47a) [0x4006b3fa]
        /usr/lib/libglib-2.0.so.0(g_log+0x29) [0x4006b439]
        /usr/lib/libglib-2.0.so.0(g_assert_warning+0x70) [0x4006b4b0]
        mono [0x812dcac]
        mono [0x8101c80]
        mono [0x80b0cf5]
        mono [0x80b0f4d]
        mono [0x8104b9f]
        mono [0x8135bf2]
        mono [0x814bf75]
        /lib/libpthread.so.0 [0x40112192]
        /lib/libc.so.6(clone+0x5e) [0x4020c02e]

Debug info from gdb:

[?1034hUsing host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x4027cb80 (LWP 6953)]
[New Thread 0x40c6eb90 (LWP 6955)]
[New Thread 0x40b4db90 (LWP 6954)]
0xffffe410 in __kernel_vsyscall ()
  3 Thread 0x40b4db90 (LWP 6954)  0xffffe410 in __kernel_vsyscall ()
  2 Thread 0x40c6eb90 (LWP 6955)  0xffffe410 in __kernel_vsyscall ()
  1 Thread 0x4027cb80 (LWP 6953)  0xffffe410 in __kernel_vsyscall ()

Thread 3 (Thread 0x40b4db90 (LWP 6954)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x40119846 in nanosleep () from /lib/libpthread.so.0
#2  0x08133961 in collection_thread (unused=0x0) at collection.c:34
#3  0x40112192 in start_thread () from /lib/libpthread.so.0
#4  0x4020c02e in clone () from /lib/libc.so.6

Thread 2 (Thread 0x40c6eb90 (LWP 6955)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x40205591 in select () from /lib/libc.so.6
#2  0x40093de9 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#3  0x400941dc in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so0
#4  0x08192491 in mono_handle_native_sigsegv (signal=6, ctx=0x40c6d87c)
    at mini-exceptions.c:1104
#5  <signal handler called>
#6  0xffffe410 in __kernel_vsyscall ()
#7  0x401728f5 in raise () from /lib/libc.so.6
#8  0x401741e1 in abort () from /lib/libc.so.6
#9  0x4006b3fa in g_logv () from /usr/lib/libglib-2.0.so.0
#10 0x4006b439 in g_log () from /usr/lib/libglib-2.0.so.0
#11 0x4006b4b0 in g_assert_warning () from /usr/lib/libglib-2.0.so.0
#12 0x0812dcac in DeleteCriticalSection (section=0x82b6de0)
    at critical-sections.c:95
#13 0x08101c80 in ves_icall_System_Threading_Thread_Thread_free_internal (
    this=0x5cb00, thread=0x40a) at threads.c:937
#14 0x40ed5fd9 in ?? ()
#15 0x0005cb00 in ?? ()
#16 0x0000040a in ?? ()
#17 0x0827fbb8 in ?? ()
#18 0x00025f04 in ?? ()
#19 0x00025f00 in ?? ()
#20 0x00000000 in ?? ()

Thread 1 (Thread 0x4027cb80 (LWP 6953)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x401167ec in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#2  0x08124a9a in timedwait_signal_poll_cond (cond=0x4061f65c, 
    mutex=0x4061f644, timeout=0xbf97c738, alertable=1) at handles.c:1453
#3  0x08127521 in _wapi_handle_timedwait_signal_handle (handle=0x40b, 
    timeout=0xbf97c738, alertable=1) at handles.c:1523
#4  0x0812c2fc in WaitForSingleObjectEx (handle=0x40b, timeout=2000, 
    alertable=1) at wait.c:202
#5  0x080b1ca9 in mono_domain_finalize (domain=0x25f00, timeout=2000)
    at gc.c:288
#6  0x081508ea in mini_cleanup (domain=0x25f00) at mini.c:13669
#7  0x0805b120 in mono_main (argc=2, argv=0xbf97c994) at driver.c:1421
#8  0x0805a4f2 in main (argc=) at main.c:6
#0  0xffffe410 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.

To reproduce:
1. extract the attached gzipped tar archive.
2. run 'make server' in one terminal session.
3. run 'make client' in another terminal session.


You may need to run 'make client' a few times for the bug to reproduce.

Configure bugmail: https://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