Bug 316261 (MONO68527) - Exception hitting breakpoints in some methods
Summary: Exception hitting breakpoints in some methods
Status: RESOLVED FIXED
Alias: MONO68527
Product: Mono: Debugger
Classification: Mono
Component: backend (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Chris Toshok
QA Contact: Martin Baulig
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-18 22:08 UTC by Chris Toshok
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:56:34 UTC


---- Reported by toshok@ximian.com 2004-10-18 15:08:35 MST ----

(mdb) b System.Console.WriteLine (bool)
Inserted breakpoint 2 at System.Console.WriteLine(System.Boolean)
(mdb) c
EXCEPTION: System.InvalidOperationException: The requested operation could
be performed.
in <0x0004c> Mono.Debugger.SourceLocation:GetAddress ()
in [0x0000e] (at
/home/toshok/src/mono/debugger/classes/BreakpointHandle.cs:56)
Mono.Debugger.BreakpointHandle:method_loaded
(Mono.Debugger.ITargetAccess,Mono.Debugger.SourceMethod,object)
in <0x00076> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_ITargetAccess_SourceMethod_object
(Mono.Debugger.ITargetAccess,Mono.Debugger.SourceMethod,object)
in [0x00047] (at
/home/toshok/src/mono/debugger/backends/mono-csharp/MonoCSharpLanguageBackend.cs:2023)
MonoMethod:breakpoint_hit
(Mono.Debugger.Backends.Inferior,Mono.Debugger.TargetAddress,object)
in <0x000c2> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_Inferior_TargetAddress_object
(Mono.Debugger.Backends.Inferior,Mono.Debugger.TargetAddress,object)
in [0x00099] (at
/home/toshok/src/mono/debugger/backends/mono-csharp/MonoCSharpLanguageBackend.cs:2457)
Mono.Debugger.Languages.CSharp.MonoCSharpLanguageBackend:Notification
(Mono.Debugger.Backends.Inferior,Mono.Debugger.Backends.NotificationType,Mono.Debugger.TargetAddress,long)
in [0x00171] (at
/home/toshok/src/mono/debugger/backends/MonoThreadManager.cs:218)
Mono.Debugger.Backends.MonoThreadManager:HandleChildEvent
(Mono.Debugger.Backends.Inferior,Mono.Debugger.Backends.Inferior/ChildEvent&)
in [0x000e3] (at
/home/toshok/src/mono/debugger/backends/ThreadManager.cs:313)
Mono.Debugger.ThreadManager:HandleChildEvent
(Mono.Debugger.Backends.Inferior,Mono.Debugger.Backends.Inferior/ChildEvent&)
in [0x00109] (at
/home/toshok/src/mono/debugger/backends/SingleSteppingEngine.cs:170)
Mono.Debugger.Backends.SingleSteppingEngine:ProcessEvent (int)
in [0x00069] (at
/home/toshok/src/mono/debugger/backends/ThreadManager.cs:525)
Mono.Debugger.ThreadManager:engine_thread_main ()



---- Additional Comments From martin@ximian.com 2004-10-20 01:53:36 MST ----

Ok, this should now be fixed in CVS.



---- Additional Comments From martin@ximian.com 2004-10-20 02:21:11 MST ----

If this bug ever shows up again:

The debugger requested the JIT to compile a method, but used the wrong
method signature (in this particular case, just the method name and
not the signature) - which matched more than one method.

Because of that, we were getting the notification on the wrong method;
the InvalidOperationException() means that we're trying to get the
address of a method which is not yet loaded.



---- Additional Comments From martin@ximian.com 2004-10-20 12:31:34 MST ----

*** https://bugzilla.novell.com/show_bug.cgi?id=MONO68528 has been marked as a duplicate of this bug. ***


Unknown operating system unknown. Setting to default OS "Other".