[Mono-bugs] [Bug 399201] New: Assertion Failed in file critical-sections.c: line 95 ( DeleteCriticalSection):

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 11 05:24:31 EDT 2008


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


           Summary: Assertion Failed in file critical-sections.c: line 95
                    (DeleteCriticalSection):
           Product: Mono: Runtime
           Version: 1.9.0
          Platform: x86
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: j.hofmann at ontiv.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


I run a small application developed with .NET 2.0 on Windows in the Gnome
Terminal with the command "mono MyApplication.exe". The Programm starts with no
problem. Then i killed the application with "Ctrl+C" and get the following
result.

The small application is using Remoting to open a Tcp-Channel to communicate
with clients. The application runs fine, with no errors.

I do not know if its normal to get a StackTrace at this point.

Here's the Stacktrace:

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

  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 () <0x00036>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono [0x8181fa0]
        [0xffffe440]
        /lib/libc.so.6(abort+0x101) [0xb7dc61e1]
        /usr/lib/libglib-2.0.so.0(g_logv+0x47a) [0xb7f463fa]
        /usr/lib/libglib-2.0.so.0(g_log+0x29) [0xb7f46439]
        mono [0x8130706]
        mono [0x80cad50]
        [0xb6ec6dc9]
        [0xb6ec6d67]
        [0xb6ff32b1]
        mono [0x816ec93]
        mono(mono_runtime_invoke+0x27) [0x80fc687]
        mono [0x80ecf1e]
        mono [0x80ed1d4]
        mono [0x80ce4db]
        mono [0x811d102]
        mono [0x813afe4]
        /lib/libpthread.so.0 [0xb7ef8192]
        /lib/libc.so.6(clone+0x5e) [0xb7e5e02e]

Debug info from gdb:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d658f0 (LWP 7822)]
[New Thread 0xb6ec0b90 (LWP 7826)]
[New Thread 0xb742fb90 (LWP 7824)]
[New Thread 0xb7453b90 (LWP 7823)]
0xffffe410 in __kernel_vsyscall ()
  4 Thread 0xb7453b90 (LWP 7823)  0xffffe410 in __kernel_vsyscall ()
  3 Thread 0xb742fb90 (LWP 7824)  0xffffe410 in __kernel_vsyscall ()
  2 Thread 0xb6ec0b90 (LWP 7826)  0xffffe410 in __kernel_vsyscall ()
  1 Thread 0xb7d658f0 (LWP 7822)  0xffffe410 in __kernel_vsyscall ()

Thread 4 (Thread 0xb7453b90 (LWP 7823)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7eff846 in nanosleep () from /lib/libpthread.so.0
#2  0x08130c2e in collection_thread (unused=0x0) at collection.c:34
#3  0xb7ef8192 in start_thread () from /lib/libpthread.so.0
#4  0xb7e5e02e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb742fb90 (LWP 7824)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7e57591 in select () from /lib/libc.so.6
#2  0xb7f6ede9 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#3  0xb7f6f1dc in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so.0
#4  0x0818201b in mono_handle_native_sigsegv (signal=6, ctx=0xb742e85c)
    at mini-exceptions.c:1044
#5  <signal handler called>
#6  0xffffe410 in __kernel_vsyscall ()
#7  0xb7dc48f5 in raise () from /lib/libc.so.6
#8  0xb7dc61e1 in abort () from /lib/libc.so.6
#9  0xb7f463fa in g_logv () from /usr/lib/libglib-2.0.so.0
#10 0xb7f46439 in g_log () from /usr/lib/libglib-2.0.so.0
#11 0x08130706 in DeleteCriticalSection (section=0x83c42e0)
    at critical-sections.c:96
#12 0x080cad50 in ves_icall_System_Threading_Thread_Thread_free_internal (
    this=0x60d10, thread=0x0) at threads.c:939
#13 0xb6ec6dc9 in ?? ()
#14 0x00060d10 in ?? ()
#15 0x0000040b in ?? ()
#16 0x0825c7b8 in ?? ()
#17 0x083c66bc in ?? ()
#18 0x00060d10 in ?? ()
#19 0x00060d10 in ?? ()
#20 0x0826a0dc in ?? ()
#21 0x0000040b in ?? ()
#22 0x00000000 in ?? ()

Thread 2 (Thread 0xb6ec0b90 (LWP 7826)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7efed31 in __lll_mutex_unlock_wake () from /lib/libpthread.so.0
#2  0xb7efbb88 in _L_mutex_unlock_175 () from /lib/libpthread.so.0
#3  0xb7efb874 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#4  0x0812f6f9 in _wapi_handle_unlock_handle (handle=0xb792d1c4)
    at ../../mono/io-layer/handles-private.h:299
#5  0x0812f803 in event_set (handle=0x404) at events.c:669
#6  0x0812ee05 in SetEvent (handle=0x404) at events.c:740
#7  0x080ec933 in mono_gc_finalize_notify () at gc.c:819
#8  0x080ee0d5 in mono_domain_finalize (domain=0x25f00, timeout=1) at gc.c:286
#9  0x0814905b in mini_cleanup (domain=0x25f00) at mini.c:13064
#10 0x080bfcf5 in mono_runtime_quit () at appdomain.c:263
#11 0x080fa435 in ves_icall_System_Environment_Exit (result=1) at icall.c:6199
#12 0xb6ec6b46 in ?? ()
#13 0x0000003a in ?? ()
#14 0x083e9128 in ?? ()
#15 0x00000001 in ?? ()
#16 0x000b0c40 in ?? ()
#17 0x00000001 in ?? ()
#18 0x083f52ec in ?? ()
#19 0x000b0c40 in ?? ()
#20 0xb6ff3288 in ?? ()
#21 0xb6ec0110 in ?? ()
#22 0xb6ec6b24 in ?? ()
#23 0xb6ec0154 in ?? ()
#24 0xb6ec6ac6 in ?? ()
#25 0x0000003a in ?? ()
#26 0x083f52ec in ?? ()
#27 0x000b0c40 in ?? ()
#28 0x00000000 in ?? ()

Thread 1 (Thread 0xb7d658f0 (LWP 7822)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7efc566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x0812b4df in timedwait_signal_poll_cond (cond=0xb792d614, 
    mutex=0xb792d5fc, timeout=0x0, alertable=0) at handles.c:1443
#3  0x0812b5df in _wapi_handle_timedwait_signal_handle (handle=0x40e, 
    timeout=0x0, alertable=0) at handles.c:1523
#4  0x0812b72a in _wapi_handle_wait_signal_handle (handle=0xfffffe00, 
    alertable=-512) at handles.c:1483
#5  0x0811adc1 in WaitForSingleObjectEx (handle=0x40e, timeout=4294967295, 
    alertable=0) at wait.c:200
#6  0x0811b36a in WaitForSingleObject (handle=0xfffffe00, timeout=4294966784)
    at wait.c:256
#7  0x080ce80e in mono_thread_execute_interruption (thread=0x25e10)
    at threads.c:3336
#8  0x080cead3 in mono_thread_interruption_checkpoint_request (
    bypass_abort_protection=0) at threads.c:3445
#9  0xb7c3506f in ?? ()
#10 0xb6ec6b68 in ?? ()
#11 0xbfce7915 in ?? ()
#12 0xb7d658ec in ?? ()
#13 0x08292ad4 in ?? ()
#14 0xbfce7914 in ?? ()
#15 0xffffffff in ?? ()
#16 0x00000000 in ?? ()
#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.
=================================================================


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