[Mono-bugs] [Bug 57548][Cri] Changed - mono/test delegate1.exe (crashes)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 28 Jun 2004 14:10:43 -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 umuff@quark.com.

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

--- shadow/57548	2004-06-18 05:19:02.000000000 -0400
+++ shadow/57548.tmp.18339	2004-06-28 14:10:43.000000000 -0400
@@ -1,12 +1,12 @@
 Bug#: 57548
 Product: Mono: Runtime
 Version: unspecified
 OS: Mac OS X 10.3
 OS Details: 
-Status: NEEDINFO   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Critical
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: umuff@quark.com               
@@ -154,6 +154,204 @@
 *** Bug 58501 has been marked as a duplicate of this bug. ***
 
 ------- Additional Comments From dick@ximian.com  2004-06-18 05:19 -------
 Urs, can you try latest CVS and see if this problem has gone away? 
 The traces look slightly different to the ones I think I've fixed, but
 its quite possible its the same bug in libgc I fixed this morning.
+
+------- Additional Comments From umuff@quark.com  2004-06-28 14:10 -------
+Still occuring with RC1 and current CVS (6-28-04 12:00 PM MST).
+
+** ERROR **: file wait.c: line 70 (WaitForSingleObjectEx): assertion failed: (thr_ret == 0)
+
+debug session:
+
+Breakpoint 2, 0xeff9b348 in g_log ()
+(gdb) thread apply all bt
+
+Thread 7 (process 23449 thread 0x3103):
+#0  0x90017048 in semaphore_wait_signal_trap ()
+#1  0x90002300 in pthread_mutex_lock ()
+#2  0x004d0e64 in EnterCriticalSection (section=0x1a03) at critical-sections.c:151
+#3  0x00485bd0 in mono_ldstr (domain=0x28f18, image=0xa00011ac, idx=6915) at 
+object.c:2377
+#4  0x004382e0 in mono_method_to_ir (cfg=0x37ee60, method=0x37e360, 
+start_bblock=0x0, end_bblock=0x55301c, locals_offset=3665504, return_var=0x442d80, 
+dont_inline=0xf0c05630, inline_args=0x0, inline_offset=4468384, is_virtual_call=
+-1879039648) at mini.c:3875
+#5  0x00442ea0 in mini_method_compile (method=0x37ee60, opts=1879073829, 
+domain=0x3831650, run_cctors=58924736, parts=24010774) at mini.c:7658
+#6  0x00443740 in mono_jit_compile_method_inner (method=0x0, 
+target_domain=0x3831ec0) at mini.c:7946
+#7  0x0045e97c in ppc_magic_trampoline (method=0x3831ec0, code=0xf0c05390, 
+sp=0x3831650 "\003\203\035`\003\203\035\210") at tramp-ppc.c:106
+#8  0x0380c114 in ?? ()
+#9  0x002a6ba4 in ?? ()
+#10 0x002a6aa8 in ?? ()
+#11 0x002a654c in ?? ()
+#12 0x002a63bc in ?? ()
+#13 0x002a6338 in ?? ()
+#14 0x0028e84c in ?? ()
+#15 0x000ec290 in ?? ()
+#16 0x000ec214 in ?? ()
+#17 0x000ec088 in ?? ()
+#18 0x004848fc in mono_runtime_invoke_array (method=0x37ee60, obj=0x3831e18, 
+params=0x0, exc=0x29) at object.c:1554
+#19 0x004a3d80 in mono_async_invoke (ares=0x33ea0) at threadpool.c:69
+#20 0x004a4344 in async_invoke_thread (data=0x17) at threadpool.c:248
+#21 0x004a1f14 in start_wrapper (data=0x0) at threads.c:253
+#22 0x004e214c in timed_thread_start_routine (args=0x350d20) at timed-thread.c:134
+#23 0x900247e8 in _pthread_body ()
+
+Thread 6 (process 23449 thread 0x2e03):
+#0  0xeff9b348 in g_log ()
+#1  0x004e2a50 in WaitForSingleObjectEx (handle=0x14, timeout=100, alertable=1) at 
+wait.c:70
+#2  0x004a1884 in mono_monitor_try_enter (obj=0xfcfc0, ms=4294967295) at 
+monitor.c:198
+#3  0x00290e58 in ?? ()
+#4  0x00290cfc in ?? ()
+#5  0x002a6314 in ?? ()
+#6  0x0028e84c in ?? ()
+#7  0x000ec290 in ?? ()
+#8  0x000ec214 in ?? ()
+#9  0x000ec088 in ?? ()
+#10 0x004848fc in mono_runtime_invoke_array (method=0xfcfc0, obj=0xf2fc8, 
+params=0x3818c00, exc=0x31f20) at object.c:1554
+#11 0x004a3d80 in mono_async_invoke (ares=0x33ed0) at threadpool.c:69
+#12 0x004a4344 in async_invoke_thread (data=0xffffffff) at threadpool.c:248
+#13 0x004a1f14 in start_wrapper (data=0x2ab00) at threads.c:253
+#14 0x004e214c in timed_thread_start_routine (args=0x3499a0) at timed-thread.c:134
+#15 0x900247e8 in _pthread_body ()
+
+Thread 5 (process 23449 thread 0x2b03):
+#0  0x90017048 in semaphore_wait_signal_trap ()
+#1  0x90002300 in pthread_mutex_lock ()
+#2  0x004d0e64 in EnterCriticalSection (section=0x0) at critical-sections.c:151
+#3  0x00485bd0 in mono_ldstr (domain=0x28f18, image=0xa00011ac, idx=6915) at 
+object.c:2377
+#4  0x004382e0 in mono_method_to_ir (cfg=0x353040, method=0x37e360, 
+start_bblock=0x0, end_bblock=0x55301c, locals_offset=3485760, return_var=0x442d80, 
+dont_inline=0xf0803630, inline_args=0x0, inline_offset=4468384, is_virtual_call=
+-1879044080) at mini.c:3875
+#5  0x00442ea0 in mini_method_compile (method=0x353040, opts=1879073909, 
+domain=0x3839450, run_cctors=58958280, parts=24010802) at mini.c:7658
+#6  0x00443740 in mono_jit_compile_method_inner (method=0x0, 
+target_domain=0x383a1c8) at mini.c:7946
+#7  0x0045e97c in ppc_magic_trampoline (method=0x383a1c8, code=0xf0803390, 
+sp=0x3839450 "\003\203?h\003\203?\220\003\203\236\b") at tramp-ppc.c:106
+#8  0x0380c114 in ?? ()
+#9  0x002a6ba4 in ?? ()
+#10 0x002a6aa8 in ?? ()
+#11 0x002a654c in ?? ()
+#12 0x002a63bc in ?? ()
+#13 0x002a6338 in ?? ()
+#14 0x0028e84c in ?? ()
+#15 0x000ec290 in ?? ()
+#16 0x000ec214 in ?? ()
+#17 0x000ec088 in ?? ()
+#18 0x004848fc in mono_runtime_invoke_array (method=0x353040, obj=0x383a120, 
+params=0x0, exc=0x45) at object.c:1554
+#19 0x004a3d80 in mono_async_invoke (ares=0x33f00) at threadpool.c:69
+#20 0x004a4344 in async_invoke_thread (data=0x17) at threadpool.c:248
+#21 0x004a1f14 in start_wrapper (data=0x0) at threads.c:253
+#22 0x004e214c in timed_thread_start_routine (args=0x349a50) at timed-thread.c:134
+#23 0x900247e8 in _pthread_body ()
+
+Thread 4 (process 23449 thread 0x2803):
+#0  0x90018ce8 in semaphore_timedwait_signal_trap ()
+#1  0x9000e888 in _pthread_cond_wait ()
+#2  0x004d6760 in _wapi_handle_timedwait_signal_handle (handle=0x31, 
+timeout=0xf0602810) at handles.c:1548
+#3  0x004e2b24 in WaitForSingleObjectEx (handle=0x12, timeout=100, 
+alertable=1073741824) at wait.c:111
+#4  0x004a1884 in mono_monitor_try_enter (obj=0xfcfc0, ms=4294967295) at 
+monitor.c:198
+#5  0x00290e58 in ?? ()
+#6  0x00290cfc in ?? ()
+#7  0x002a6314 in ?? ()
+#8  0x0028e84c in ?? ()
+#9  0x000ec290 in ?? ()
+#10 0x000ec214 in ?? ()
+#11 0x000ec088 in ?? ()
+#12 0x004848fc in mono_runtime_invoke_array (method=0xfcfc0, obj=0xf2fc8, 
+params=0x3818400, exc=0x31fa0) at object.c:1554
+#13 0x004a3d80 in mono_async_invoke (ares=0x33f30) at threadpool.c:69
+#14 0x004a4344 in async_invoke_thread (data=0xffffffff) at threadpool.c:248
+#15 0x004a1f14 in start_wrapper (data=0x2ab00) at threads.c:253
+#16 0x004e214c in timed_thread_start_routine (args=0x349280) at timed-thread.c:134
+#17 0x900247e8 in _pthread_body ()
+
+Thread 3 (process 23449 thread 0x2403):
+#0  0x90018ce8 in semaphore_timedwait_signal_trap ()
+#1  0x9000e888 in _pthread_cond_wait ()
+#2  0x004d6680 in _wapi_handle_wait_signal_handle (handle=0x1903) at handles.c:1510
+#3  0x004e2b14 in WaitForSingleObjectEx (handle=0xe, timeout=4294967295, 
+alertable=1848) at wait.c:109
+#4  0x004a40f4 in mono_thread_pool_finish (ares=0x33f30, out_args=0xf04019c4, 
+exc=0xf04019c0) at threadpool.c:177
+#5  0x00498ac4 in mono_delegate_end_invoke (delegate=0xf2fc8, params=0xf0401a40) 
+at marshal.c:1421
+#6  0x000ec764 in ?? ()
+#7  0x000eb0e4 in ?? ()
+#8  0x000ea8c8 in ?? ()
+#9  0x0048458c in mono_runtime_exec_main (method=0xf0401a40, args=0x28f18, 
+exc=0x0) at object.c:1457
+#10 0x00484184 in mono_runtime_run_main (method=0x338300, argc=3392768, 
+argv=0xf0401a40, exc=0x0) at object.c:1319
+#11 0x004a1f14 in start_wrapper (data=0x3814600) at threads.c:253
+#12 0x004e214c in timed_thread_start_routine (args=0x337c60) at timed-thread.c:134
+#13 0x900247e8 in _pthread_body ()
+
+Thread 2 (process 23449 thread 0x1103):
+#0  0x90018ce8 in semaphore_timedwait_signal_trap ()
+#1  0x9000e888 in _pthread_cond_wait ()
+#2  0x004d6680 in _wapi_handle_wait_signal_handle (handle=0x1303) at handles.c:1510
+#3  0x004e2b14 in WaitForSingleObjectEx (handle=0x3, timeout=4294967295, 
+alertable=396) at wait.c:109
+#4  0x004959b0 in finalizer_thread (unused=0x31) at gc.c:532
+#5  0x004a1f14 in start_wrapper (data=0x3811a00) at threads.c:253
+#6  0x004e214c in timed_thread_start_routine (args=0x32df10) at timed-thread.c:134
+#7  0x900247e8 in _pthread_body ()
+
+Thread 1 (process 23449 local thread 0x2507):
+#0  0x90018ce8 in semaphore_timedwait_signal_trap ()
+#1  0x9000e888 in _pthread_cond_wait ()
+#2  0x004d6680 in _wapi_handle_wait_signal_handle (handle=0x1503) at handles.c:1510
+#3  0x004e2b14 in WaitForSingleObjectEx (handle=0x8, timeout=4294967295, 
+alertable=1056) at wait.c:109
+#4  0x004e30ac in WaitForMultipleObjectsEx (numobjects=1, handles=0x3814a00, 
+waitall=1, timeout=4294967295, alertable=0) at wait.c:426
+#5  0x004a2f0c in wait_for_tids (wait=0x3814a00, timeout=99492000) at threads.c:1235
+#6  0x004a31a4 in mono_thread_manage () at threads.c:1373
+#7  0x0044efb4 in mono_main (argc=2, argv=0xbffffb9c) at driver.c:801
+#8  0x0000194c in _start (argc=3336944, argv=0x1, envp=0x4) at /SourceCache/Csu/
+Csu-47/crt.c:267
+#9  0x8fe1a58c in __dyld__dyld_start ()
+#0  0xeff9b348 in g_log ()
+(gdb) l
+1       #include "mini.h"
+2
+3       int
+4       main (int argc, char* argv[])
+5       {
+6               return mono_main (argc, argv);
+7       }
+8
+(gdb) up
+#1  0x004e2a50 in WaitForSingleObjectEx (handle=0x14, timeout=100, alertable=1) at 
+wait.c:70
+warning: Source file is more recent than executable.
+
+70              g_assert (thr_ret == 0);
+(gdb) l
+65      #endif
+66
+67              pthread_cleanup_push ((void(*)(void *))_wapi_handle_unlock_handle,
+68                                    handle);
+69              thr_ret = _wapi_handle_lock_handle (handle);
+70              g_assert (thr_ret == 0);
+71
+72              if(_wapi_handle_test_capabilities (handle,
+73                                                 WAPI_HANDLE_CAP_OWN)==TRUE) {
+74                      if(_wapi_handle_ops_isowned (handle)==TRUE) {
+