Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
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
fixed in git master
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.
oh, my mistake - I thought this was a XS-side bug and that you filed a separate runtime bug.
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 ?
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.
How can I reproduce this ?
It's somewhat intermittent so I don't have a reliable repro, but it happens quite frequently when stepping in MonoDevelop.Ide.
*** This bug has been marked as a duplicate of bug 18100 ***