[Mono-list] mod-mono bad crashing

Lorenzo Viola info at eulogika.net
Tue Sep 25 03:24:48 EDT 2007


Hello

Hope to get some help or directions on how to debug........

I'm on debian, apache2, mod-mono,
using the last sources from http://mono.ximian.com/daily/

I'm filling a gridview, on a master page ...

the only "strange" thing i'm doing is this :

        GridView dgvResults = 
(GridView)Master.FindControl("dgvResultsMaster");
        if (dgvResults != null)
            [ here i create a dataview and bind it to the gridview ]



On IIS/VS 2005 it works without problem...

on the debian box, apache2/modmono crashes, with the following error.log :

Stacktrace:

  at (wrapper xdomain-dispatch) 
Mono.WebServer.ModMonoApplicationHost.ProcessRequest 
(object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,int,string,string[],string[]) 
<0x00004>
  at (wrapper xdomain-dispatch) 
Mono.WebServer.ModMonoApplicationHost.ProcessRequest 
(object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,int,string,string[],string[]) 
<0xffffffff>
  at (wrapper xdomain-invoke) 
Mono.WebServer.ModMonoApplicationHost.ProcessRequest 
(int,string,string,string,string,string,int,string,int,string,string[],string[]) 
<0xffffffff>
  at (wrapper remoting-invoke-with-check) 
Mono.WebServer.ModMonoApplicationHost.ProcessRequest 
(int,string,string,string,string,string,int,string,int,string,string[],string[]) 
<0xffffffff>
  at Mono.WebServer.ModMonoWorker.InnerRun (object) <0x003b0>
  at Mono.WebServer.ModMonoWorker.Run (object) <0x0001e>
  at (wrapper delegate-invoke) 
System.MulticastDelegate.invoke_void_object (object) <0xffffffff>
  at (wrapper runtime-invoke) 
System.Threading.WaitCallback.runtime_invoke_void_object 
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    /usr/bin/mono [0x8168b3f]
    /usr/bin/mono [0x8134022]
    /lib/libpthread.so.0 [0xb7e50150]
    [0xb57a28c6]
    [0xb57a175c]
    [0xb579cff2]
    [0xb5925a4e]
    [0xb59258a0]
    [0xb59b6003]
    [0xb59b3428]
    [0xb59f342c]
    [0xb59f15ed]
    [0xb5a0c18c]
    [0xb5a0bfe4]
    [0xb5a943a2]
    [0xb5a9369b]
    [0xb5a9365b]
    [0xb5a92c74]
    [0xb5ac956c]
    [0xb5ac8886]
    [0xb5ac865e]
    [0xb69f701b]
    [0xb69f6e79]
    [0xb70a8681]
    [0xb70a8177]
    [0xb70a8127]
    [0xb70a808e]
    /usr/bin/mono(mono_runtime_invoke_array+0x255) [0x809b235]
    /usr/bin/mono [0x809b6ad]
    /usr/bin/mono [0x80d2b63]
    /usr/bin/mono [0x80d422d]
    /usr/bin/mono [0x80d0f14]
    /usr/bin/mono [0x811aa52]
    /usr/bin/mono [0x8130ed5]
    /lib/libpthread.so.0 [0xb7e482d3]
    /lib/libc.so.6(clone+0x5e) [0xb7da82fe]

Debug info from gdb:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1211287856 (LWP 25557)]
[New Thread -1241203824 (LWP 24980)]
[New Thread -1227392112 (LWP 24979)]
[New Thread -1249010800 (LWP 24970)]
[New Thread -1242252400 (LWP 24969)]
[New Thread -1253049456 (LWP 24913)]
[New Thread -1238750320 (LWP 24877)]
[New Thread -1226343536 (LWP 24870)]
[New Thread -1237255280 (LWP 6172)]
[New Thread -1231291504 (LWP 6168)]
[New Thread -1225294960 (LWP 25620)]
[New Thread -1224246384 (LWP 25619)]
[New Thread -1219699824 (LWP 25618)]
[New Thread -1213965424 (LWP 25615)]
0xb7e4c6c2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
  14 Thread -1213965424 (LWP 25615)  0xb7e4f4fc in __nanosleep_nocancel ()
   from /lib/libpthread.so.0
  13 Thread -1219699824 (LWP 25618)  0xb7e4c451 in 
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  12 Thread -1224246384 (LWP 25619)  0xb7e4f4fc in __nanosleep_nocancel ()
   from /lib/libpthread.so.0
  11 Thread -1225294960 (LWP 25620)  0xb7da89bc in epoll_wait ()
   from /lib/libc.so.6
  10 Thread -1231291504 (LWP 6168)  0xb7e4c6c2 in 
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  9 Thread -1237255280 (LWP 6172)  0xb7d98b91 in read () from /lib/libc.so.6
  8 Thread -1226343536 (LWP 24870)  0xb7e4c6c2 in 
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  7 Thread -1238750320 (LWP 24877)  0xb7d98b91 in read () from 
/lib/libc.so.6
  6 Thread -1253049456 (LWP 24913)  0xb7e4c6c2 in 
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  5 Thread -1242252400 (LWP 24969)  0xb7e4c6c2 in 
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  4 Thread -1249010800 (LWP 24970)  0xb7e4c6c2 in 
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  3 Thread -1227392112 (LWP 24979)  0xb7e4c6c2 in 
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  2 Thread -1241203824 (LWP 24980)  0xb7da1027 in select ()
   from /lib/libc.so.6
  1 Thread -1211287856 (LWP 25557)  0xb7e4c6c2 in 
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0

Thread 14 (Thread -1213965424 (LWP 25615)):
#0  0xb7e4f4fc in __nanosleep_nocancel () from /lib/libpthread.so.0
#1  0x08106644 in collection_thread (unused=0x0) at collection.c:34
#2  0xb7e482d3 in start_thread () from /lib/libpthread.so.0
#3  0xb7da82fe in clone () from /lib/libc.so.6

Thread 13 (Thread -1219699824 (LWP 25618)):
#0  0xb7e4c451 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
#1  0x081091ef in timedwait_signal_poll_cond (cond=0xb79b71dc,
    mutex=0xb79b71c4, timeout=0x0, alertable=0) at handles.c:1413
#2  0x0810b9ed in _wapi_handle_timedwait_signal_handle (handle=0x404,
    timeout=0x0, alertable=0) at handles.c:1493
#3  0x0810ba5c in _wapi_handle_wait_signal_handle (handle=0x404, 
alertable=0)
    at handles.c:1453
#4  0x0811bc6a in WaitForSingleObjectEx (handle=0x404, timeout=4294967295,
    alertable=0) at wait.c:200
#5  0x080b15fa in finalizer_thread (unused=0x0) at gc.c:835
#6  0x080d0f14 in start_wrapper (data=0x8239c50) at threads.c:319
#7  0x0811aa52 in thread_start_routine (args=0xb7863eb8) at threads.c:253
#8  0x08130ed5 in GC_start_routine (arg=0x22f40) at pthread_support.c:1362
#9  0xb7e482d3 in start_thread () from /lib/libpthread.so.0
#10 0xb7da82fe in clone () from /lib/libc.so.6

Thread 12 (Thread -1224246384 (LWP 25619)):
#0  0xb7e4f4fc in __nanosleep_nocancel () from /lib/libpthread.so.0
#1  0x0811a068 in SleepEx (ms=0, alertable=1) at threads.c:997
#2  0x080d0b21 in ves_icall_System_Threading_Thread_Sleep_internal (
    ms=1000000) at threads.c:672
#3  0xb70a6bbe in ?? ()
#4  0x000f4240 in ?? ()
#5  0x0845e500 in ?? ()
#6  0xb70a6b30 in ?? ()
#7  0x00000000 in ?? ()

Thread 11 (Thread -1225294960 (LWP 25620)):
#0  0xb7da89bc in epoll_wait () from /lib/libc.so.6
#1  0x080d287c in socket_io_epoll_main (p=0x8202fa0) at threadpool.c:554
#2  0x080d0f14 in start_wrapper (data=0x845a5d8) at threads.c:319
#3  0x0811aa52 in thread_start_routine (args=0xb7864128) at threads.c:253
#4  0x08130ed5 in GC_start_routine (arg=0x22d80) at pthread_support.c:1362
#5  0xb7e482d3 in start_thread () from /lib/libpthread.so.0
#6  0xb7da82fe in clone () from /lib/libc.so.6

Thread 10 (Thread -1231291504 (LWP 6168)):
#0  0xb7e4c6c2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x081091aa in timedwait_signal_poll_cond (cond=0xb79b7a4c,
    mutex=0xb79b7a34, timeout=0xb69bf190, alertable=1) at handles.c:1423
#2  0x0810b9ed in _wapi_handle_timedwait_signal_handle (handle=0x418,
    timeout=0xb69bf190, alertable=1) at handles.c:1493
#3  0x0811bb0c in WaitForSingleObjectEx (handle=0x418, timeout=15000,
    alertable=1) at wait.c:202
#4  0x080ce4b8 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (
    this=0x13b630, handle=0x418, ms=15000, exitContext=0) at threads.c:1051
#5  0xb69c2192 in ?? ()
#6  0x0013b630 in ?? ()
#7  0x00000418 in ?? ()
#8  0x00003a98 in ?? ()
#9  0x00000000 in ?? ()

Thread 9 (Thread -1237255280 (LWP 6172)):
#0  0xb7d98b91 in read () from /lib/libc.so.6
#1  0xb6301dc5 in ?? ()
#2  0x00000018 in ?? ()
#3  0x001cc010 in ?? ()
#4  0x00001000 in ?? ()
#5  0xb640f270 in ?? ()
#6  0x001cc010 in ?? ()
#7  0x086fc318 in ?? ()
#8  0x00001000 in ?? ()
#9  0x00001000 in ?? ()
#10 0x00001008 in ?? ()
#11 0xffffffff in ?? ()
#12 0x0002f6b8 in ?? ()
#13 0x001cc000 in ?? ()
#14 0xb640f21c in ?? ()
#15 0xb6301d8c in ?? ()
#16 0xb640f270 in ?? ()
#17 0xb6301ce3 in ?? ()
#18 0x00000018 in ?? ()
#19 0x001cc000 in ?? ()
#20 0x00001000 in ?? ()
#21 0x00000000 in ?? ()

Thread 8 (Thread -1226343536 (LWP 24870)):
#0  0xb7e4c6c2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x081091aa in timedwait_signal_poll_cond (cond=0xb79bb994,
    mutex=0xb79bb97c, timeout=0xb6e77190, alertable=1) at handles.c:1423
#2  0x0810b9ed in _wapi_handle_timedwait_signal_handle (handle=0x4ae,
    timeout=0xb6e77190, alertable=1) at handles.c:1493
#3  0x0811bb0c in WaitForSingleObjectEx (handle=0x4ae, timeout=15000,
    alertable=1) at wait.c:202
#4  0x080ce4b8 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (
    this=0x1fb8a0, handle=0x4ae, ms=15000, exitContext=0) at threads.c:1051
#5  0xb5a913a2 in ?? ()
#6  0x001fb8a0 in ?? ()
#7  0x000004ae in ?? ()
#8  0x00003a98 in ?? ()
#9  0x00000000 in ?? ()

Thread 7 (Thread -1238750320 (LWP 24877)):
#0  0xb7d98b91 in read () from /lib/libc.so.6
#1  0xb5a0ffcd in ?? ()
#2  0x00000022 in ?? ()
#3  0x0048c010 in ?? ()
#4  0x00001000 in ?? ()
#5  0x0048c000 in ?? ()
#6  0x0048c010 in ?? ()
#7  0x08a509d0 in ?? ()
#8  0x003d52d8 in ?? ()
#9  0x0048c000 in ?? ()
#10 0xb62a220c in ?? ()
#11 0xffffffff in ?? ()
#12 0x003d52d8 in ?? ()
#13 0x0048c000 in ?? ()
#14 0xb62a221c in ?? ()
#15 0xb5a0ff94 in ?? ()
#16 0xb62a2270 in ?? ()
#17 0xb5a0feeb in ?? ()
#18 0x00000022 in ?? ()
#19 0x0048c000 in ?? ()
#20 0x00001000 in ?? ()
#21 0x00000000 in ?? ()

Thread 6 (Thread -1253049456 (LWP 24913)):
#0  0xb7e4c6c2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x081091aa in timedwait_signal_poll_cond (cond=0xb79bc780,
    mutex=0xb79bc768, timeout=0xb54ff190, alertable=1) at handles.c:1423
#2  0x0810b9ed in _wapi_handle_timedwait_signal_handle (handle=0x4cf,
    timeout=0xb54ff190, alertable=1) at handles.c:1493
#3  0x0811bb0c in WaitForSingleObjectEx (handle=0x4cf, timeout=60000,
    alertable=1) at wait.c:202
#4  0x080ce4b8 in ves_icall_System_Threading_WaitHandle_WaitOne_internal (
    this=0x278fa8, handle=0x4cf, ms=60000, exitContext=0) at threads.c:1051
#5  0xb5a913a2 in ?? ()
#6  0x00278fa8 in ?? ()
#7  0x000004cf in ?? ()
#8  0x0000ea60 in ?? ()
#9  0x00000000 in ?? ()

Thread 5 (Thread -1242252400 (LWP 24969)):
#0  0xb7e4c6c2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x081091aa in timedwait_signal_poll_cond (cond=0xb79b753c,
    mutex=0xb79b7524, timeout=0xb5f4b268, alertable=1) at handles.c:1423
#2  0x0810b9ed in _wapi_handle_timedwait_signal_handle (handle=0x40c,
    timeout=0xb5f4b268, alertable=1) at handles.c:1493
#3  0x0811bb0c in WaitForSingleObjectEx (handle=0x40c, timeout=10000,
    alertable=1) at wait.c:202
#4  0x080d4103 in async_invoke_io_thread (data=0x0) at threadpool.c:285
#5  0x080d0f14 in start_wrapper (data=0x8bd4be8) at threads.c:319
#6  0x0811aa52 in thread_start_routine (args=0xb786ada0) at threads.c:253
#7  0x08130ed5 in GC_start_routine (arg=0xa1f0a0) at pthread_support.c:1362
#8  0xb7e482d3 in start_thread () from /lib/libpthread.so.0
#9  0xb7da82fe in clone () from /lib/libc.so.6

Thread 4 (Thread -1249010800 (LWP 24970)):
#0  0xb7e4c6c2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x081091aa in timedwait_signal_poll_cond (cond=0xb79b702c,
    mutex=0xb79b7014, timeout=0xb58d9278, alertable=1) at handles.c:1423
#2  0x0810b9ed in _wapi_handle_timedwait_signal_handle (handle=0x400,
    timeout=0xb58d9278, alertable=1) at handles.c:1493
#3  0x0811bb0c in WaitForSingleObjectEx (handle=0x400, timeout=10000,
    alertable=1) at wait.c:202
#4  0x080d426f in async_invoke_thread (data=0x0) at threadpool.c:1228
#5  0x080d0f14 in start_wrapper (data=0x8bd4be8) at threads.c:319
#6  0x0811aa52 in thread_start_routine (args=0xb786aed8) at threads.c:253
#7  0x08130ed5 in GC_start_routine (arg=0xa1f0a0) at pthread_support.c:1362
#8  0xb7e482d3 in start_thread () from /lib/libpthread.so.0
#9  0xb7da82fe in clone () from /lib/libc.so.6

Thread 3 (Thread -1227392112 (LWP 24979)):
#0  0xb7e4c6c2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x081091aa in timedwait_signal_poll_cond (cond=0xb79b753c,
    mutex=0xb79b7524, timeout=0xb6d77268, alertable=1) at handles.c:1423
#2  0x0810b9ed in _wapi_handle_timedwait_signal_handle (handle=0x40c,
    timeout=0xb6d77268, alertable=1) at handles.c:1493
#3  0x0811bb0c in WaitForSingleObjectEx (handle=0x40c, timeout=10000,
    alertable=1) at wait.c:202
#4  0x080d4103 in async_invoke_io_thread (data=0x0) at threadpool.c:285
#5  0x080d0f14 in start_wrapper (data=0x8be2270) at threads.c:319
#6  0x0811aa52 in thread_start_routine (args=0xb786b010) at threads.c:253
#7  0x08130ed5 in GC_start_routine (arg=0xab9fe0) at pthread_support.c:1362
#8  0xb7e482d3 in start_thread () from /lib/libpthread.so.0
#9  0xb7da82fe in clone () from /lib/libc.so.6

Thread 2 (Thread -1241203824 (LWP 24980)):
#0  0xb7da1027 in select () from /lib/libc.so.6
#1  0xb7ebe1c0 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#2  0xb7ebe58c in g_spawn_command_line_sync () from 
/usr/lib/libglib-2.0.so.0
#3  0x08168bd1 in mono_handle_native_sigsegv (signal=11, ctx=0xb604a41c)
    at mini-exceptions.c:1081
#4  0x08134022 in sigsegv_signal_handler (_dummy=11, info=0xb604a39c,
    context=0xb604a41c) at mini.c:11125
#5  <signal handler called>
#6  0x000002f8 in ?? ()
#7  0xb57a2e86 in ?? ()
#8  0x007dc440 in ?? ()
#9  0x00000003 in ?? ()
#10 0x005e0d40 in ?? ()
#11 0x007dc440 in ?? ()
#12 0x002f1460 in ?? ()
#13 0x003e8af0 in ?? ()
#14 0x010dd600 in ?? ()
#15 0x00a868a0 in ?? ()
#16 0x0024d4c8 in ?? ()
#17 0x00000000 in ?? ()

Thread 1 (Thread -1211287856 (LWP 25557)):
#0  0xb7e4c6c2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x081091aa in timedwait_signal_poll_cond (cond=0x8204fa0,
    mutex=0x8204f80, timeout=0x0, alertable=1) at handles.c:1423
#2  0x0810925c in _wapi_handle_wait_signal () at handles.c:1439
#3  0x0811c035 in WaitForMultipleObjectsEx (numobjects=2, 
handles=0x8425e00,
    waitall=0, timeout=4294967295, alertable=0) at wait.c:675
#4  0x080cfb3a in mono_thread_manage () at threads.c:2022
#5  0x0805a496 in mono_main (argc=9, argv=0xbf911e34) at driver.c:1044
#6  0x08059882 in main (argc=) at main.c:6
#0  0xb7e4c6c2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0


=================================================================
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.
=================================================================






More information about the Mono-list mailing list