[Mono-dev] debugger exception

Alvaro Ramirez aramirez at xenodium.com
Sun Dec 9 00:56:44 EST 2007


Hiya,

Checked out and built the latest debugger from svn. I'm getting an
unhandled exception (InternalError) when trying to debug basic console
apps (Attached is a stack trace).

The exception is thrown when GetEngineByTID returns null while handling
GcThreadCreated events (MonoThreadManager.cs).

Looking a bit into GetEngineByTID (ProcessServant.cs), here's a snapshot
of variables when attempting to get the engine by tid:

tid:3083462896
thread_hastable count:1
engine in thread_hastable with TID:0

The pid of the only engine in the hashtable seems to be correct (same
shown by ps). The tid(3083462896) used to request the engine is perhaps
bogus? Can someone shed some light? Need more info?

Thanks,

Alvaro

-------------- next part --------------
EXCEPTION: Mono.Debugger.InternalError: Internal error.
  at Mono.Debugger.Backend.MonoThreadManager.HandleChildEvent (Mono.Debugger.Backend.SingleSteppingEngine engine, Mono.Debugger.Backend.Inferior inferior, Mono.Debugger.Backend.ChildEvent& cevent, System.Boolean& resume_target) [0x0042e] in dloads/mono/debugger/backend/MonoThreadManager.cs:324 
  at Mono.Debugger.Backend.ThreadManager.HandleChildEvent (Mono.Debugger.Backend.SingleSteppingEngine engine, Mono.Debugger.Backend.Inferior inferior, Mono.Debugger.Backend.ChildEvent& cevent, System.Boolean& resume_target) [0x000db] in dloads/mono/debugger/backend/ThreadManager.cs:196 
  at (wrapper remoting-invoke-with-check) Mono.Debugger.Backend.ThreadManager:HandleChildEvent (Mono.Debugger.Backend.SingleSteppingEngine,Mono.Debugger.Backend.Inferior,Mono.Debugger.Backend.Inferior/ChildEvent&,bool&)
  at Mono.Debugger.Backend.SingleSteppingEngine.ProcessEvent (Mono.Debugger.Backend.ChildEvent cevent) [0x001e0] in dloads/mono/debugger/backend/SingleSteppingEngine.cs:207 
  at Mono.Debugger.Backend.SingleSteppingEngine.ProcessEvent (Int32 status) [0x0000c] in dloads/mono/debugger/backend/SingleSteppingEngine.cs:153 
  at (wrapper remoting-invoke-with-check) Mono.Debugger.Backend.SingleSteppingEngine:ProcessEvent (int)
  at Mono.Debugger.Backend.ThreadManager.engine_thread_main () [0x000cd] in dloads/mono/debugger/backend/ThreadManager.cs:318


More information about the Mono-devel-list mailing list