I have not run a full set of tests but using libmonosgen seems to avoid the crash on exit.<div><br></div><div>I&#39;m compiling now on Lion to see if I can further debug the crash when using libmono.<br><div><br></div><div>
Duane<br><br><div class="gmail_quote">On Fri, Jun 24, 2011 at 3:18 PM, Duane Wandless <span dir="ltr">&lt;<a href="mailto:duane@wandless.net">duane@wandless.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Nothing that I can find.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Jun 24, 2011 at 3:14 PM, Geoff Norton <span dir="ltr">&lt;<a href="mailto:grompf@gmail.com" target="_blank">grompf@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a g_error printed prior to the crash?<br>
<font color="#888888"><br>
-g<br>
</font><div><div></div><div><br>
<br>
On Fri, Jun 24, 2011 at 3:12 PM, Duane Wandless &lt;<a href="mailto:duane@wandless.net" target="_blank">duane@wandless.net</a>&gt; wrote:<br>
&gt; I thought it was fixed with this commit:<br>
&gt; <a href="https://github.com/mono/mono/commit/2b487789c8e3dcc3fbbcb16bb0268f88718cf8d0" target="_blank">https://github.com/mono/mono/commit/2b487789c8e3dcc3fbbcb16bb0268f88718cf8d0</a><br>
&gt; However, I&#39;m using this code and still seeing the exception.  Just now<br>
&gt; in _wapi_handle_unref_full.<br>
&gt; Duane<br>
&gt;<br>
&gt; On Fri, Jun 24, 2011 at 3:04 PM, Geoff Norton &lt;<a href="mailto:grompf@gmail.com" target="_blank">grompf@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; This is fixed in git by rodrigo iirc.<br>
&gt;&gt;<br>
&gt;&gt; -g<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Jun 24, 2011 at 3:02 PM, Duane Wandless &lt;<a href="mailto:duane@wandless.net" target="_blank">duane@wandless.net</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; I am getting this exception on exit when using Lion and running the<br>
&gt;&gt; &gt; latest<br>
&gt;&gt; &gt; 2.10.2.  I&#39;ve tried calling Environment.Exit(0) and mono_jit_cleanup<br>
&gt;&gt; &gt; during<br>
&gt;&gt; &gt; app shutdown.  But doing either of those leads to other exceptions.<br>
&gt;&gt; &gt; Hopefully there is a solution for this situation.  Thanks,<br>
&gt;&gt; &gt; Duane<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 0   libmono-2.0.1.dylib                 0x001da7ab<br>
&gt;&gt; &gt; mono_handle_native_sigsegv + 376<br>
&gt;&gt; &gt; 1   libmono-2.0.1.dylib                 0x0023d11d<br>
&gt;&gt; &gt; sigabrt_signal_handler +<br>
&gt;&gt; &gt; 116<br>
&gt;&gt; &gt; 2   libsystem_c.dylib                   0x9745059b _sigtramp + 43<br>
&gt;&gt; &gt; 3   ???                                 0xffffffff 0x0 + 4294967295<br>
&gt;&gt; &gt; 4   libsystem_c.dylib                   0x973ebbdd abort + 167<br>
&gt;&gt; &gt; 5   libmono-2.0.1.dylib                 0x0038ad29 monoeg_g_logv + 197<br>
&gt;&gt; &gt; 6   libmono-2.0.1.dylib                 0x0038ad5b monoeg_g_log + 44<br>
&gt;&gt; &gt; 7   libmono-2.0.1.dylib                 0x00357486<br>
&gt;&gt; &gt; _wapi_handle_unref_full +<br>
&gt;&gt; &gt; 1114<br>
&gt;&gt; &gt; 8   libmono-2.0.1.dylib                 0x00355404 handle_cleanup + 199<br>
&gt;&gt; &gt; 9   libsystem_c.dylib                   0x973eb944 __cxa_finalize + 243<br>
&gt;&gt; &gt; 10  libsystem_c.dylib                   0x973eb7f2 exit + 25<br>
&gt;&gt; &gt; 11  AppKit                              0x97d2e38a +[NSMenuItem<br>
&gt;&gt; &gt; initialize]<br>
&gt;&gt; &gt; + 0<br>
&gt;&gt; &gt; 12  AppKit                              0x97ff832d -[NSApplication<br>
&gt;&gt; &gt; _terminateFromSender:askIfShouldTerminate:saveWindows:] + 435<br>
&gt;&gt; &gt; 13  AppKit                              0x9847ef90<br>
&gt;&gt; &gt; -[NSApplication(NSWindowCache)<br>
&gt;&gt; &gt; _checkForTerminateAfterLastWindowClosed:saveWindows:] + 167<br>
&gt;&gt; &gt; 14  AppKit                              0x9847f5c1<br>
&gt;&gt; &gt; __-[NSApplication(NSWindowCache)<br>
&gt;&gt; &gt; _scheduleCheckForTerminateAfterLastWindowClosed]_block_invoke_1 + 126<br>
&gt;&gt; &gt; 15  CoreFoundation                      0x98ba6e96<br>
&gt;&gt; &gt; _runLoopTimerWithBlockContext + 22<br>
&gt;&gt; &gt; 16  CoreFoundation                      0x98b6b586<br>
&gt;&gt; &gt; __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22<br>
&gt;&gt; &gt; 17  CoreFoundation                      0x98b6af17 __CFRunLoopDoTimer +<br>
&gt;&gt; &gt; 743<br>
&gt;&gt; &gt; 18  CoreFoundation                      0x98b49f70 __CFRunLoopRun + 1888<br>
&gt;&gt; &gt; 19  CoreFoundation                      0x98b4947c CFRunLoopRunSpecific<br>
&gt;&gt; &gt; +<br>
&gt;&gt; &gt; 332<br>
&gt;&gt; &gt; 20  CoreFoundation                      0x98b49328 CFRunLoopRunInMode +<br>
&gt;&gt; &gt; 120<br>
&gt;&gt; &gt; 21  HIToolbox                           0x96ebe4ab<br>
&gt;&gt; &gt; RunCurrentEventLoopInMode<br>
&gt;&gt; &gt; + 318<br>
&gt;&gt; &gt; 22  HIToolbox                           0x96ec5d12<br>
&gt;&gt; &gt; ReceiveNextEventCommon +<br>
&gt;&gt; &gt; 168<br>
&gt;&gt; &gt; 23  HIToolbox                           0x96ec5c56<br>
&gt;&gt; &gt; BlockUntilNextEventMatchingListInMode + 88<br>
&gt;&gt; &gt; 24  AppKit                              0x97d27530 _DPSNextEvent + 678<br>
&gt;&gt; &gt; 25  AppKit                              0x97d26d9c -[NSApplication<br>
&gt;&gt; &gt; nextEventMatchingMask:untilDate:inMode:dequeue:] + 113<br>
&gt;&gt; &gt; 26  AppKit                              0x97d231a4 -[NSApplication run]<br>
&gt;&gt; &gt; +<br>
&gt;&gt; &gt; 897<br>
&gt;&gt; &gt; 27  AppKit                              0x97fb5f55 NSApplicationMain +<br>
&gt;&gt; &gt; 1047<br>
&gt;&gt; &gt; 28  PIX                                 0x0000bbf5 main + 257<br>
&gt;&gt; &gt; 29  PIX                                 0x000028fa start + 54<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Mono-devel-list mailing list<br>
&gt;&gt; &gt; <a href="mailto:Mono-devel-list@lists.ximian.com" target="_blank">Mono-devel-list@lists.ximian.com</a><br>
&gt;&gt; &gt; <a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div></div>