Bug 324291 (MONO81615) - Could not debug a simple program (that use log4net)
Summary: Could not debug a simple program (that use log4net)
Status: RESOLVED MOVED
Alias: MONO81615
Product: Mono: Debugger
Classification: Mono
Component: backend (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Blocker
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-14 15:21 UTC by Hubert FONGARNAND
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
DebuggerTest.tar.gz (178.67 KB, application/octet-stream)
2007-05-14 15:21 UTC, Thomas Wiest
Details

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


---- Reported by informatique.internet@fiducial.fr 2007-05-14 08:21:28 MST ----

Description of Problem:
Could not debug a simple program (that use log4net)

Steps to reproduce the problem:
1. Uncompress monodevelop solution
2. cd DebuggerTest/bin/Debug/
3.  mdb ./DebuggerTest.exe

Actual Results:

hubert@hublinux ~/Projects/DebuggerTest/DebuggerTest/bin/Debug $ mdb
./DebuggerTest.exe
Mono Debugger
(mdb) r
Starting program: ./DebuggerTest.exe 
Cannot load symbol file
`/home/hubert/Projects/DebuggerTest/DebuggerTest/bin/Debug/log4net.dll.mdb':
Could not find file
"/home/hubert/Projects/DebuggerTest/DebuggerTest/bin/Debug/log4net.dll.mdb".
EXCEPTION: System.ArgumentException: Cannot compare addresses from
different domains AddressDomain (0:) and AddressDomain (0:global)
  at Mono.Debugger.TargetAddress.check_domains (TargetAddress a,
TargetAddress b) [0x0001e] in
/home/hubert/mono/debugger/interface/TargetAddress.cs:95 
  at Mono.Debugger.TargetAddress.op_Equality (TargetAddress a,
TargetAddress b) [0x00000] in
/home/hubert/mono/debugger/interface/TargetAddress.cs:146 
  at Mono.Debugger.Backends.SingleSteppingEngine.throw_exception
(TargetAddress stack, TargetAddress exc, TargetAddress ip) [0x00031] in
/home/hubert/mono/debugger/backend/SingleSteppingEngine.cs:920 
  at Mono.Debugger.Backends.SingleSteppingEngine.ProcessChildEvent
(Mono.Debugger.Backends.ChildEvent cevent) [0x000c1] in
/home/hubert/mono/debugger/backend/SingleSteppingEngine.cs:252 
  at Mono.Debugger.Backends.SingleSteppingEngine.ProcessEvent (Int32
status) [0x00295] in
/home/hubert/mono/debugger/backend/SingleSteppingEngine.cs:214 
  at (wrapper remoting-invoke-with-check)
Mono.Debugger.Backends.SingleSteppingEngine:ProcessEvent (int)
  at Mono.Debugger.Backends.ThreadManager.engine_thread_main () [0x000ce]
in /home/hubert/mono/debugger/backend/ThreadManager.cs:310 

and you have to kill the mdb process by hand

Expected Results:
it should work

How often does this happen? 
always

Additional Information:



---- Additional Comments From informatique.internet@fiducial.fr 2007-05-14 08:21:58 MST ----

Created an attachment (id=171955)
DebuggerTest.tar.gz




---- Additional Comments From informatique.internet@fiducial.fr 2007-05-14 08:51:56 MST ----

i added log4net.mdb 

and i get :

hubert@hublinux ~/Projects/DebuggerTest/DebuggerTest/bin/Debug $ mdb
./DebuggerTest.exe
Mono Debugger
(mdb) r
Starting program: ./DebuggerTest.exe 
EXCEPTION: System.ArgumentException: Cannot compare addresses from
different domains AddressDomain (0:) and AddressDomain (0:global)
  at Mono.Debugger.TargetAddress.check_domains (TargetAddress a,
TargetAddress b) [0x0001e] in
/home/hubert/mono/debugger/interface/TargetAddress.cs:95 
  at Mono.Debugger.TargetAddress.op_Equality (TargetAddress a,
TargetAddress b) [0x00000] in
/home/hubert/mono/debugger/interface/TargetAddress.cs:146 
  at Mono.Debugger.Backends.SingleSteppingEngine.throw_exception
(TargetAddress stack, TargetAddress exc, TargetAddress ip) [0x00031]
in /home/hubert/mono/debugger/backend/SingleSteppingEngine.cs:920 
  at Mono.Debugger.Backends.SingleSteppingEngine.ProcessChildEvent
(Mono.Debugger.Backends.ChildEvent cevent) [0x000c1] in
/home/hubert/mono/debugger/backend/SingleSteppingEngine.cs:252 
  at Mono.Debugger.Backends.SingleSteppingEngine.ProcessEvent (Int32
status) [0x00295] in
/home/hubert/mono/debugger/backend/SingleSteppingEngine.cs:214 
  at (wrapper remoting-invoke-with-check)
Mono.Debugger.Backends.SingleSteppingEngine:ProcessEvent (int)
  at Mono.Debugger.Backends.ThreadManager.engine_thread_main ()
[0x000ce] in /home/hubert/mono/debugger/backend/ThreadManager.cs:310 
(mdb) quit
The program is running.  Exit anyway? (y or n) y
Thread @1 exited normally.
Process #1 exited.
Target exited.




---- Additional Comments From martin@ximian.com 2007-05-14 16:25:45 MST ----

I fixed that particular crash, but your example uncovered another
really bad bug: #81623.

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

Imported an attachment (id=171955)

Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"