[Mono-list] Threading Problem

Forest Rouse rouse at voleon.com
Thu Mar 3 19:20:56 EST 2011


Hi:

I'm having a problem on exit with a mono application.  I am running mono
version 2.8 using the sgen garbage collector on SuSE 11.2.

The mono application distributes data from a C++ source to any number of C++
clients.  I am getting the following error on running down the C++ server
thread:

* Assertion at handles.c:1145, condition `thr_ret == 0' not met

with the following stack trace:

Stacktrace:

  at (wrapper managed-to-native)
System.Threading.NativeEventCalls.CloseEvent_internal (intptr) <0x00049>
  at (wrapper managed-to-native)
System.Threading.NativeEventCalls.CloseEvent_internal (intptr) <0x00049>
  at Microsoft.Win32.SafeHandles.SafeWaitHandle.ReleaseHandle () <0x00013>                               
  at System.Runtime.InteropServices.SafeHandle.Close () <0x00077>
  at System.Runtime.InteropServices.SafeHandle.Dispose (bool) <0x0001f>
  at System.Runtime.InteropServices.SafeHandle.Dispose () <0x00015>
  at System.Threading.WaitHandle.Dispose (bool) <0x00057>
  at System.Threading.WaitHandle.Finalize () <0x0001d>
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__
(object,intptr,intptr,intptr) <0x00048>

Native stacktrace:

        mono-sgen [0x48e1ab]
        /lib64/libpthread.so.0 [0x7ff693a85c00]
        /lib64/libc.so.6(gsignal+0x35) [0x7ff69374e4e5]
        /lib64/libc.so.6(abort+0x180) [0x7ff69374f9b0]
        mono-sgen [0x5e34af]
        mono-sgen [0x5e3547]
        mono-sgen [0x5c160d]
        mono-sgen [0x5c1774]
        [0x402f053a]


There is log output which shows that the C++ thread has run-down.  This
error does not occur every day, perhaps on average once per week so I need a
clue as to what might cause this problem.  I assume it is some sort of race
condition. 

Any help would be greatly appreciated!

Forest

--
View this message in context: http://mono.1490590.n4.nabble.com/Threading-Problem-tp3334486p3334486.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list