Bug 4214 - Mono Runtime is crashing when MonoDevelop debugger is Evaluating Properties that return Pointers.
Summary: Mono Runtime is crashing when MonoDevelop debugger is Evaluating Properties t...
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: All Mac OS
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-04-03 18:23 UTC by Eric Beisecker
Modified: 2012-04-04 15:11 UTC (History)
3 users (show)

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


Attachments
Sample project that exhibits the behavior (8.42 KB, application/zip)
2012-04-04 12:21 UTC, Eric Beisecker
Details


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:
RESOLVED FIXED

Description Eric Beisecker 2012-04-03 18:23:49 UTC
While debugging in MonoDevelop, hovering over a Property that returns a Pointer crashes the Mono Runtime.

Example Code (Using MonoTouch)

var filePathName = NSBundle.MainBundle.PathForResource("myPng", "png");
var imageClass = UIImage.FromFile(filePathName);
			
var cgImage = imageClass.CGImage;
// Hover over cgImage and expanding it's properties Crashes the mono Runtime.

Stack Trace:


Stacktrace:

  at iOSGLEssentials.DemoImage.LoadImage (string,bool) [0x00070] in /Users/ebeisecker/Git/Playpen/iOSGLEssentials/iOSGLEssentials/DemoImage.cs:44
  at iOSGLEssentials.OpenGLRenderer.InitWithDefaultFBO (int) [0x000df] in /Users/ebeisecker/Git/Playpen/iOSGLEssentials/iOSGLEssentials/OpenGLRenderer.cs:122
  at iOSGLEssentials.ES2Renderer.InitWithContext (MonoTouch.OpenGLES.EAGLContext,MonoTouch.CoreAnimation.CAEAGLLayer) [0x00107] in /Users/ebeisecker/Git/Playpen/iOSGLEssentials/iOSGLEssentials/ES2Renderer.cs:55
  at iOSGLEssentials.EAGLView.Initialize () [0x00088] in /Users/ebeisecker/Git/Playpen/iOSGLEssentials/iOSGLEssentials/EAGLView.cs:85
  at iOSGLEssentials.EAGLView..ctor (MonoTouch.Foundation.NSCoder) [0x00007] in /Users/ebeisecker/Git/Playpen/iOSGLEssentials/iOSGLEssentials/EAGLView.cs:65
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x00052, 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 iOSGLEssentials.Application.Main (string[]) [0x00000] in /Users/ebeisecker/Git/Playpen/iOSGLEssentials/iOSGLEssentials/Main.cs:17
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>

Native stacktrace:

	0   iOSGLEssentials                     0x00090f1c mono_handle_native_sigsegv + 284
	1   iOSGLEssentials                     0x000d639d sigabrt_signal_handler + 109
	2   libsystem_c.dylib                   0x921d459b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   libsystem_c.dylib                   0x9216fbdd abort + 167
	5   iOSGLEssentials                     0x001e8bad monoeg_g_logv + 157
	6   iOSGLEssentials                     0x001e8bdb monoeg_assertion_message + 43
	7   iOSGLEssentials                     0x000b53d5 do_invoke_method + 2373
	8   iOSGLEssentials                     0x000b571a suspend_current + 554
	9   iOSGLEssentials                     0x000b5840 suspend_current + 848
	10  iOSGLEssentials                     0x000b5840 suspend_current + 848
	11  iOSGLEssentials                     0x000b5840 suspend_current + 848
	12  iOSGLEssentials                     0x000b5840 suspend_current + 848
	13  iOSGLEssentials                     0x000b5840 suspend_current + 848
	14  iOSGLEssentials                     0x000b5840 suspend_current + 848
	15  iOSGLEssentials                     0x000b5840 suspend_current + 848
	16  iOSGLEssentials                     0x000b5840 suspend_current + 848
	17  iOSGLEssentials                     0x000b5840 suspend_current + 848
	18  iOSGLEssentials                     0x000b6074 process_event + 1812
	19  iOSGLEssentials                     0x000b6b91 process_breakpoint_inner + 1201
	20  iOSGLEssentials                     0x000b6dea process_breakpoint + 106
	21  ???                                 0xbfffcc38 0x0 + 3221212216
	22  ???                                 0x11425808 0x0 + 289560584
	23  ???                                 0x114247c4 0x0 + 289556420
	24  ???                                 0x0e2b39e0 0x0 + 237713888
	25  ???                                 0x0e2b176c 0x0 + 237705068
	26  ???                                 0x0e2b18d6 0x0 + 237705430
	27  iOSGLEssentials                     0x0000a512 mono_jit_runtime_invoke + 722
	28  iOSGLEssentials                     0x0016a4fe mono_runtime_invoke + 126
	29  iOSGLEssentials                     0x0020ef69 monotouch_ctor_trampoline + 3545
	30  UIKit                               0x023d9335 -[UIClassSwapper initWithCoder:] + 243
	31  UIKit                               0x024d7fa2 UINibDecoderDecodeObjectForValue + 2276
	32  UIKit                               0x024d76b7 -[UINibDecoder decodeObjectForKey:] + 117
	33  UIKit                               0x023d8ead -[UIRuntimeConnection initWithCoder:] + 187
	34  UIKit                               0x024d7fa2 UINibDecoderDecodeObjectForValue + 2276
	35  UIKit                               0x024d79af UINibDecoderDecodeObjectForValue + 753
	36  UIKit                               0x024d76b7 -[UINibDecoder decodeObjectForKey:] + 117
	37  UIKit                               0x023d8305 -[UINib instantiateWithOwner:options:] + 817
	38  UIKit                               0x023da010 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 157
	39  UIKit                               0x021ba14a -[UIApplication _loadMainNibFileNamed:bundle:] + 58
	40  UIKit                               0x021ba461 -[UIApplication _loadMainInterfaceFile] + 225
	41  UIKit                               0x021b97c0 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 278
	42  UIKit                               0x021c8743 -[UIApplication handleEvent:withNewEvent:] + 1027
	43  UIKit                               0x021c91f8 -[UIApplication sendEvent:] + 68
	44  UIKit                               0x021bcaa9 _UIApplicationHandleEvent + 8196
	45  GraphicsServices                    0x04819fa9 PurpleEventCallback + 1274
	46  CoreFoundation                      0x011bf1c5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
	47  CoreFoundation                      0x01124022 __CFRunLoopDoSource1 + 146
	48  CoreFoundation                      0x0112290a __CFRunLoopRun + 2218
	49  CoreFoundation                      0x01121db4 CFRunLoopRunSpecific + 212
	50  CoreFoundation                      0x01121ccb CFRunLoopRunInMode + 123
	51  UIKit                               0x021b92a7 -[UIApplication _run] + 576
	52  UIKit                               0x021baa9b UIApplicationMain + 1175
	53  ???                                 0x0e2aba85 0x0 + 237681285
	54  ???                                 0x0e2a9a90 0x0 + 237673104
	55  ???                                 0x0e014e48 0x0 + 234966600
	56  ???                                 0x0e014f9e 0x0 + 234966942
	57  iOSGLEssentials                     0x0000a512 mono_jit_runtime_invoke + 722
	58  iOSGLEssentials                     0x0016a4fe mono_runtime_invoke + 126
	59  iOSGLEssentials                     0x0016e644 mono_runtime_exec_main + 420
	60  iOSGLEssentials                     0x00173a65 mono_runtime_run_main + 725
	61  iOSGLEssentials                     0x00067715 mono_jit_exec + 149
	62  iOSGLEssentials                     0x00202a1d main + 3469
	63  iOSGLEssentials                     0x00003565 start + 53

=================================================================
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.
=================================================================
Comment 1 Zoltan Varga 2012-04-04 03:44:36 UTC
Could you attach a complete test project ?
Comment 2 Eric Beisecker 2012-04-04 12:21:03 UTC
Created attachment 1621 [details]
Sample project that exhibits the behavior
Comment 3 Zoltan Varga 2012-04-04 15:11:58 UTC
Fixed in master/mobile-master.