Bug 2548 - MonoDevelop crashes so hard force quit / kill -9 will not kill it (must kill gdb)
Summary: MonoDevelop crashes so hard force quit / kill -9 will not kill it (must kill ...
Status: CLOSED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC All
: Highest blocker
Target Milestone: ---
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2011-12-16 16:11 UTC by Joseph Hill
Modified: 2012-01-10 10:52 UTC (History)
8 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
CLOSED FIXED

Description Joseph Hill 2011-12-16 16:11:44 UTC

    
Comment 1 Joseph Hill 2011-12-16 16:13:55 UTC
Mono for Android will crash if you hit refresh several times in a row on the select device dialog.

Once it crashes, you cannot force quite monodevelop, and kill -9 on monodevelop processed doesn't kill it.  You have to kill the gdb process running against mono.
Comment 2 Joseph Hill 2011-12-16 16:14:37 UTC
GDB backtrace info:


Josephs-MacBook-Air:MonoAndroid joseph$ ps -A | grep mono
23388 ??         0:00.00 (mono)
23416 ??         0:00.00 (mono)
25125 ??         0:00.00 (mono)
25229 ??         0:00.00 (mono)
25285 ??         0:00.00 (mono)
25310 ??         0:00.00 (mono)
26183 ??         1:23.45 /Applications/MonoDevelop.app/Contents/MacOS/bin/monodevelop --debug /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.exe -psn_0_17903890
26205 ??         0:10.21 /Library/Frameworks/Mono.framework/Versions/2.10.7/bin/mono /Users/joseph/Library/Caches/MonoDevelop-2.8/xbuild/4.0/MonoDevelop.Projects.Formats.MSBuild.exe
29481 ??         0:02.05 /usr/libexec/gdb/gdb-i386-apple-darwin -batch -x /tmp/mono-gdb-commands.dQONyV
29493 ttys001    0:00.00 grep mono
Josephs-MacBook-Air:MonoAndroid joseph$ gdb attach 26205
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov  3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...File 'attach' does not exist or is not a regular file.

/Developer/MonoAndroid/26205: No such file or directory
Attaching to process 26205.
Reading symbols for shared libraries . done
Reading symbols for shared libraries 
warning: Trying to remove a section from the ordered section list that did not exist at 0x33c000.
.................................... done
0x93e5983e in __psynch_cvwait ()
(gdb) t a a bt

Thread 8 (process 26205):
#0  0x93e59a9a in recvfrom$UNIX2003 ()
#1  0x00226808 in _wapi_recvfrom (fd=6, buf=0xa74b010, len=4096, recv_flags=0, from=0x0, fromlen=0x0) at sockets.c:607
#2  0x0022672f in _wapi_recv (fd=6, buf=0xa74b010, len=4096, recv_flags=0) at sockets.c:585
#3  0x001dea1b in ves_icall_System_Net_Sockets_Socket_Receive_internal (sock=6, buffer=0xa74b000, offset=0, count=4096, flags=0, error=0xb0306aec) at socket-io.c:1470
#4  0x03452c1c in ?? ()
#5  0x03452b94 in ?? ()
#6  0x034529b8 in ?? ()
#7  0x03452794 in ?? ()
#8  0x03452477 in ?? ()
#9  0x03452208 in ?? ()
#10 0x03451f70 in ?? ()
#11 0x034519ec in ?? ()
#12 0x034518cb in ?? ()
#13 0x01aed9aa in ?? ()
#14 0x004bcee1 in ?? ()
#15 0x0000d352 in mono_jit_runtime_invoke (method=0x102281c, obj=0x97f02a0, params=0xb0306eb0, exc=0x0) at mini.c:5791
#16 0x001a43aa in mono_runtime_invoke (method=0x102281c, obj=0x97f02a0, params=0xb0306eb0, exc=0x0) at object.c:2755
#17 0x001a5c47 in mono_runtime_delegate_invoke (delegate=0x97f02a0, params=0xb0306eb0, exc=0x0) at object.c:3420
#18 0x001e92f6 in start_wrapper_internal (data=0x6d3660) at threads.c:789
#19 0x001e9357 in start_wrapper (data=0x6d3660) at threads.c:831
#20 0x0022e6fe in thread_start_routine (args=0x28506f4) at wthreads.c:287
#21 0x00268118 in GC_start_routine (arg=0x9f6b1e0) at pthread_support.c:1468
#22 0x9bdf1ed9 in _pthread_start ()
#23 0x9bdf56de in thread_start ()

Thread 7 (process 26205):
#0  0x93e59bb2 in __semwait_signal ()
#1  0x9bda67b9 in nanosleep$UNIX2003 ()
#2  0x0022f7ee in SleepEx (ms=3000, alertable=1) at wthreads.c:1027
#3  0x001ea80f in ves_icall_System_Threading_Thread_Sleep_internal (ms=3000) at threads.c:1319
#4  0x01af1994 in ?? ()
#5  0x01af1910 in ?? ()
#6  0x0388e838 in ?? ()
#7  0x01aed9aa in ?? ()
#8  0x004bcee1 in ?? ()
#9  0x0000d352 in mono_jit_runtime_invoke (method=0x102281c, obj=0x381f7e0, params=0xb0710eb0, exc=0x0) at mini.c:5791
#10 0x001a43aa in mono_runtime_invoke (method=0x102281c, obj=0x381f7e0, params=0xb0710eb0, exc=0x0) at object.c:2755
#11 0x001a5c47 in mono_runtime_delegate_invoke (delegate=0x381f7e0, params=0xb0710eb0, exc=0x0) at object.c:3420
#12 0x001e92f6 in start_wrapper_internal (data=0x1bb0720) at threads.c:789
#13 0x001e9357 in start_wrapper (data=0x1bb0720) at threads.c:831
#14 0x0022e6fe in thread_start_routine (args=0x284ab68) at wthreads.c:287
#15 0x00268118 in GC_start_routine (arg=0x1ad3f60) at pthread_support.c:1468
#16 0x9bdf1ed9 in _pthread_start ()
#17 0x9bdf56de in thread_start ()

Thread 6 (process 26205):
#0  0x93e59bb2 in __semwait_signal ()
#1  0x9bda67b9 in nanosleep$UNIX2003 ()
#2  0x0022f7ee in SleepEx (ms=1000, alertable=1) at wthreads.c:1027
#3  0x001ea80f in ves_icall_System_Threading_Thread_Sleep_internal (ms=1000) at threads.c:1319
#4  0x01af1994 in ?? ()
#5  0x01af1910 in ?? ()
#6  0x01af1830 in ?? ()
#7  0x01aed9aa in ?? ()
#8  0x004bcee1 in ?? ()
#9  0x0000d352 in mono_jit_runtime_invoke (method=0x102281c, obj=0x1ac1d90, params=0xb050ceb0, exc=0x0) at mini.c:5791
#10 0x001a43aa in mono_runtime_invoke (method=0x102281c, obj=0x1ac1d90, params=0xb050ceb0, exc=0x0) at object.c:2755
#11 0x001a5c47 in mono_runtime_delegate_invoke (delegate=0x1ac1d90, params=0xb050ceb0, exc=0x0) at object.c:3420
#12 0x001e92f6 in start_wrapper_internal (data=0x569650) at threads.c:789
#13 0x001e9357 in start_wrapper (data=0x569650) at threads.c:831
#14 0x0022e6fe in thread_start_routine (args=0x284a4a0) at wthreads.c:287
#15 0x00268118 in GC_start_routine (arg=0x451f00) at pthread_support.c:1468
#16 0x9bdf1ed9 in _pthread_start ()
#17 0x9bdf56de in thread_start ()

Thread 5 (process 26205):
#0  0x93e58e12 in accept$UNIX2003 ()
#1  0x00225c95 in _wapi_accept (fd=4, addr=0x0, addrlen=0x0) at sockets.c:225
#2  0x001dd49c in ves_icall_System_Net_Sockets_Socket_Accept_internal (sock=4, error=0xb040acbc, blocking=1) at socket-io.c:883
#3  0x01aee534 in ?? ()
#4  0x01aee1e8 in ?? ()
#5  0x01aedba4 in ?? ()
#6  0x01aeda2c in ?? ()
#7  0x01aed9aa in ?? ()
#8  0x004bcee1 in ?? ()
#9  0x0000d352 in mono_jit_runtime_invoke (method=0x102281c, obj=0x1ad0c08, params=0xb040aeb0, exc=0x0) at mini.c:5791
#10 0x001a43aa in mono_runtime_invoke (method=0x102281c, obj=0x1ad0c08, params=0xb040aeb0, exc=0x0) at object.c:2755
#11 0x001a5c47 in mono_runtime_delegate_invoke (delegate=0x1ad0c08, params=0xb040aeb0, exc=0x0) at object.c:3420
#12 0x001e92f6 in start_wrapper_internal (data=0x673440) at threads.c:789
#13 0x001e9357 in start_wrapper (data=0x673440) at threads.c:831
#14 0x0022e6fe in thread_start_routine (args=0x284a3a8) at wthreads.c:287
#15 0x00268118 in GC_start_routine (arg=0x4519c0) at pthread_support.c:1468
#16 0x9bdf1ed9 in _pthread_start ()
#17 0x9bdf56de in thread_start ()

Thread 4 (process 26205):
#0  0x93e5a90a in kevent ()
#1  0x94378c58 in _dispatch_mgr_invoke ()
#2  0x943776a7 in _dispatch_mgr_thread ()

Thread 3 (process 26205):
#0  0x93e57c5e in semaphore_wait_trap ()
#1  0x0023d682 in mono_sem_wait (sem=0x319b14, alertable=1) at mono-semaphore.c:115
#2  0x001234f2 in finalizer_thread (unused=0x0) at gc.c:1066
#3  0x001e92a1 in start_wrapper_internal (data=0x1c70190) at threads.c:783
#4  0x001e9357 in start_wrapper (data=0x1c70190) at threads.c:831
#5  0x0022e6fe in thread_start_routine (args=0x284a1b8) at wthreads.c:287
#6  0x00268118 in GC_start_routine (arg=0x451f60) at pthread_support.c:1468
#7  0x9bdf1ed9 in _pthread_start ()
#8  0x9bdf56de in thread_start ()

Thread 2 (process 26205):
#0  0x93e57c22 in mach_msg_trap ()
#1  0x93e571f6 in mach_msg ()
#2  0x000d9d9a in mach_exception_thread (arg=0x0) at mini-darwin.c:129
#3  0x00268118 in GC_start_routine (arg=0x451f60) at pthread_support.c:1468
#4  0x9bdf1ed9 in _pthread_start ()
#5  0x9bdf56de in thread_start ()

Thread 1 (process 26205):
#0  0x93e5983e in __psynch_cvwait ()
#1  0x9bdf5e21 in _pthread_cond_wait ()
#2  0x9bda642c in pthread_cond_wait$UNIX2003 ()
#3  0x00214553 in _wapi_handle_timedwait_signal_handle (handle=0x400, timeout=0x0, alertable=1, poll=0) at handles.c:1655
#4  0x00214257 in _wapi_handle_wait_signal (poll=0) at handles.c:1584
#5  0x0022cdbb in WaitForMultipleObjectsEx (numobjects=2, handles=0x679da0, waitall=0, timeout=4294967295, alertable=1) at wait.c:722
#6  0x001eb55d in ves_icall_System_Threading_WaitHandle_WaitAny_internal (mono_handles=0x1ad4900, ms=-1, exitContext=0) at threads.c:1615
#7  0x03450fa4 in ?? ()
#8  0x03450d38 in ?? ()
#9  0x004ae3ac in ?? ()
#10 0x004ae527 in ?? ()
#11 0x0000d352 in mono_jit_runtime_invoke (method=0x102081c, obj=0x0, params=0xbffff7f8, exc=0x0) at mini.c:5791
#12 0x001a43aa in mono_runtime_invoke (method=0x102081c, obj=0x0, params=0xbffff7f8, exc=0x0) at object.c:2755
#13 0x001a6f41 in mono_runtime_exec_main (method=0x102081c, args=0x45ee00, exc=0x0) at object.c:3938
#14 0x001a6151 in mono_runtime_run_main (method=0x102081c, argc=0, argv=0xbffffa34, exc=0x0) at object.c:3560
#15 0x00069a65 in mono_jit_exec (domain=0x457e00, assembly=0x560860, argc=1, argv=0xbffffa30) at driver.c:944
#16 0x0006bfe3 in mono_main (argc=2, argv=0xbffffa2c) at driver.c:1003
#17 0x00002369 in main (argc=2, argv=0xbffffa2c) at main.c:66
(gdb)
Comment 3 Joseph Hill 2011-12-16 16:15:14 UTC
MonoDevelop info:
MonoDevelop 2.8.5
Installation UUID: ac414e5f-e7f8-4199-a499-15822d51055c
Runtime:
	Mono 2.10.7 (tarball Mon Dec  5 20:41:19 EST 2011)
	GTK 2.24.8
	GTK# (2.12.0.0)
Mono for Android: 4.0.1.234125318
Apple Developer Tools:
	 Xcode 4.2.1 (834)
	 Build 4D502
Monotouch: 5.1.1
Build information:
	Release ID: 20805000
	Git revision: c4deb930539ae87247b0bc43919dfcb98df215c2
	Build date: 2011-12-09 23:27:52+0000
Operating System:
	Mac OS X 10.7.2
	Darwin Josephs-MacBook-Air.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
Loaded assemblies:
ICSharpCode.SharpZipLib     2.84.0.0 /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/ICSharpCode.SharpZipLib/2.84.0.0__1b03e6acf1164f73/ICSharpCode.SharpZipLib.dll
Mono.Security               4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
MonoDevelop.GtkCore         2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.GtkCore/MonoDevelop.GtkCore.dll
libsteticui                 0.0.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.GtkCore/libsteticui.dll
libstetic                   0.0.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.GtkCore/libstetic.dll
Xamarin.Ide.Mac             1.0.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/Xamarin.Ide/Xamarin.Ide.Mac.dll
nunit.util                  2.4.8.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.util.dll
nunit.framework             2.4.8.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.framework.dll
nunit.core.interfaces       2.4.8.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.core.interfaces.dll
nunit.core                  2.4.8.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.core.dll
MonoDevelop.NUnit           2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/MonoDevelop.NUnit.dll
Mono.Cairo                  4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/Mono.Cairo/4.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
MonoDeveloperExtensions     2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDeveloperExtensions/MonoDeveloperExtensions.dll
Mono.Debugging              0.0.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.Debugging.dll
pango-sharp                 2.12.0.0 /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll
MonoDevelop.Moonlight       2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Moonlight/MonoDevelop.Moonlight.dll
MonoDevelop.AspNet          2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.AspNet/MonoDevelop.AspNet.dll
MonoDevelop.XmlEditor       2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.dll
MonoDevelop.Deployment      2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.dll
monodoc                     1.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/monodoc/1.0.0.0__0738eb9f132ed756/monodoc.dll
System.Drawing              4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
Mono.Cecil                  0.9.4.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.Cecil.dll
MonoDevelop.IPhone          2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.IPhone/MonoDevelop.IPhone.dll
MonoDevelop.MacDev          2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MacDev/MonoDevelop.MacDev.dll
MonoDevelop.DesignerSupport 2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.dll
MacPlatform                 2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MacPlatform.dll
MonoMac                     0.0.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoMac.dll
MonoDevelop.VersionControl  2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/MonoDevelop.VersionControl.dll
MonoDevelop.SourceEditor2   2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.SourceEditor2.dll
MonoDevelop.Debugger        2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger/MonoDevelop.Debugger.dll
MonoDevelop.MonoDroid       4.0.0.24 /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid.dll
Mono.AndroidTools           0.9.3.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoDroid/Mono.AndroidTools.dll
Xamarin.Ide                 1.0.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/Xamarin.Ide/Xamarin.Ide.dll
System.Configuration        4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
gdk-sharp                   2.12.0.0 /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll
Mono.TextEditor             1.0.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.TextEditor.dll
atk-sharp                   2.12.0.0 /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll
gtk-sharp                   2.12.0.0 /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll
Mono.Posix                  4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll
Mono.Addins                 0.6.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/Mono.Addins/0.6.0.0__0738eb9f132ed756/Mono.Addins.dll
Mono.Addins.Setup           0.6.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/Mono.Addins.Setup/0.6.0.0__0738eb9f132ed756/Mono.Addins.Setup.dll
System.Xml                  4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
System.Xml.Linq             4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
System.Core                 4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
glib-sharp                  2.12.0.0 /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll
System                      4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
MonoDevelop.Core            2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Core.dll
MonoDevelop.Ide             2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Ide.dll
MonoDevelop                 2.6.0.0  /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.exe
mscorlib                    4.0.0.0  /Library/Frameworks/Mono.framework/Versions/2.10.7/lib/mono/4.0/mscorlib.dll
Comment 4 Mikayla Hutchinson [MSFT] 2011-12-16 16:37:54 UTC
It looks like the backtracing gdb launched by Mono is hanging, and preventing MD from exiting. This is a very serious regression.
Comment 5 Zoltan Varga 2011-12-16 17:34:51 UTC
This behavior is kinda normal, if a process has gdb attached, it cannot be killed, gdb needs to be killed instead. Whenever gdb needs to launch is another matter.
Comment 6 Mikayla Hutchinson [MSFT] 2011-12-16 18:25:56 UTC
But it's Mono that attaches gdb to itself to print the native backtrace. AFAIK it's been doing this on Linux for years but was broken on Mac until very recently?
Comment 7 Rolf Bjarne Kvinge [MSFT] 2011-12-16 20:11:51 UTC
Yes, attaching to gdb was fixed on Mac after 2.10.6.

A simple test crash like the one below doesn't make gdb hang though.

class gdb {
  [System.Runtime.InteropServices.DllImport ("libc")]
  static extern int strlen (System.IntPtr foo);
  unsafe static void Main(string[] args) {
    strlen (System.IntPtr.Zero);
  }
}

There is a workaround: MONO_DEBUG=no-gdb-backtrace.
Comment 8 Mikayla Hutchinson [MSFT] 2011-12-17 17:19:15 UTC
Could you try reproducing it with Joseph's testcase? I saw it on his machine, it was pretty reliably reproducible.

See also bug 2556.
Comment 9 Mikayla Hutchinson [MSFT] 2011-12-17 17:21:11 UTC
I split the underlying crash into bug 2561. Let's keep this one for the mono/gdb issue.
Comment 10 Rolf Bjarne Kvinge [MSFT] 2011-12-19 13:02:00 UTC
I've disabled gdb backtracing in 2.10 for now (on osx).

The issue seems to be that we're filling up stdout /stderr, and gdb blocks waiting for the mono process to empty the buffers.

I'll have a deeper look later today.
Comment 11 Rolf Bjarne Kvinge [MSFT] 2011-12-19 13:03:51 UTC
For posterity:

The commit that caused this regression in the first place is: 352bb2461b2ae18dedc90786b0135505b8abb6aa.

My workaround to disable backtracing is: 6922ed8629e7d24a7f5d2794e7942321992d463e.
Comment 12 Eric Beisecker 2011-12-19 17:07:55 UTC
Verified: The Monodevelop process exits when the application Crashes.
Comment 13 Eric Beisecker 2011-12-19 17:09:20 UTC
Note: Bug Verifed using MonoFramework-MRE-2.10.8.1_1.macos10.xamarin.x86.dmg
Comment 14 Rolf Bjarne Kvinge [MSFT] 2011-12-20 06:34:43 UTC
I've now committed a real fix instead of a workaround, so subsequent 2.10 mac releases will print a gdb backtrace when mono crashes (and gdb won't hang).

Commits: 114acd66 (master) and d30b7de6 (2.10).

FWIW I could also reproduce the hang on linux, it's not mac specific.
Comment 15 Duncan Mak 2011-12-20 19:09:51 UTC
Rolf's final fix came in after we tagged 2.10.8 and 2.10.8.1, so they will not be included in those two releases, but Rolf's previous commit to disable backtrace *is* included.