Bug 11559 - ERR_UNLOADED when stepping
Summary: ERR_UNLOADED when stepping
Status: RESOLVED DUPLICATE of bug 18100
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-04-03 16:40 UTC by Mikayla Hutchinson [MSFT]
Modified: 2014-03-05 14:38 UTC (History)
4 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 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 DUPLICATE of bug 18100

Description Mikayla Hutchinson [MSFT] 2013-04-03 16:40:44 UTC
Debugging MD in MD, on mono-2-10/fa485f3, sometimes "step into" fails apparently randomly. There is no actual assembly unload event AFAICT.

Also, when the stepping command fails, MD just prints the exception, and there is no indication in the UI that an error occurred.

ERROR [2013-04-03 16:27:35Z]: Next Line command failed
Mono.Debugger.Soft.CommandException: Debuggee returned error code ERR_UNLOADED.
  at Mono.Debugger.Soft.VirtualMachine.ErrorHandler (System.Object sender, Mono.Debugger.Soft.ErrorHandlerEventArgs args) [0x00076] in /Users/michael/Mono/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs:301 
  at Mono.Debugger.Soft.Connection.SendReceive (CommandSet command_set, Int32 command, Mono.Debugger.Soft.PacketWriter packet) [0x000e9] in /Users/michael/Mono/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:1447 
  at Mono.Debugger.Soft.Connection.EnableEvent (EventType etype, SuspendPolicy suspend_policy, System.Collections.Generic.List`1 mods) [0x0035e] in /Users/michael/Mono/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:2196 
  at Mono.Debugger.Soft.EventRequest.SendReq (System.Collections.Generic.List`1 mods) [0x000a6] in /Users/michael/Mono/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/EventRequest.cs:106 
  at Mono.Debugger.Soft.StepEventRequest.Enable () [0x00049] in /Users/michael/Mono/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/StepEventRequest.cs:48 
  at Mono.Debugger.Soft.EventRequest.set_Enabled (Boolean value) [0x00014] in /Users/michael/Mono/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/EventRequest.cs:50 
  at Mono.Debugging.Soft.SoftDebuggerSession+<Step>c__AnonStoreyA.<>m__11 (System.Object ) [0x00084] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerSession.cs:1162
Comment 1 Jeffrey Stedfast 2013-04-03 18:02:21 UTC
fixed in git master
Comment 2 Mikayla Hutchinson [MSFT] 2013-04-03 19:17:54 UTC
The error handling is fixed, but the actual  ERR_UNLOAD is not.

I still get the ERR_UNLOAD on master/caf5fc0 and nothing has actually been unloaded AFAIK.
Comment 3 Jeffrey Stedfast 2013-04-03 21:37:27 UTC
oh, my mistake - I thought this was a XS-side bug and that you filed a separate runtime bug.
Comment 4 Zoltan Varga 2013-04-05 12:46:49 UTC
The only way I see this happening is that one of the assemblies passed to EventRequest.AssemblyFilter is unloaded. Does md use appdomains which are unloaded ?
Comment 5 Mikayla Hutchinson [MSFT] 2013-04-05 14:34:35 UTC
MD does use app domains that get unloaded, yes, but not at this time, and I don't see any assembly unload events reported in the debugger output.
Comment 6 Zoltan Varga 2013-04-05 14:40:40 UTC
How can I reproduce this ?
Comment 7 Mikayla Hutchinson [MSFT] 2013-04-05 15:35:19 UTC
It's somewhat intermittent so I don't have a reliable repro, but it happens quite frequently when stepping in MonoDevelop.Ide.
Comment 8 Zoltan Varga 2014-03-05 14:38:53 UTC

*** This bug has been marked as a duplicate of bug 18100 ***