Bug 319923 (MONO77120) - Debugger and Windows.Forms stops at unexpected point.
Summary: Debugger and Windows.Forms stops at unexpected point.
Status: RESOLVED MOVED
Alias: MONO77120
Product: Mono: Debugger
Classification: Mono
Component: backend (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-29 19:33 UTC by Miguel de Icaza
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 19:42:52 UTC


---- Reported by miguel@ximian.com 2005-12-29 12:33:26 MST ----

I was trying to debug a Windows.Forms application, this is what I typed in
the winforms/forms directory:

Notice a few things:
1. The process stops misteriously at:

(mdb) n
Process @4 stopped at #0: 0x4000c101 in _dl_debug_state+0x1.
0x4000c101      mov    %esp,%ebp
(mdb) where

2. When I "cont" the process dies at:

(mdb) cont
Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
Keyboard: United States keyboard layout (phantom key version)
Gtk colorscheme read
Process @4 received signal 11 at #0: 0x42375ab5 in
System.Windows.Forms.UpDownBase.get_Text()+0xd at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/UpDownBase.cs:478.
 478                            return txtView.Text;

But the code without the debugger never crashes.

mono$ mdb FormsTest.exe
Mono Debugger
(mdb) run
Starting program: FormsTest.exe

** (/mono/lib/mono/1.0/mdb.exe:17390): WARNING **: Symbol file
/mono/lib/mono/gac/Mono.Debugger.Cecil/0.1.1.1__0738eb9f132ed756/Mono.Debugger.Cecil.dll.mdb
doesn't match image
/mono/lib/mono/gac/Mono.Debugger.Cecil/0.1.1.1__0738eb9f132ed756/Mono.Debugger.Cecil.dll
Could not find file "/mono/lib/mono/1.0/System.dll.mdb".
Process @4 stopped at #0: 0x40e3273e in
FormsTest.FormsTest.Main(System.String[])+0xe at
/home/cvs/winforms/forms/FormsTest.cs:339.
 339                    FormsTest form = new FormsTest();
(mdb) n
Process @4 stopped at #0: 0x4000c101 in _dl_debug_state+0x1.
0x4000c101      mov    %esp,%ebp
(mdb) where
(*) #0: 0x4000c101 in _dl_debug_state+0x1
    #1: 0x403c9ed1 in getutmp+0x5c1
    #2: 0x4000b82f in _dl_rtld_di_serinfo+0x609f
    #3: 0x403ca546 in _dl_open+0x96
    #4: 0x40236d68 in +0xd68
    #5: 0x4000b82f in _dl_rtld_di_serinfo+0x609f
    #6: 0x4023737e in dlerror+0x30e
    #7: 0x40236dc1 in dlopen+0x41
    #8: 0x4023454d in g_module_open+0x13d
    #9: 0x40128708 in mono_lookup_pinvoke_call+0x2a8 at
/cvs/mono/mono/metadata/loader.c:934
    #10: 0x400f95e4 in mono_marshal_get_native_wrapper+0x364 at
/cvs/mono/mono/metadata/marshal.c:6351
    #11: 0x4005fe53 in mono_method_to_ir+0xba83 at
/cvs/mono/mono/mini/mini.c:3973
    #12: 0x4006b88a in mini_method_compile+0x23a at
/cvs/mono/mono/mini/mini.c:9249
    #13: 0x4006d4dd in mono_jit_compile_method_with_opt+0x30d at
/cvs/mono/mono/mini/mini.c:9635
    #14: 0x400cf2d4 in mono_compile_method+0x24 at
/cvs/mono/mono/metadata/object.c:400
    #15: 0x400a3fce in mono_magic_trampoline+0x1e at
/cvs/mono/mono/mini/mini-trampolines.c:28
    #16: 0x40505032
    #17: 0x4159bbaf in <(wrapper runtime-invoke)
System.Object:runtime_invoke_void_SerializationInfo_StreamingContext
(object,intptr,intptr,intptr)>+0x4f at 23
    #18: 0x4006d89e in mono_jit_runtime_invoke+0x6e at
/cvs/mono/mono/mini/mini.c:9842
    #19: 0x400cef97 in mono_runtime_invoke+0x27 at
/cvs/mono/mono/metadata/object.c:1347
    #20: 0x400d2d3f in mono_runtime_invoke_array+0xaf at
/cvs/mono/mono/metadata/object.c:2188
    #21: 0x400d92dc in ves_icall_InternalInvoke+0x11c at
/cvs/mono/mono/metadata/icall.c:2564
    #22: 0x41590534 in <(wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])>+0x2c at 6
    #23: 0x41590128 in
System.Reflection.MonoCMethod.Invoke(System.Object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo)+0x98
at /home/cvs/mcs/class/corlib/System.Reflection/MonoMethod.cs:347
    #24: 0x4159bb53 in
System.Reflection.MethodBase.Invoke(System.Object,System.Object[])+0x1b at
/home/cvs/mcs/class/corlib/System.Reflection/MethodBase.cs:86
    #25: 0x4159b7b6 in
System.Runtime.Serialization.ObjectRecord.LoadData(System.Runtime.Serialization.ObjectManager,System.Runtime.Serialization.ISurrogateSelector,System.Runtime.Serialization.StreamingContext)+0x236
at /home/cvs/mcs/class/corlib/System.Runtime.Serialization/ObjectManager.cs:541
    #26: 0x4159b2fb in
System.Runtime.Serialization.ObjectManager.DoFixups()+0x123 at
/home/cvs/mcs/class/corlib/System.Runtime.Serialization/ObjectManager.cs:78
    #27: 0x415961db in
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject(System.IO.BinaryReader)+0x43
at
/home/cvs/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:115
    #28: 0x41596115 in
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph(System.IO.BinaryReader,System.Boolean,System.Object&,System.Runtime.Remoting.Messaging.Header[]&)+0xb5
at
/home/cvs/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:105
    #29: 0x415957b4 in
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)+0x134
at
/home/cvs/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:172
    #30: 0x41595668 in
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(System.IO.Stream)+0x10
at
/home/cvs/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:129
    #31: 0x41595600 in
System.Resources.ResourceReader.ReadNonPredefinedValue(System.Type)+0x38 at
/home/cvs/mcs/class/corlib/System.Resources/ResourceReader.cs:352
    #32: 0x4159558a in
System.Resources.ResourceReader.ReadValueVer1(System.Type)+0x58a at
/home/cvs/mcs/class/corlib/System.Resources/ResourceReader.cs:346
    #33: 0x40e40ecc in
System.Resources.ResourceReader.ResourceValue(System.Int32)+0x17c at
/home/cvs/mcs/class/corlib/System.Resources/ResourceReader.cs:398
    #34: 0x40e40cc9 in
System.Resources.ResourceReader/ResourceEnumerator.get_Value()+0x31 at
/home/cvs/mcs/class/corlib/System.Resources/ResourceReader.cs:483
    #35: 0x415946b0 in System.Resources.ResourceSet.ReadResources()+0xa0 at
/home/cvs/mcs/class/corlib/System.Resources/ResourceSet.cs:199
    #36: 0x41594384 in
System.Resources.ResourceSet.GetObject(System.String,System.Boolean)+0x54
at /home/cvs/mcs/class/corlib/System.Resources/ResourceSet.cs:154
    #37: 0x40e3a2e3 in
System.Resources.ResourceManager.GetObject(System.String,System.Globalization.CultureInfo)+0xd3
at /home/cvs/mcs/class/corlib/System.Resources/ResourceManager.cs:192
    #38: 0x40e3a209 in
System.Resources.ResourceManager.GetObject(System.String)+0x11 at
/home/cvs/mcs/class/corlib/System.Resources/ResourceManager.cs:161
    #39: 0x40e35456 in
System.Windows.Forms.Locale.GetResource(System.String)+0x26 at
/home/cvs/mcs/class/Managed.Windows.Forms/Assembly/Locale.cs:71
    #40: 0x40e35342 in System.Windows.Forms.Form..cctor()+0x2a at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:85
    #41: 0x40e352a6 in <(wrapper runtime-invoke)
System.Object:runtime_invoke_void (object,intptr,intptr,intptr)>+0x26 at 17
    #42: 0x4006d89e in mono_jit_runtime_invoke+0x6e at
/cvs/mono/mono/mini/mini.c:9842
    #43: 0x400cef97 in mono_runtime_invoke+0x27 at
/cvs/mono/mono/metadata/object.c:1347
    #44: 0x400d1098 in mono_runtime_class_init+0x128 at
/cvs/mono/mono/metadata/object.c:261
    #45: 0x4006d5fa in mono_jit_compile_method_with_opt+0x42a at
/cvs/mono/mono/mini/mini.c:9686
    #46: 0x400cf2d4 in mono_compile_method+0x24 at
/cvs/mono/mono/metadata/object.c:400
    #47: 0x400a3fce in mono_magic_trampoline+0x1e at
/cvs/mono/mono/mini/mini-trampolines.c:28
    #48: 0x40505032
    #49: 0x40e337b2 in <(wrapper remoting-invoke-with-check)
FormsTest.FormsTest:.ctor ()>+0x22 at 12
    #50: 0x40e32756 in FormsTest.FormsTest.Main(System.String[])+0x26 at
/home/cvs/winforms/forms/FormsTest.cs:339
(mdb) cont
Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
Keyboard: United States keyboard layout (phantom key version)
Gtk colorscheme read
Process @4 received signal 11 at #0: 0x42375ab5 in
System.Windows.Forms.UpDownBase.get_Text()+0xd at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/UpDownBase.cs:478.
 478                            return txtView.Text;
(mdb)



---- Additional Comments From martin@ximian.com 2006-01-19 05:54:51 MST ----



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


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"