[Mono-bugs] [Bug 74581][Nor] New - Running HelloWorld fails with "Cannot read DWARF frame info from symbol file"

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 12 Apr 2005 13:27:48 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dean@brettle.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74581

--- shadow/74581	2005-04-12 13:27:48.000000000 -0400
+++ shadow/74581.tmp.20526	2005-04-12 13:27:48.000000000 -0400
@@ -0,0 +1,134 @@
+Bug#: 74581
+Product: Mono: Debugger
+Version: unspecified
+OS: 
+OS Details: FC3
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: backend
+AssignedTo: toshok@ximian.com                            
+ReportedBy: dean@brettle.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: Running HelloWorld fails with "Cannot read DWARF frame info from symbol file"
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+When I try to run a simple "Hello World" program from mdb it fails with
+"Cannot read DWARF frame info from symbol file
+`/home/build/mono-svn-install/lib/mono-debugger-mini-wrapper':
+System.ArgumentNullException: Argument cannot be null.
+Parameter name: src".
+
+Here's the detailed stack trace along with the command I used to compile:
+
+[build@server HelloWorld]$ mcs -g -o HelloWorld.exe *.cs
+[build@server HelloWorld]$ mono HelloWorld.exe
+Hello World!
+[build@server HelloWorld]$ mdb HelloWorld.exe
+Mono Debugger
+(mdb) run
+Starting program: HelloWorld.exe
+Cannot read DWARF frame info from symbol file
+`/home/build/mono-svn-install/lib/mono-debugger-mini-wrapper':
+System.ArgumentNullException: Argument cannot be null.
+Parameter name: src
+in <0x00000> <unknown method>
+in (wrapper managed-to-native)
+System.Runtime.InteropServices.Marshal:copy_from_unmanaged
+(intptr,int,System.Array,int)
+in [0x00004] (at
+/home/build/mono-svn-src/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs:124)
+System.Runtime.InteropServices.Marshal:Copy (IntPtr source, System.Byte[]
+destination, Int32 startIndex, Int32 length)
+in [0x00025] (at /home/build/mono-svn-src/debugger/arch/Bfd.cs:851)
+Mono.Debugger.Architecture.Bfd:GetSectionContents (IntPtr section, Boolean
+raw_section)
+in [0x00047] (at /home/build/mono-svn-src/debugger/arch/Bfd.cs:616)
+Mono.Debugger.Architecture.Bfd:create_frame_reader ()
+in [0x0000d] (at /home/build/mono-svn-src/debugger/arch/Bfd.cs:638)
+Mono.Debugger.Architecture.Bfd:load_dwarf ()
+Cannot read DWARF debugging info from symbol file
+`/home/build/mono-svn-install/lib/mono-debugger-mini-wrapper':
+Mono.Debugger.Architecture.DwarfException:
+/home/build/mono-svn-install/lib/mono-debugger-mini-wrapper: Can't find
+DWARF 2 debugging info
+in [0x00037] (at /home/build/mono-svn-src/debugger/arch/DwarfReader.cs:622)
+Mono.Debugger.Architecture.DwarfReader:create_reader_func (System.Object
+user_data)
+in (wrapper delegate-invoke) System.MulticastDelegate:invoke_object_object
+(object)
+in [0x00072] (at
+/home/build/mono-svn-src/debugger/classes/ObjectCache.cs:118)
+Mono.Debugger.ObjectCache:get_Data ()
+in [0x0000c] (at /home/build/mono-svn-src/debugger/arch/DwarfReader.cs:640)
+Mono.Debugger.Architecture.DwarfReader:get_DebugInfoReader ()
+in [0x000a2] (at /home/build/mono-svn-src/debugger/arch/DwarfReader.cs:141)
+Mono.Debugger.Architecture.DwarfReader:.ctor
+(Mono.Debugger.Architecture.Bfd bfd, Mono.Debugger.Module module,
+Mono.Debugger.SourceFileFactory factory)
+in [0x00049] (at /home/build/mono-svn-src/debugger/arch/Bfd.cs:648)
+Mono.Debugger.Architecture.Bfd:load_dwarf ()
+EXCEPTION: Mono.Debugger.TargetMemoryException: Cannot read 4 bytes from
+target memory at address 0x00000008
+in [0x00047] (at
+/home/build/mono-svn-src/debugger/backends/Inferior.cs:548)
+Mono.Debugger.Backends.Inferior:read_buffer (TargetAddress address, Int32 size)
+in [0x0000f] (at
+/home/build/mono-svn-src/debugger/backends/Inferior.cs:584)
+Mono.Debugger.Backends.Inferior:ReadInteger (TargetAddress address)
+in [0x0002a] (at
+/home/build/mono-svn-src/debugger/backends/Inferior.cs:626)
+Mono.Debugger.Backends.Inferior:ReadGlobalAddress (TargetAddress address)
+in [0x0000f] (at
+/home/build/mono-svn-src/debugger/backends/MonoThreadManager.cs:56)
+Mono.Debugger.Backends.MonoThreadManager:Initialize
+(Mono.Debugger.Backends.SingleSteppingEngine sse,
+Mono.Debugger.Backends.Inferior inferior)
+in [0x00074] (at
+/home/build/mono-svn-src/debugger/backends/ThreadManager.cs:254)
+Mono.Debugger.ThreadManager:thread_created (Mono.Debugger.Backends.Inferior
+inferior, Int32 pid)
+in [0x000c7] (at
+/home/build/mono-svn-src/debugger/backends/ThreadManager.cs:303)
+Mono.Debugger.ThreadManager:HandleChildEvent
+(Mono.Debugger.Backends.Inferior inferior,
+Mono.Debugger.Backends.ChildEvent cevent)
+in [0x00109] (at
+/home/build/mono-svn-src/debugger/backends/SingleSteppingEngine.cs:168)
+Mono.Debugger.Backends.SingleSteppingEngine:ProcessEvent (Int32 status)in
+[0x00074] (at
+/home/build/mono-svn-src/debugger/backends/ThreadManager.cs:522)
+Mono.Debugger.ThreadManager:engine_thread_main ()
+
+
+Steps to reproduce the problem:
+1. Compile a simple HelloWorld program using mcs -g.
+2. mdb HelloWorld.exe 
+3. type "run"
+
+Actual Results:
+
+See above.
+
+Expected Results:
+
+Should print "Hello World!".
+
+
+
+How often does this happen? 
+
+Everytime.
+
+Additional Information:
+
+This occurs with the mono/mcs and the debugger built from the latest SVN
+sources and with mono/mcs 1.1.6.  If there is a particular SVN revision
+which is known to work, please let me know.