我在 Debian 6 操作系统中执行我的应用程序。时不时有一个例外:
错误:../../mono/io-layer/handles-private.h:362:_wapi_handle_share_release:断言失败:(info->handle_refs > 0)堆栈跟踪:
at (wrapper managed-to-native) System.IO.MonoIO.Close (intptr,System.IO.MonoIOError&) <0x00004> at (wrapper managed-to-native) System.IO.MonoIO.Close (intptr,System.IO .MonoIOError&) <0x00004> at System.IO.FileStream.Dispose (bool) <0x00094> at System.IO.Stream.Close () <0x0001b> at System.IO.Stream.Dispose () <0x00019> at (wrapper remoting -invoke-with-check) System.IO.Stream.Dispose () <0x00053> at Sarum.Logger.Log.WriteToFile (Sarum.Logger.SLogMessage,bool) <0x0077d> at Sarum.Logger.Log.WriteLineAsync () < 0x00212> 在(包装器运行时调用)对象.runtime_invoke_void_this_(对象,intptr,intptr,intptr)<0x00040>
本机堆栈跟踪:
/usr/bin/cli() [0x80d5b19] [0xdf6600] /lib/libc.so.6(abort+0x182) [0x13d962] /lib/libglib-2.0.so.0(g_assertion_message+0x13f) [0xc9232f] /lib /libglib-2.0.so.0(+0x6198d) [0xc9298d] /usr/bin/cli() [0x81df0da] /usr/bin/cli() [0x81e2d22] /usr/bin/cli() [0x81e2eb6] /usr /bin/cli() [0x8161dc0] [0xa1c6f8] [0xa1c625] [0xa1c584] [0xa1c752] [0x5711ec] [0x2c59ce] [0x2c41b3] [0x2832b1] /usr/bin/cli() [0x8064428] /usr/bin/cli (mono_runtime_invoke+0x40) [0x812d4e0] /usr/bin/cli(mono_runtime_delegate_invoke+0x34) [0x812d764] /usr/bin/cli() [0x81284bf] /usr/bin/cli() [0x81f5e3e] /usr/bin/cli () [0x82089a5] /lib/libpthread.so.0(+0x57b0) [0x9857b0] /lib/libc.so.6(克隆+0x5e) [0x1dc0be]
来自 gdb 的调试信息:
==================================================== ===============
执行本机代码时收到 SIGABRT。这通常表示单声道运行时或您的应用程序使用的本机库之一中存在致命错误。==================================================== ================** (/usr/local/bin/cserver/WadJet.CentralServer.exe:8141): 警告 **: process_set_termination_details: 错误查找进程句柄 0x403
为什么会这样以及如何与之抗争?