Bug 3043 - Debugger throws / app crash when hitting a breakpoint
Summary: Debugger throws / app crash when hitting a breakpoint
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: 5.0
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
: 3048 ()
Depends on:
Blocks:
 
Reported: 2012-01-24 14:44 UTC by Sebastien Pouliot
Modified: 2014-03-27 10:00 UTC (History)
6 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 Developer Community or GitHub 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:
VERIFIED FIXED

Description Sebastien Pouliot 2012-01-24 14:44:48 UTC
Using MD 2.8.6.2 and MonoTouch master (still showing 5.1.3) but pretty close to released 5.2 at the moment. I'll update to 2.8.6.3 to see if this occurs as well.

I build monotouchtest (from git) and start it on device (default options). It executes normally but crash when it hits a breakpoint

System.NotImplementedException: The requested feature is not implemented.
  at Mono.Debugger.Soft.CustomAttributeDataMirror.Create (Mono.Debugger.Soft.VirtualMachine vm, Mono.Debugger.Soft.CattrInfo[] info) [0x00189] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/CustomAttributeDataMirror.cs:140 
  at Mono.Debugger.Soft.TypeMirror.GetCAttrs (Mono.Debugger.Soft.TypeMirror type, Boolean inherit) [0x00057] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeMirror.cs:641 
  at Mono.Debugger.Soft.TypeMirror.GetCustomAttributes (Boolean inherit) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeMirror.cs:625 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.OnGetTypeDisplayData (Mono.Debugging.Evaluation.EvaluationContext gctx, System.Object type) [0x0001e] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:829 * Assertion: should not be reached at ../../../../../mono/mono/mini/debugger-agent.c:5183

Stacktrace:


Native stacktrace:

	0   monotouchtest                       0x004e6910 mono_handle_native_sigsegv + 280
	1   monotouchtest                       0x00509450 sigabrt_signal_handler + 180
	2   libsystem_c.dylib                   0x349d6539 _sigtramp + 48
	3   libsystem_c.dylib                   0x349cbf5b pthread_kill + 54
	4   libsystem_c.dylib                   0x349c4feb abort + 94
	5   monotouchtest                       0x005c23f0 monoeg_g_logv + 152
	6   monotouchtest                       0x005c243c monoeg_assertion_message + 52
	7   monotouchtest                       0x004ff4d8 add_var + 180
	8   monotouchtest                       0x004ff8c8 frame_commands + 964
	9   monotouchtest                       0x004f78d8 debugger_thread + 34840
	10  monotouchtest                       0x005b65f0 thread_start_routine + 152
	11  monotouchtest                       0x005d0ec0 GC_start_routine + 92
	12  libsystem_c.dylib                   0x3498dc1d _pthread_start + 320
	13  libsystem_c.dylib                   0x3498dad8 thread_start + 8

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

More info

MonoDevelop 2.8.6.2
Installation UUID: ad97da07-e884-4ee6-8dcb-27f0ada6432b
Runtime:
	Mono 2.10.8.1 (tarball Mon Dec 19 15:17:20 EST 2011)
	GTK 2.24.8
	GTK# (2.12.0.0)
Mono for Android not installed
Apple Developer Tools:
	 Xcode 4.2 (828)
	 Build 4C199
Monotouch: 5.1.3
Build information:
	Release ID: 20806002
	Git revision: c83797aec2a7fb04edaf17ef0c697e27a8656aed
	Build date: 2012-01-18 22:20:14+0000
Operating System:
	Mac OS X 10.6.8
	Darwin imac.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
Loaded assemblies:
MonoDevelop.RegexToolkit                   2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.RegexToolkit/MonoDevelop.RegexToolkit.dll
System.Web                                 4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
ICSharpCode.Decompiler                     1.0.4400.31151 /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/ICSharpCode.Decompiler.dll
MonoDevelop.Database.CodeGenerator         2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.CodeGenerator.dll
MonoDevelop.Debugger.Soft.AspNet           0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft.AspNet.dll
MonoDevelop.Debugger.Soft.Moonlight        0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft.Moonlight.dll
MonoDevelop.Debugger.Soft.MonoMac          0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoDevelop.Debugger.Soft.MonoMac.dll
MonoDeveloperExtensions_nunit              0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDeveloperExtensions/MonoDeveloperExtensions_nunit.dll
MonoDevelop.Database.ConnectionManager     2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.ConnectionManager.dll
mdhost                                     1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/mdhost.exe
System.Runtime.Remoting                    4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/System.Runtime.Remoting/4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
MonoDevelop.CodeMetrics                    2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.CodeMetrics/MonoDevelop.CodeMetrics.dll
MonoDevelop.AspNet.Mvc                     2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.AspNet.Mvc/MonoDevelop.AspNet.Mvc.dll
MonoDevelop.WebReferences                  2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.WebReferences/MonoDevelop.WebReferences.dll
MonoDevelop.VersionControl.Subversion.Unix 2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/MonoDevelop.VersionControl.Subversion.Unix.dll
MonoDevelop.VersionControl.Subversion      2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/MonoDevelop.VersionControl.Subversion.dll
Sharpen                                    1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/Sharpen.dll
NGit                                       1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/NGit.dll
MonoDevelop.VersionControl.Git             2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/MonoDevelop.VersionControl.Git.dll
MonoDevelop.Debugger.Soft.IPhone           0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.IPhone/MonoDevelop.Debugger.Soft.IPhone.dll
MonoDevelop.Debugger.Soft.MonoDroid        0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoDroid/MonoDevelop.Debugger.Soft.MonoDroid.dll
MonoDevelop.Debugger.Soft                  2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft.dll
Mono.Debugger.Soft                         0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/Mono.Debugger.Soft.dll
Mono.Debugging.Soft                        0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft.dll
MonoDevelop.DocFood                        1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.DocFood.dll
I18N.Rare                                  4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/I18N.Rare/4.0.0.0__0738eb9f132ed756/I18N.Rare.dll
I18N.CJK                                   4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/I18N.CJK/4.0.0.0__0738eb9f132ed756/I18N.CJK.dll
I18N.MidEast                               4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/I18N.MidEast/4.0.0.0__0738eb9f132ed756/I18N.MidEast.dll
I18N.Other                                 4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/I18N.Other/4.0.0.0__0738eb9f132ed756/I18N.Other.dll
I18N.West                                  4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/I18N.West/4.0.0.0__0738eb9f132ed756/I18N.West.dll
I18N                                       4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/I18N/4.0.0.0__0738eb9f132ed756/I18N.dll
MonoDevelop.HexEditor                      2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.HexEditor.dll
MonoDevelop.AssemblyBrowser                2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.AssemblyBrowser.dll
MonoDevelop.Database.Sql.SqlServer         2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.SqlServer.dll
MonoDevelop.Database.Sql.Sqlite            2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.Sqlite.dll
MonoDevelop.Database.Sql.MySql             2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql.dll
MonoDevelop.TextTemplating                 2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.TextTemplating/MonoDevelop.TextTemplating.dll
Mono.TextTemplating                        0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.TextTemplating/Mono.TextTemplating.dll
MonoDevelop.Database.Sql.Npgsql            2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.Npgsql.dll
MonoDevelop.Database.Designer              2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Designer.dll
MonoDevelop.Database.Query                 2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Query.dll
MonoDevelop.Database.Components            2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Components.dll
MonoDevelop.Database.Sql                   2.2.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.dll
MonoDevelop.Gettext                        2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Gettext/MonoDevelop.Gettext.dll
ChangeLogAddIn                             2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/ChangeLogAddIn/ChangeLogAddIn.dll
ILAsmBinding                               2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/ILAsmBinding.dll
OldNRefactory                              2.1.1.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/OldNRefactory.dll
ICSharpCode.NRefactory                     1.0.4400.31148 /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/ICSharpCode.NRefactory.dll
MonoDevelop.CBinding                       2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/MonoDevelop.CBinding.dll
MonoDevelop.Deployment.Linux               2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.Linux.dll
MonoDevelop.Projects.Formats.MSBuild       1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Projects.Formats.MSBuild.exe
MonoDevelop.Autotools                      2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Autotools/MonoDevelop.Autotools.dll
MonoDevelop.MonoMac                        2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoDevelop.MonoMac.dll
MonoDevelop.MsVisualStudio                 2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MsVisualStudio/MonoDevelop.MsVisualStudio.dll
MonoDevelop.VBNetBinding                   2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/MonoDevelop.VBNetBinding.dll
MonoDevelop.CSharpBinding                  2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/MonoDevelop.CSharpBinding.dll
MonoDevelop.Refactoring                    2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Refactoring/MonoDevelop.Refactoring.dll
Mono.Security                              4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
ICSharpCode.SharpZipLib                    2.84.0.0       /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/ICSharpCode.SharpZipLib/2.84.0.0__1b03e6acf1164f73/ICSharpCode.SharpZipLib.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.8.1/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.8.1/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.8.1/lib/mono/gac/monodoc/1.0.0.0__0738eb9f132ed756/monodoc.dll
System.Drawing                             4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/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.8.1/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.8.1/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.8.1/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll
glib-sharp                                 2.12.0.0       /Library/Frameworks/Mono.framework/Versions/2.10.8.1/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll
gtk-sharp                                  2.12.0.0       /Library/Frameworks/Mono.framework/Versions/2.10.8.1/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.8.1/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.8.1/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.8.1/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.8.1/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.8.1/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.8.1/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
System                                     4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.8.1/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.8.1/lib/mono/4.0/mscorlib.dll
Comment 1 Sebastien Pouliot 2012-01-24 14:55:32 UTC
I get the same exception with my mac book air (lion) using MD 2.8.5 and a week old branch of MonoTouch.

Also updating the imac for MD 2.8.6.3 did not change the error.

In all cases the application runs fine without a breakpoint. 

With a breakpoint things runs fine until the breakpoint is hit, MD updates the editor (to show the breakpoint was hit) and, less than half a second later the crash occurs.
Comment 2 Sebastien Pouliot 2012-01-24 15:26:36 UTC
I don't get the crash if I put a breakpoint in AppDelegate. I can step over each line correctly. 

So something occurs later that make the debugger misbehave. That would explain why I'm pretty sure I used debugging on device in the last week without hitting that crash.
Comment 3 Mikayla Hutchinson [MSFT] 2012-01-24 15:37:10 UTC
This looks like an internal sdb error. When getting the list of locals, it appears to be trying to access a dead variable and hitting the code:
case MONO_DEBUG_VAR_ADDRESS_MODE_DEAD:
	NOT_IMPLEMENTED;

I don't know why the NIEX is being returned to MD's GetCustomAttributes call instead of the GetLocal call, maybe threading.
Comment 4 Mikayla Hutchinson [MSFT] 2012-01-24 17:24:59 UTC
Looking more closely, it's possible that MonoDevelop is requesting a dead local by index.
Comment 5 Zoltan Varga 2012-01-25 04:40:14 UTC
This exception:

System.NotImplementedException: The requested feature is not implemented.
  at Mono.Debugger.Soft.CustomAttributeDataMirror.Create

should be fixed now on mobile-master.

As for the assert, it happens because a JIT optimization which is supposed to be disable is not. The following workaround fixes it:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

diff --git a/mono/mini/liveness.c b/mono/mini/liveness.c
index 36718a8..4cbca24 100644
--- a/mono/mini/liveness.c
+++ b/mono/mini/liveness.c
@@ -535,7 +535,7 @@ mono_analyze_liveness (MonoCompile *cfg)
 				 * registers.
 				 */
 				 if (!cfg->disable_deadce_vars && !(cfg->generic_sharing_context && mono_method_signature (cfg->method)->hasthis && cfg->varinfo [vi->idx] == cfg->args [0]))
-					 cfg->varinfo [vi->idx]->flags |= MONO_INST_IS_DEAD;
+					 ;//cfg->varinfo [vi->idx]->flags |= MONO_INST_IS_DEAD;
 			}
 			vi->range.first_use.abs_pos = 0;
 		}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Comment 6 Rolf Bjarne Kvinge [MSFT] 2012-01-25 07:33:00 UTC
*** Bug 3048 has been marked as a duplicate of this bug. ***
Comment 7 Rolf Bjarne Kvinge [MSFT] 2012-01-25 08:46:01 UTC
Necessary step to reproduce: open the call stack in MD when the bp is hit.
Comment 8 Sebastien Pouliot 2012-01-25 09:08:47 UTC
It will crash if the "Call stack" pad in MD is already open (e.g. saved in your defaults) but does not crash when we start the application (i.e. smaller call stack at AppDelegate.FinishedLaunching).

Zoltan's patch makes this go away (i.e. it works with the Call stack pad).

I assume my pad-configurations was reused between older MD versions I re-installed. So that, at least, explains why this has not been reported before and why I remembered debugging on devices more recently than the revisions I rebuilt (and confirmed the bug present).
Comment 9 Zoltan Varga 2012-01-25 11:21:49 UTC
This is the same issue as 3051, the system libs are not aot-ed using 'soft-debug', so some JIT optimizations are enabled which confuse sdb. It looks like md queries method arguments even for frames which are not visible since they are not user code.
Comment 10 Zoltan Varga 2012-01-25 11:45:17 UTC
Fixed in master/mobile-master. However, I think that compiling some assemblies without 'soft-debug' is very problematic, the sdb code was never written with this case in mind, so there could be other, similar problems everywhere, like #3051. I'm not sure what advantage not using 'soft-debug' has anyway.
Comment 11 Mikayla Hutchinson [MSFT] 2012-01-25 12:34:38 UTC
MD examines the non-user frames so that users can see the arguments that the user code passed to those methods. I suppose we could disable this, but it does have some value. However, we should probably disable for non-user frames that are not called by a user frame. In fact, maybe we should do something like VS does and flatten such frames into [external code] placeholders.

I think the reason for not using soft-debug for SDK assemblies is that it substantially increases the binary size and therefore the deploy time?
Comment 12 Sebastien Pouliot 2012-01-26 15:32:43 UTC
I confirm this is working on master (27ac6a871fba0128c3f7151a3b52f16835c25b14)
Comment 13 Sebastien Pouliot 2012-01-26 19:45:32 UTC
confirmed to work on 5.2.0 branch too (87273dd79c1dd1412b4b5c82951edda53fd1fd9e)
Comment 14 Saurabh 2014-03-27 10:00:09 UTC
I have checked this issue with latest master builds:

=== Xamarin Studio ===

Version 4.2.4 (build 266)
Installation UUID: b1fc3b76-cf00-405e-a0a1-3839ac11fe6d
Runtime:
	Mono 3.2.6 ((no/9b58377)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 302060000

=== Apple Developer Tools ===

Xcode 5.0 (3332.22)
Build 5A1412

=== Xamarin.iOS ===

Version: 7.2.2.14 (Enterprise Edition)
Hash: 16bef0b
Branch: 
Build date: 2014-03-20 12:01:19-0400

=== Build Information ===

Release ID: 402040266
Git revision: 57fa6b7639703775ae1d5c46536e42ab424cb177
Build date: 2014-03-20 12:34:27-04
Xamarin addins: eee141c29724a19529e77b8e743086d95b29f5ba

=== Operating System ===

Mac OS X 10.9.3
Darwin Apples-iMac.local 13.2.0 Darwin Kernel Version 13.2.0
    Tue Mar 11 22:16:58 PDT 2014
    root:xnu-2422.100.4~2/RELEASE_X86_64 x86_64


Now, application does not crash on hitting breakpoints. 

Screencast: http://screencast.com/t/48cMYXnyrm

Hence, closing this issue.