[Mono-list] debugger crashes debugging openTK app
Daniel Soto
daniel.soto2k at gmail.com
Sun May 2 19:16:29 EDT 2010
Hello.
I sent some days ago two emails related to a problem debugging an openTK
application, to mono list, and monodevelop.
I think that problem is in mono soft debugger, so, monodevelop list, i'm
so sorry.
Well, the problem is the same. When debugging a line that reference
OpenTK, debugger crashes. I try changing Mono Debugger instead of Mono
Soft Debugger in monodevelop, and tells me that breakpoint cannot be
set.
Application trace is attached.
Anybody can help me? Would be a bug, maybe?
Thanks!
-------------- next part --------------
Loaded assembly: /home/daniel/Projects/OpenTKTest/bin/Debug/OpenTKTest.exe
Loaded assembly: /home/daniel/Projects/OpenTKTest/bin/Debug/OpenTK.dll [External]
Loaded assembly: /usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll [External]
Loaded assembly: /usr/local/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll [External]
Resolved pending breakpoint at 'Main.cs:9' to Void OpenTKTest.MainClass:Main ():0.
Loaded assembly: /usr/local/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll [External]
Loaded assembly: /usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll [External]
Stacktrace:
Native stacktrace:
/usr/local/bin/mono() [0x80d4c04]
/usr/local/bin/mono() [0x810ee8b]
[0xb7848410]
/usr/local/bin/mono() [0x80f58b3]
/usr/local/bin/mono() [0x81da932]
/usr/local/bin/mono() [0x8202dd9]
/lib/tls/i686/cmov/libpthread.so.0(+0x596e) [0xb773896e]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0xb7680a0e]
Debug info from gdb:
Mono support loaded.
[Thread debugging using libthread_db enabled]
[Nuevo Thread 0xb6340b70 (LWP 2927)]
[Nuevo Thread 0xb6441b70 (LWP 2926)]
[Nuevo Thread 0xb6831b70 (LWP 2925)]
[Nuevo Thread 0xb7410b70 (LWP 2923)]
0xb7848422 in __kernel_vsyscall ()
5 Thread 0xb7410b70 (LWP 2923) 0xb7848422 in __kernel_vsyscall ()
4 Thread 0xb6831b70 (LWP 2925) 0xb7848422 in __kernel_vsyscall ()
3 Thread 0xb6441b70 (LWP 2926) 0xb7848422 in __kernel_vsyscall ()
2 Thread 0xb6340b70 (LWP 2927) 0xb7848422 in __kernel_vsyscall ()
* 1 Thread 0xb75806f0 (LWP 2921) 0xb7848422 in __kernel_vsyscall ()
Hilo 5 (Thread 0xb7410b70 (LWP 2923)):
#0 0xb7848422 in __kernel_vsyscall ()
#1 0xb773d015 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0820313c in GC_wait_marker () at pthread_support.c:1785
#3 0x081fe1e4 in GC_help_marker (my_mark_no=4) at mark.c:1116
#4 0x08201fb2 in GC_mark_thread (id=0x0) at pthread_support.c:548
#5 0xb773896e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6 0xb7680a0e in clone () from /lib/tls/i686/cmov/libc.so.6
Hilo 4 (Thread 0xb6831b70 (LWP 2925)):
#0 0xb7848422 in __kernel_vsyscall ()
#1 0xb7740736 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x081ea948 in collection_thread (unused=0x0) at collection.c:34
#3 0xb773896e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4 0xb7680a0e in clone () from /lib/tls/i686/cmov/libc.so.6
Hilo 3 (Thread 0xb6441b70 (LWP 2926)):
#0 0xb7848422 in __kernel_vsyscall ()
#1 0xb773f245 in sem_wait@@GLIBC_2.1 ()
from /lib/tls/i686/cmov/libpthread.so.0
#2 0x08114790 in finalizer_thread (unused=0x0) at gc.c:1022
#3 0x0818ba8c in start_wrapper (data=0x943d5d0) at threads.c:661
#4 0x081da932 in thread_start_routine (args=0x94408c4) at wthreads.c:286
#5 0x08202dd9 in GC_start_routine (arg=0x32ec0) at pthread_support.c:1390
#6 0xb773896e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7 0xb7680a0e in clone () from /lib/tls/i686/cmov/libc.so.6
Hilo 2 (Thread 0xb6340b70 (LWP 2927)):
#0 0xb7848422 in __kernel_vsyscall ()
#1 0xb773ff5b in read () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x080d4dd4 in read (signal=11, ctx=0xb623bd0c)
at /usr/include/bits/unistd.h:45
#3 mono_handle_native_sigsegv (signal=11, ctx=0xb623bd0c)
at mini-exceptions.c:1818
#4 0x0810ee8b in mono_arch_handle_altstack_exception (sigctx=0xb623bd0c,
fault_addr=0x182474b5, stack_ovf=0) at exceptions-x86.c:910
#5 <signal handler called>
#6 type_commands (command=1, p=0xb4001604 "", end=<value optimized out>, buf=
0xb6340274) at debugger-agent.c:5096
#7 0x080f58b3 in debugger_thread (arg=0x0) at debugger-agent.c:6141
#8 0x081da932 in thread_start_routine (args=0x944094c) at wthreads.c:286
#9 0x08202dd9 in GC_start_routine (arg=0x32ec0) at pthread_support.c:1390
#10 0xb773896e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb7680a0e in clone () from /lib/tls/i686/cmov/libc.so.6
Hilo 1 (Thread 0xb75806f0 (LWP 2921)):
#0 0xb7848422 in __kernel_vsyscall ()
#1 0xb773d015 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/tls/i686/cmov/libpthread.so.0
#2 0x080f1ec9 in suspend_current () at debugger-agent.c:2198
#3 0x080f29cd in process_event (event=EVENT_KIND_TYPE_LOAD,
arg=<value optimized out>, il_offset=<value optimized out>, ctx=0x0,
events=0x95eefe0, suspend_policy=2) at debugger-agent.c:2692
#4 0x080f2c25 in process_profiler_event (event=EVENT_KIND_TYPE_LOAD, arg=
0x18247489) at debugger-agent.c:2712
#5 0x080f2f26 in jit_end (prof=0x82c7f48, method=
Traceback (most recent call last):
File "/usr/local/bin/mono-gdb.py", line 150, in to_string
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
RuntimeError: No se puede acceder a la memoria en la dirección 0x182474b5
, jinfo=0x9781eb4, result=0) at debugger-agent.c:2947
#6 0x08114f2a in mono_profiler_method_end_jit (method=
Traceback (most recent call last):
File "/usr/local/bin/mono-gdb.py", line 150, in to_string
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
RuntimeError: No se puede acceder a la memoria en la dirección 0x182474b5
, jinfo=0x9781eb4, result=0) at profiler.c:326
#7 0x080631a4 in mono_jit_compile_method_inner (method=
"System.Object:wrapper_native_0xb5824070 ()", opt=<value optimized out>,
ex=<value optimized out>) at mini.c:4326
#8 mono_jit_compile_method_with_opt (method=
"System.Object:wrapper_native_0xb5824070 ()", opt=<value optimized out>,
ex=<value optimized out>) at mini.c:4378
#9 0x080634ee in mono_jit_compile_method (method=
"System.Object:wrapper_native_0xb5824070 ()") at mini.c:4403
#10 0x0816aa9c in mono_ftnptr_to_delegate (klass="SwapIntervalSGI", ftn=
0xb5824070) at marshal.c:508
#11 0xb58a60fd in ?? ()
#12 0xb58a608f in ?? ()
#13 0xb58a5d3c in ?? ()
#14 0xb58a5aae in ?? ()
#15 0xb58a51c2 in ?? ()
#16 0xb58a217b in ?? ()
#17 0xb58a16ca in ?? ()
#18 0xb589bd40 in ?? ()
#19 0xb5a1556e in ?? ()
#20 0xb5a150c3 in ?? ()
#21 0xb5a14ffa in ?? ()
#22 0xb6832749 in ?? ()
#23 0xb68326bc in ?? ()
#24 0xb6832414 in ?? ()
#25 0xb6832529 in ?? ()
#26 0x080635d1 in mono_jit_runtime_invoke (method=
"OpenTKTest.MainClass:Main ()", obj=0x0, params=0xbfe699bc, exc=0x0)
at mini.c:4731
#27 0x081a5430 in mono_runtime_invoke (method="OpenTKTest.MainClass:Main ()",
obj=0x0, params=0xbfe699bc, exc=0x0) at object.c:2613
#28 0x081a8dde in mono_runtime_exec_main (method=
"OpenTKTest.MainClass:Main ()", args=0x51f90, exc=0x0) at object.c:3579
#29 0x081aad82 in mono_runtime_run_main (method=
"OpenTKTest.MainClass:Main ()", argc=1, argv=0xbfe69bf0, exc=0x0)
at object.c:3353
#30 0x080b44f1 in main_thread_handler (argc=4, argv=0xbfe69be4)
at driver.c:999
#31 mono_main (argc=4, argv=0xbfe69be4) at driver.c:1732
#32 0x0805b6a5 in main (argc=4, argv=0xbfe69be4) at main.c:34
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Mono.Debugger.Soft.VMDisconnectedException: Exception of type 'Mono.Debugger.Soft.VMDisconnectedException' was thrown.
at Mono.Debugger.Soft.Connection.SendReceive (CommandSet command_set, Int32 command, Mono.Debugger.Soft.PacketWriter packet) [0x00000] in <filename unknown>:0
at Mono.Debugger.Soft.Connection.Type_GetInfo (Int64 id) [0x00000] in <filename unknown>:0
at Mono.Debugger.Soft.TypeMirror.GetInfo () [0x00000] in <filename unknown>:0
at Mono.Debugger.Soft.TypeMirror.get_FullName () [0x00000] in <filename unknown>:0
at MonoDevelop.Debugger.Soft.SoftDebuggerSession.HandleEvent (Mono.Debugger.Soft.Event e, Boolean dequeuing) [0x00000] in <filename unknown>:0
at MonoDevelop.Debugger.Soft.SoftDebuggerSession.HandleEvent (Mono.Debugger.Soft.Event e) [0x00000] in <filename unknown>:0
at MonoDevelop.Debugger.Soft.SoftDebuggerSession.EventHandler () [0x00000] in <filename unknown>:0
More information about the Mono-list
mailing list