[Gtk-sharp-list] Re: debug help needed

Radek Doulik rodo@matfyz.cz
Tue, 09 Dec 2003 10:52:27 +0100


On Tue, 2003-12-09 at 01:09, Radek Doulik wrote:
> Hi all,
> 
> I am playing with monotalk these days and I get lot of weird exceptions
> (see below). They show up pretty randomly. Probably depending on data my
> app is using. (but I am not sure on this - for example if I load .xml
> files containing the same content, only different order of xml elements,
> I get exception or not)
> 
> Any idea how to debug/trace this? Does anyone getting such exceptions
> with other gtk# applications? I tried to use the mdb, but it hangs here
> :(

I have at least backtrace from gdb which may give you jit guys some
clue?

(gdb) thread apply all bt
 
Thread 4 (Thread 32771 (LWP 1230)):
#0  0x00000000 in ?? ()
#1  0x081a9cf2 in ?? ()
#2  0x081cc6a6 in ?? ()
#3  0x081cc5bb in ?? ()
#4  0x081cc585 in ?? ()
#5  0x085ce45d in ?? ()
#6  0x085ce37b in ?? ()
#7  0x08620b0b in ?? ()
#8  0x0858a662 in ?? ()
#9  0x08548df3 in ?? ()
#10 0x084bc787 in ?? ()
#11 0x084bc527 in ?? ()
#12 0x084b4cc6 in ?? ()
#13 0x084b4990 in ?? ()
#14 0x084b4b04 in ?? ()
#15 0x401c3450 in g_timeout_add () from /usr/lib/libglib-2.0.so.0
#16 0x401c0a4e in unblock_source () from /usr/lib/libglib-2.0.so.0
#17 0x401c1aa1 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#18 0x401c1dcf in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#19 0x401c249e in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#20 0x41e086bb in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x084b4b89 in ?? ()
#22 0x084b4b50 in ?? ()
#23 0x084b4b38 in ?? ()
#24 0x0813f8d2 in ?? ()
#25 0x080905be in ?? ()
#26 0x40049a96 in mono_jit_runtime_invoke (method=0x810c528, obj=0x0,
    params=0x419c3d68, exc=0x0) at mini.c:7526
#27 0x4009bc91 in mono_runtime_invoke (method=0x810c528, obj=0x0,
    params=0x419c3d68, exc=0x0) at object.c:753
#28 0x4009ca3d in mono_runtime_exec_main (method=0x810c528,
args=0x8070f90,
    exc=0x0) at object.c:1209
#29 0x4009c6a3 in mono_runtime_run_main (method=0x810c528, argc=2,
    argv=0xbffffa6c, exc=0x0) at object.c:1085
#30 0x4006c05d in mono_jit_exec (domain=0x806eed8, assembly=0x80e7d30,
argc=3,
    argv=0xbffffa68) at driver.c:463
#31 0x4006c133 in main_thread_handler (user_data=0xbffff9d0) at
driver.c:497
#32 0x400b9e82 in start_wrapper (data=0x810bc58) at threads.c:230
#33 0x400fa410 in timed_thread_start_routine (args=0x810bc70)
    at timed-thread.c:115
#34 0x4010ce5c in GC_start_routine (arg=0x806bd40) at
linux_threads.c:1663
#35 0x403aea21 in pthread_start_thread () from /lib/i686/libpthread.so.0
#36 0x403aeb25 in pthread_start_thread_event () from
/lib/i686/libpthread.so.0
 
Thread 3 (Thread 16386 (LWP 1229)):
#0  0x403b4086 in nanosleep () from /lib/i686/libpthread.so.0
#1  0x00000001 in ?? ()
#2  0x403ad149 in pthread_cond_timedwait_relative ()
   from /lib/i686/libpthread.so.0
#3  0x400f118f in _wapi_handle_wait_signal_handle (handle=0x3)
    at handles.c:1445
#4  0x400fa8e1 in WaitForSingleObject (handle=0x3, timeout=4294967295)
    at wait.c:95
#5  0x400ad4e0 in finalizer_thread (unused=0x0) at gc.c:519
#6  0x400fa410 in timed_thread_start_routine (args=0x80d3820)
    at timed-thread.c:115
#7  0x4010ce5c in GC_start_routine (arg=0x806bde0) at
linux_threads.c:1663
#8  0x403aea21 in pthread_start_thread () from /lib/i686/libpthread.so.0
#9  0x403aeb25 in pthread_start_thread_event () from
/lib/i686/libpthread.so.0
 
Thread 2 (Thread 32769 (LWP 1228)):
#0  0x404f3357 in poll () from /lib/i686/libc.so.6
#1  0x403ada3e in __pthread_manager () from /lib/i686/libpthread.so.0
#2  0x403adc8b in __pthread_manager_event () from
/lib/i686/libpthread.so.0
 
Thread 1 (Thread 16384 (LWP 1226)):
#0  0x403b4086 in nanosleep () from /lib/i686/libpthread.so.0
#1  0x00000001 in ?? ()
#2  0x403ad149 in pthread_cond_timedwait_relative ()
   from /lib/i686/libpthread.so.0
#3  0x400f1030 in _wapi_handle_wait_signal () at handles.c:1385
#4  0x400faca5 in WaitForMultipleObjects (numobjects=1,
handles=0x810c320,
    waitall=1, timeout=4294967295) at wait.c:410
#5  0x400bae6b in wait_for_tids (wait=0x810c320, timeout=4294967295)
    at threads.c:1073
#6  0x400bafdc in mono_thread_manage () at threads.c:1160
#7  0x4009c98e in mono_runtime_exec_managed_code (domain=0x806eed8,
    main_func=0x4006c06b <main_thread_handler>, main_args=0xbffff9d0)
    at object.c:1182
#8  0x4006cdbd in mono_main (argc=4, argv=0xbffffa64) at driver.c:737
#9  0x080486ea in main (argc=4, argv=0xbffffa64) at main.c:6
#10 0x4042fa67 in __libc_start_main () from /lib/i686/libc.so.6
#0  0x00000000 in ?? ()