Bug 1469 - Debugger crashes with System.IndexOutOfRangeException: Array index is out of range.
Summary: Debugger crashes with System.IndexOutOfRangeException: Array index is out of ...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: Trunk
Hardware: PC Linux
: High normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-10-13 05:55 UTC by Marek Safar
Modified: 2011-12-29 03:57 UTC (History)
3 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:
RESOLVED FIXED

Description Marek Safar 2011-10-13 05:55:53 UTC
An exception was thrown while dispatching a method call in the UI thread. System.IndexOutOfRangeException: Array index is out of range.
  at Mono.Debugging.Soft.SoftDebuggerBacktrace.GetEvaluationContext (Int32 frameIndex, Mono.Debugging.Client.EvaluationOptions options) [0x00006] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerBacktrace.cs:94 
  at Mono.Debugging.Evaluation.BaseBacktrace.GetFrameInfo (Int32 frameIndex, Mono.Debugging.Client.EvaluationOptions options, Boolean ignoreEvalStatus) [0x0002d] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/BaseBacktrace.cs:219 
  at Mono.Debugging.Evaluation.BaseBacktrace.GetParameters (Int32 frameIndex, Mono.Debugging.Client.EvaluationOptions options) [0x00026] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/BaseBacktrace.cs:75 
  at Mono.Debugging.Client.StackFrame.GetParameters (Mono.Debugging.Client.EvaluationOptions options) [0x00012] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Client/StackFrame.cs:134 
  at Mono.Debugging.Client.StackFrame.GetParameters () [0x00000] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Client/StackFrame.cs:127 
  at MonoDevelop.Debugger.StackTracePad.Update () [0x0004a] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:129 
  at MonoDevelop.Debugger.StackTracePad.UpdateDisplay () [0x0001b] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:107 
  at MonoDevelop.Debugger.StackTracePad.OnClassStackChanged (System.Object o, System.EventArgs args) [0x0000b] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:177 
  at __EventHandler_DelegateFactory_8.Dispatch (System.Object ) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.GuiSyncContext.AsyncDispatch (MonoDevelop.Ide.StatefulMessageHandler cb, System.Object ob) [0x0000a] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/GuiSyncContext.cs:47 
  at __EventHandler_DelegateFactory_8.ProxyCall (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at MonoDevelop.Debugger.DebuggingService.NotifyCallStackChanged () [0x0000a] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebuggingService.cs:655 
  at MonoDevelop.Debugger.DebuggingService.<SetCurrentBacktrace>m__18 () [0x00000] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebuggingService.cs:762 
  at MonoDevelop.Ide.GenericMessageContainer.Run () [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DispatchService.cs:334
Comment 1 Jeffrey Stedfast 2011-11-28 18:01:10 UTC
Is there a way to reproduce this?
Comment 2 Jeffrey Stedfast 2011-12-08 14:02:07 UTC
Fixed as best I could without a repro case.
Comment 3 Atin 2011-12-29 03:57:39 UTC
We have created a program containing index out of range exception i.e.

int [] IntegerArray = new int [5];
   
            IntegerArray[10] = 123;
   
and don't get any error in console and application gets run successfully.

Please suggest if this is a bug?