Bug 8772 - Debugger SIGSEGV during evaluation
Summary: Debugger SIGSEGV during evaluation
Status: RESOLVED FEATURE
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.99.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2012-12-05 11:07 UTC by Marek Safar
Modified: 2012-12-10 11:30 UTC (History)
1 user (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:
RESOLVED FEATURE

Description Marek Safar 2012-12-05 11:07:52 UTC
Stacktrace:

  at (wrapper managed-to-native) MonoTouch.AudioUnit.AudioUnit.AudioComponentInstanceGetComponent (intptr) <IL 0x00025, 0xffffffff>
  at MonoTouch.AudioUnit.AudioUnit.get_Component () [0x00000] in /Developer/MonoTouch/Source/monotouch/src/shared/AudioUnit/AudioUnit.cs:181
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__ (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
  at MonoTouchFixtures.AudioUnit.___AUGraphTest.BasicOperations () [0x00025] in /Developer/MonoTouch/Source/monotouch/tests/monotouch-test/AudioUnit/AUGraphTest.cs:29
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <IL 0x00030, 0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x000c0] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:228
  at System.Reflection.MethodBase.Invoke (object,object[]) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MethodBase.cs:98
  at NUnit.Framework.Internal.Reflect.InvokeMethod (System.Reflection.MethodInfo,object,object[]) [0x00027] in /Developer/MonoTouch/Source/NUnitLite/NUnitLite-0.8.0/src/framework/Internal/Reflect.cs:217
  at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute (NUnit.Framework.Internal.TestExecutionContext) [0x00000] in /Developer/MonoTouch/Source/NUnitLite/NUnitLite-0.8.0/src/framework/Internal/Commands/TestMethodCommand.cs:59
  at NUnit.Framework.Internal.Commands.SetUpTearDownCommand.Execute (NUnit.Framework.Internal.TestExecutionContext) [0x00007] in /Developer/MonoTouch/Source/NUnitLite/NUnitLite-0.8.0/src/framework/Internal/Commands/SetUpTearDownCommand.cs:84
  at NUnit.Framework.Internal.WorkItems.SimpleWorkItem.PerformWork () [0x00000] in /Developer/MonoTouch/Source/NUnitLite/NUnitLite-0.8.0/src/framework/Internal/WorkItems/SimpleWorkItem.cs:48
  at NUnit.Framework.Internal.WorkItems.WorkItem.RunTest () [0x00053] in /Developer/MonoTouch/Source/NUnitLite/NUnitLite-0.8.0/src/framework/Internal/WorkItems/WorkItem.cs:218
  at NUnit.Framework.Internal.WorkItems.WorkItem.Execute () [0x00074] in /Developer/MonoTouch/Source/NUnitLite/NUnitLite-0.8.0/src/framework/Internal/WorkItems/WorkItem.cs:165
  at MonoTouch.NUnit.UI.TouchRunner.Run (NUnit.Framework.Internal.Test) [0x0004e] in /Developer/MonoTouch/Source/Touch.Unit/NUnitLite/TouchRunner/TouchRunner.cs:442
  at MonoTouch.NUnit.UI.TestCaseElement.Run () [0x00000] in /Developer/MonoTouch/Source/Touch.Unit/NUnitLite/TouchRunner/TestCaseElement.cs:63
  at MonoTouch.NUnit.UI.TestCaseElement/<TestCaseElement>c__AnonStorey4.<>m__6 () [0x00026] in /Developer/MonoTouch/Source/Touch.Unit/NUnitLite/TouchRunner/TestCaseElement.cs:42
  at MonoTouch.Dialog.StringElement.Selected (MonoTouch.Dialog.DialogViewController,MonoTouch.UIKit.UITableView,MonoTouch.Foundation.NSIndexPath) [0x0000b] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/Elements.cs:689
  at MonoTouch.Dialog.DialogViewController.Selected (MonoTouch.Foundation.NSIndexPath) [0x00029] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:518
  at MonoTouch.Dialog.DialogViewController/Source.RowSelected (MonoTouch.UIKit.UITableView,MonoTouch.Foundation.NSIndexPath) [0x00019] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:364
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object_object (object,intptr,intptr,intptr) <IL 0x0005a, 0xffffffff>
  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x0009f, 0xffffffff>
  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
  at monotouchtest.Application.Main (string[]) [0x00000] in /Developer/MonoTouch/Source/monotouch/tests/monotouch-test/Main.cs:16
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>

Native stacktrace:

	0   monotouchtest                       0x00091acc mono_handle_native_sigsegv + 284
	1   monotouchtest                       0x00005de8 mono_sigsegv_signal_handler + 248
	2   libsystem_c.dylib                   0x993b059b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   ???                                 0x11d12a1f 0x0 + 298920479
	5   ???                                 0x11d12958 0x0 + 298920280
	6   ???                                 0x11d12310 0x0 + 298918672
	7   monotouchtest                       0x0000a1a2 mono_jit_runtime_invoke + 722
	8   monotouchtest                       0x0016c91e mono_runtime_invoke + 126
	9   monotouchtest                       0x000b6845 do_invoke_method + 1685
	10  monotouchtest                       0x000b6ed3 suspend_current + 627
	11  monotouchtest                       0x000b7022 suspend_current + 962
	12  monotouchtest                       0x000b7022 suspend_current + 962
	13  monotouchtest                       0x000b7022 suspend_current + 962
	14  monotouchtest                       0x000b7022 suspend_current + 962
	15  monotouchtest                       0x000b7022 suspend_current + 962
	16  monotouchtest                       0x000b7022 suspend_current + 962
	17  monotouchtest                       0x000b7022 suspend_current + 962
	18  monotouchtest                       0x000b7022 suspend_current + 962
	19  monotouchtest                       0x000b7022 suspend_current + 962
	20  monotouchtest                       0x000b7022 suspend_current + 962
	21  monotouchtest                       0x000b7864 process_event + 1812
	22  monotouchtest                       0x000b8357 process_breakpoint_inner + 1159
	23  monotouchtest                       0x000b85da process_breakpoint + 106
	24  ???                                 0xbfffd748 0x0 + 3221215048
	25  ???                                 0x09fbfd98 0x0 + 167509400
	26  monotouchtest                       0x0000a1a2 mono_jit_runtime_invoke + 722
	27  monotouchtest                       0x0016c91e mono_runtime_invoke + 126
	28  monotouchtest                       0x001731d8 mono_runtime_invoke_array + 1544
	29  monotouchtest                       0x00117cc2 ves_icall_InternalInvoke + 1090
	30  ???                                 0x11d10e55 0x0 + 298913365
	31  ???                                 0x11d10b28 0x0 + 298912552
	32  ???                                 0x11d107ba 0x0 + 298911674
	33  ???                                 0x11d105d0 0x0 + 298911184
	34  ???                                 0x11d103c8 0x0 + 298910664
	35  ???                                 0x11d10058 0x0 + 298909784
	36  ???                                 0x11af7ede 0x0 + 296713950
	37  ???                                 0x11af794b 0x0 + 296712523
	38  ???                                 0x11af76e0 0x0 + 296711904
	39  ???                                 0x11af51ee 0x0 + 296702446
	40  ???                                 0x11af4fa0 0x0 + 296701856
	41  ???                                 0x117a0df8 0x0 + 293211640
	42  ???                                 0x1179eb06 0x0 + 293202694
	43  ???                                 0x1179eaaf 0x0 + 293202607
	44  ???                                 0x1179e83e 0x0 + 293201982
	45  ???                                 0x1179e9bd 0x0 + 293202365
	46  monotouchtest                       0x0000a1a2 mono_jit_runtime_invoke + 722
	47  monotouchtest                       0x0016c91e mono_runtime_invoke + 126
	48  monotouchtest                       0x0020f4f6 monotouch_trampoline + 3686
	49  UIKit                               0x022f25c5 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1164
	50  UIKit                               0x022f27fa -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 201
	51  Foundation                          0x0175985d __NSFireDelayedPerform + 389
	52  CoreFoundation                      0x011b2936 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
	53  CoreFoundation                      0x011b23d7 __CFRunLoopDoTimer + 551
	54  CoreFoundation                      0x01115790 __CFRunLoopRun + 1888
	55  CoreFoundation                      0x01114d84 CFRunLoopRunSpecific + 212
	56  CoreFoundation                      0x01114c9b CFRunLoopRunInMode + 123
	57  GraphicsServices                    0x048327d8 GSEventRunModal + 190
	58  GraphicsServices                    0x0483288a GSEventRun + 103
	59  UIKit                               0x02261626 UIApplicationMain + 1163
	60  ???                                 0x0e3a8195 0x0 + 238715285
	61  ???                                 0x0e3a5d70 0x0 + 238706032
	62  ???                                 0x0e3a50e0 0x0 + 238702816
	63  ???                                 0x0e3a5236 0x0 + 238703158
	64  monotouchtest                       0x0000a1a2 mono_jit_runtime_invoke + 722
	65  monotouchtest                       0x0016c91e mono_runtime_invoke + 126
	66  monotouchtest                       0x00170b14 mono_runtime_exec_main + 420
	67  monotouchtest                       0x00175f05 mono_runtime_run_main + 725
	68  monotouchtest                       0x00067685 mono_jit_exec + 149
	69  monotouchtest                       0x00204815 main + 2005
	70  monotouchtest                       0x000031d5 start + 53

=================================================================
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.
=================================================================
Comment 1 Marek Safar 2012-12-05 11:08:44 UTC
// unit test to reproduce it

using NUnit.Framework;
using MonoTouch.Foundation;
using MonoTouch.AudioUnit;

namespace MonoTouchFixtures.AudioUnit {
	
	[TestFixture]
	[Preserve (AllMembers = true)]
	public class ___AUGraphTest
	{
		[Test]
		public void BasicOperations ()
		{
			using (var aug = new AUGraph ())
			{
				aug.Open ();

				var node = aug.AddNode (AudioComponentDescription.CreateOutput (AudioTypeOutput.Generic));
				var info = aug.GetNodeInfo (node); // SET a breakpoint here
				return; // now hover over info
			}
		}
	}
}
Comment 2 Marek Safar 2012-12-05 11:09:30 UTC
// unit test to reproduce it

using NUnit.Framework;
using MonoTouch.Foundation;
using MonoTouch.AudioUnit;

namespace MonoTouchFixtures.AudioUnit {
	
	[TestFixture]
	[Preserve (AllMembers = true)]
	public class ___AUGraphTest
	{
		[Test]
		public void BasicOperations ()
		{
			using (var aug = new AUGraph ())
			{
				aug.Open ();

				var node = aug.AddNode (AudioComponentDescription.CreateOutput (AudioTypeOutput.Generic));
				var info = aug.GetNodeInfo (node); // SET a breakpoint here
				return; // now hover over info
			}
		}
	}
}
Comment 3 Zoltan Varga 2012-12-07 08:52:11 UTC
I can't reproduce this. What mt version are you using ? Its also possible that this is a bug in some native code/mt class libraries which gets invoked by the debugger.
Comment 4 Marek Safar 2012-12-10 11:30:13 UTC
Yes it was actually wrong pinvoke, sorry for the noise