Bug 26869 - Debugger crashes when it hits a debug point
Summary: Debugger crashes when it hits a debug point
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger (show other bugs)
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2015-02-09 11:27 UTC by Paul Johnson
Modified: 2015-11-27 09:00 UTC (History)
4 users (show)

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


Attachments

Description Paul Johnson 2015-02-09 11:27:02 UTC
When the debugger hits a breakpoint, I'm getting the following throwback

2015-02-09 16:20:15.694 ftrack2[2843:1221991] critical: Stacktrace:

2015-02-09 16:20:15.694 ftrack2[2843:1221991] critical: 
Native stacktrace:

2015-02-09 16:20:15.942 ftrack2[2843:1221991] critical: 	0   ftrack2                             0x000000010352eb90 mono_handle_native_sigsegv + 268
2015-02-09 16:20:15.942 ftrack2[2843:1221991] critical: 	1   ftrack2                             0x00000001035389d0 mono_sigsegv_signal_handler + 316
2015-02-09 16:20:15.942 ftrack2[2843:1221991] critical: 	2   libsystem_platform.dylib            0x000000019948c95c _sigtramp + 68
2015-02-09 16:20:15.943 ftrack2[2843:1221991] critical: 	3   ftrack2                             0x0000000103516f00 buffer_add_value_full + 776
2015-02-09 16:20:15.943 ftrack2[2843:1221991] critical: 	4   ftrack2                             0x000000010351f744 add_var + 472
2015-02-09 16:20:15.943 ftrack2[2843:1221991] critical: 	5   ftrack2                             0x000000010351ee40 frame_commands + 712
2015-02-09 16:20:15.943 ftrack2[2843:1221991] critical: 	6   ftrack2                             0x0000000103518ca4 debugger_thread + 1744
2015-02-09 16:20:15.943 ftrack2[2843:1221991] critical: 	7   ftrack2                             0x00000001035f85c4 inner_start_thread + 192
2015-02-09 16:20:15.944 ftrack2[2843:1221991] critical: 	8   libsystem_pthread.dylib             0x0000000199493e80 <redacted> + 164
2015-02-09 16:20:15.944 ftrack2[2843:1221991] critical: 	9   libsystem_pthread.dylib             0x0000000199493ddc <redacted> + 0
2015-02-09 16:20:15.944 ftrack2[2843:1221991] critical: 	10  libsystem_pthread.dylib             0x0000000199490fb0 thread_start + 4
2015-02-09 16:20:15.944 ftrack2[2843:1221991] critical: 
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

The logs are showing this

ERROR [2015-02-09 16:20:14Z]: An exception was thrown while dispatching a method call in the UI thread. Mono.Debugger.Soft.VMDisconnectedException: Exception of type 'Mono.Debugger.Soft.VMDisconnectedException' was thrown.
  at Mono.Debugger.Soft.Connection.SendReceive (CommandSet command_set, Int32 command, Mono.Debugger.Soft.PacketWriter packet) [0x0011f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:1547 
  at Mono.Debugger.Soft.Connection.StackFrame_GetValues (Int64 thread_id, Int64 id, System.Int32[] pos) [0x00026] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:2366 
  at Mono.Debugger.Soft.StackFrame.GetValues (Mono.Debugger.Soft.LocalVariable[] vars) [0x000a4] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugger.Soft/Mono.Debugger.Soft/StackFrame.cs:139 
  at Mono.Debugging.Soft.LocalVariableBatch.GetValue (Mono.Debugger.Soft.LocalVariable variable) [0x0002a] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/LocalVariableBatch.cs:50 
  at Mono.Debugging.Soft.VariableValueReference.get_Value () [0x00031] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/VariableValueReference.cs:97 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.GetHoistedLocalVariables (Mono.Debugging.Soft.SoftEvaluationContext cx, Mono.Debugging.Evaluation.ValueReference vthis) [0x00014] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:649 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor+<GetLocalVariables>c__Iterator0.MoveNext () [0x00120] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:781 
  at System.Collections.Generic.List`1[Mono.Debugging.Evaluation.ValueReference].AddEnumerable (IEnumerable`1 enumerable) [0x00013] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/corlib/System.Collections.Generic/List.cs:146 
  at System.Collections.Generic.List`1[Mono.Debugging.Evaluation.ValueReference].AddRange (IEnumerable`1 collection) [0x0002a] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/corlib/System.Collections.Generic/List.cs:159 
  at Mono.Debugging.Evaluation.BaseBacktrace.GetFrameInfo (Int32 frameIndex, Mono.Debugging.Client.EvaluationOptions options, Boolean ignoreEvalStatus) [0x0006d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugging/Mono.Debugging.Evaluation/BaseBacktrace.cs:240 
  at Mono.Debugging.Evaluation.BaseBacktrace.GetParameters (Int32 frameIndex, Mono.Debugging.Client.EvaluationOptions options) [0x0002b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugging/Mono.Debugging.Evaluation/BaseBacktrace.cs:76 
  at Mono.Debugging.Client.StackFrame.GetParameters (Mono.Debugging.Client.EvaluationOptions options) [0x00025] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/external/debugger-libs/Mono.Debugging/Mono.Debugging.Client/StackFrame.cs:144 
  at MonoDevelop.Debugger.StackTracePad.EvaluateMethodName (Mono.Debugging.Client.StackFrame frame, Mono.Debugging.Client.EvaluationOptions options) [0x00014] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:181 
  at MonoDevelop.Debugger.StackTracePad.Update () [0x00083] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:217 
  at MonoDevelop.Debugger.StackTracePad.UpdateDisplay () [0x0001d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:173 
  at MonoDevelop.Debugger.StackTracePad.OnClassStackChanged (System.Object o, System.EventArgs args) [0x00002] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:307 
  at (wrapper delegate-invoke) <Module>:invoke_void_object_EventArgs (object,System.EventArgs)
  at MonoDevelop.Debugger.DebuggingService.NotifyCallStackChanged () [0x00016] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebuggingService.cs:735 
  at MonoDevelop.Debugger.DebuggingService.<SetCurrentBacktrace>m__A () [0x00001] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebuggingService.cs:853 
  at MonoDevelop.Ide.GenericMessageContainer.Run () [0x00008] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/0bc7d355/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DispatchService.cs:452 
Caller stack not available. Define the environment variable MONODEVELOP_DISPATCH_DEBUG to enable caller stack capture.
WARNING [2015-02-09 16:20:15Z]: Invalid breakpoint :Mono.Debugging.Client.Breakpoint in line 1267
WARNING [2015-02-09 16:20:15Z]: Invalid breakpoint :Mono.Debugging.Client.Breakpoint in line 1654
WARNING [2015-02-09 16:20:15Z]: Invalid breakpoint :Mono.Debugging.Client.Breakpoint in line 1652
WARNING [2015-02-09 16:20:15Z]: Invalid breakpoint :Mono.Debugging.Client.Breakpoint in line 564
WARNING [2015-02-09 16:20:15Z]: Invalid breakpoint :Mono.Debugging.Client.Breakpoint in line 2345
WARNING [2015-02-09 16:20:15Z]: Invalid breakpoint :Mono.Debugging.Client.Breakpoint in line 1462

The final warnings seem to be in the debugger itself and there are plenty of them!

=== Xamarin Studio ===

Version 5.7.1 (build 17)
Installation UUID: f3d1a29c-1ba2-4a83-a193-1087efe91a85
Runtime:
	Mono 3.12.0 ((detached/de2f33f)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000076

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.6.1.20 (Business Edition)
Hash: 3b3ef43
Branch: 
Build date: 2015-01-24 09:42:21-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/PFJ/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== Xamarin.Mac ===

Version: 1.12.0.4 (Business Edition)

=== Build Information ===

Release ID: 507010017
Git revision: 0bc7d3550b6b088ac25b08dcf7bbe73bcc8658b3
Build date: 2015-02-03 19:43:29-05
Xamarin addins: f7b7d34419c9ec24501bfa7c658e80a6305613e0

=== Operating System ===

Mac OS X 10.10.3
Darwin Pauls-iMac.local 14.3.0 Darwin Kernel Version 14.3.0
    Thu Jan 22 23:54:42 PST 2015
    root:xnu-2782.20.26~5/RELEASE_X86_64 x86_64
Comment 1 Jeffrey Stedfast 2015-02-09 11:33:06 UTC
This looks like the *debugee* is crashing, not Xamarin Studio (right?)
Comment 2 Paul Johnson 2015-02-09 11:34:04 UTC
could well be - I'm seeing it in XS so not sure, but it looks like.
Comment 3 Zoltan Varga 2015-02-09 18:38:16 UTC
How can I reproduce this ?
Comment 4 Paul Johnson 2015-02-09 19:11:35 UTC
The way I did it was to have Xam studio running on the alpha channel on my mac, add some break points to an iOS app (first line in AppDelegate.cs did it for me within the FInishLoading method) and bang.

Note You need to log in before you can comment on or make changes to this bug.