Bug 321662 (MONO78947) - Exception in debugger when trying to run/attach/etc.
Summary: Exception in debugger when trying to run/attach/etc.
Status: RESOLVED FIXED
Alias: MONO78947
Product: Mono: Debugger
Classification: Mono
Component: backend (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-25 21:45 UTC by Adam Wendt
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 20:04:38 UTC


---- Reported by adam@ipcoast.com 2006-07-25 14:45:52 MST ----

Description of Problem:
The following exception/backtrace is thrown shortly after trying to 'run' a
program from within mdb, or 'attach' to an existing process:
EXCEPTION: System.NullReferenceException: Object reference not set to an
instance of an object
  at Mono.Debugger.Backends.SingleSteppingEngine.restore_stack
(Mono.Debugger.Backends.StackData stack) [0x0001b] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:1275
  at (wrapper remoting-invoke-with-check)
Mono.Debugger.Backends.SingleSteppingEngine:restore_stack
(Mono.Debugger.Backends.SingleSteppingEngine/StackData)
  at
Mono.Debugger.Backends.SingleSteppingEngine+OperationCallback.RestoreStack
(Mono.Debugger.Backends.SingleSteppingEngine sse) [0x0000c] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:2783
  at
Mono.Debugger.Backends.SingleSteppingEngine+OperationCallback.DoProcessEvent
(Mono.Debugger.Backends.SingleSteppingEngine sse,
Mono.Debugger.Backends.Inferior inferior, Mono.Debugger.Backends.ChildEvent
cevent, Mono.Debugger.TargetEventArgs args) [0x00097] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:2723
  at
Mono.Debugger.Backends.SingleSteppingEngine+OperationCompileMethod.DoProcessEvent
(Mono.Debugger.Backends.SingleSteppingEngine sse,
Mono.Debugger.Backends.Inferior inferior, Mono.Debugger.Backends.ChildEvent
cevent, Mono.Debugger.TargetEventArgs args) [0x0000b] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:3221
  at Mono.Debugger.Backends.SingleSteppingEngine+Operation.ProcessEvent
(Mono.Debugger.Backends.SingleSteppingEngine sse,
Mono.Debugger.Backends.Inferior inferior, Mono.Debugger.Backends.ChildEvent
cevent, Mono.Debugger.TargetEventArgs args) [0x00076] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:1900
  at Mono.Debugger.Backends.SingleSteppingEngine+Operation.ProcessEvent
(Mono.Debugger.Backends.SingleSteppingEngine sse,
Mono.Debugger.Backends.Inferior inferior, Mono.Debugger.Backends.ChildEvent
cevent, Mono.Debugger.TargetEventArgs args) [0x0000c] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:1880
  at Mono.Debugger.Backends.SingleSteppingEngine+Operation.ProcessEvent
(Mono.Debugger.Backends.SingleSteppingEngine sse,
Mono.Debugger.Backends.Inferior inferior, Mono.Debugger.Backends.ChildEvent
cevent, Mono.Debugger.TargetEventArgs args, System.Boolean send_result)
[0x00000] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:1854
  at Mono.Debugger.Backends.SingleSteppingEngine.ProcessChildEvent
(Mono.Debugger.Backends.ChildEvent cevent, Mono.Debugger.TargetEventArgs
result) [0x000d5] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:406
  at Mono.Debugger.Backends.SingleSteppingEngine.ProcessChildEvent
(Mono.Debugger.Backends.ChildEvent cevent) [0x003f7] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:356
  at Mono.Debugger.Backends.SingleSteppingEngine.ProcessEvent (Int32
status) [0x00175] in
/data/build/2006-07-24a/debugger/backends/SingleSteppingEngine.cs:184
  at (wrapper remoting-invoke-with-check)
Mono.Debugger.Backends.SingleSteppingEngine:ProcessEvent (int)
  at Mono.Debugger.Backends.ThreadManager.engine_thread_main () [0x000ce]
in /data/build/2006-07-24a/debugger/backends/ThreadManager.cs:306


Steps to reproduce the problem:
1. Run: mdb somehelloworld.exe
2. At prompt type 'run'

Actual Results:
The above exception is displayed and program hangs. You see no output from
your program.

Expected Results:
somehelloworld.exe should run and display output.

How often does this happen? 
Always

Additional Information:
Running revision 62926 of mono svn, tried the 0.30 release of debugger
along with revision 62716
Also if I try running nunit-console on the Mono.Debugger.Test.dll the first
test tries to run, throws the above exception and hangs.



---- Additional Comments From martin@ximian.com 2007-02-13 10:26:48 MST ----

This should be fixed by now.  I'll try to make a new debugger release
next week.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Linux 2.6.16.13-xen #2 SMP Wed Jul 12 02:39:57 PDT 2006 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz GNU/Linux</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".