[Mono-bugs] [Bug 528830] appdomain-unload.exe unit test fails

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 11 22:29:11 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=528830

User romain at blogreen.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=528830#c9





--- Comment #9 from Romain Tartière <romain at blogreen.org>  2009-09-11 20:29:09 MDT ---
Hum,I can't see any obvious problem in the threads backtrace when mono hangs
(see bellow)...

Any direction to look at for some race condition?

---------8<-----------------------------------------
(gdb) thread apply all bt

Thread 5 (Thread 0x29501040 (LWP 100335)):
#0  0x28680fac in _pthread_mutex_unlock (m=0x82bfdd0) at atomic.h:149
#1  0x286f1a22 in malloc () from /lib/libc.so.7
#2  0x286859da in _pthread_cleanup_push (routine=0x81caa70
<_wapi_handle_unlock_handle>, arg=0x585b) at
/usr/src/lib/libthr/thread/thr_clean.c:84
#3  0x081cb0f9 in WaitForSingleObjectEx (handle=0x585b, timeout=4294967295,
alertable=1) at ../../../mono/mono/io-layer/wait.c:147
#4  0x081024cd in mono_domain_unload (domain=0x8324b40) at
./../../mono/mono/metadata/appdomain.c:2188
#5  0x29cd2fd7 in ?? ()
#6  0x08324b40 in ?? ()
#7  0x00000000 in ?? ()
#8  0x0838f198 in ?? ()
#9  0x0838f198 in ?? ()
#10 0xbfbfe218 in ?? ()
#11 0xbfbfe3e4 in ?? ()
#12 0x29505588 in ?? ()
#13 0xbfbfe238 in ?? ()
#14 0x29cd2fc1 in ?? ()
#15 0x08359468 in ?? ()
#16 0x0838f198 in ?? ()
#17 0x2950eb14 in ?? ()
#18 0xbfbfe238 in ?? ()
#19 0x29cd2fb4 in ?? ()
#20 0xbfbfe258 in ?? ()
#21 0x29ce2ccd in ?? ()
#22 0x00000002 in ?? ()
#23 0x08359468 in ?? ()
#24 0xbfbfe24c in ?? ()
#25 0xbfbfe2b8 in ?? ()
#26 0x2950eb14 in ?? ()
#27 0x08359468 in ?? ()
#28 0xbfbfe2b8 in ?? ()
#29 0x2a218a72 in ?? ()
#30 0x0838f198 in ?? ()
#31 0x083e2d10 in ?? ()
#32 0x083ca570 in ?? ()
#33 0x08174c89 in mono_runtime_class_init (vtable=0x2) at
./../../mono/mono/metadata/object.c:235
Previous frame inner to this frame (corrupt stack?)

Thread 4 (Thread 0x29501260 (LWP 100259)):
#0  0x287483cf in nanosleep () from /lib/libc.so.7
#1  0x2867ddcb in __nanosleep (time_to_sleep=0xbf9fef84, time_remaining=0x0) at
/usr/src/lib/libthr/thread/thr_syscalls.c:311
#2  0x081b1e41 in collection_thread (unused=0x0) at
./../../mono/mono/io-layer/collection.c:34
#3  0x2867b7bf in thread_start (curthread=0x29501260) at
/usr/src/lib/libthr/thread/thr_create.c:288
#4  0x00000000 in ?? ()

Thread 3 (Thread 0x29501370 (LWP 100261)):
#0  0x28686287 in _umtx_op_err () at
/usr/src/lib/libthr/arch/i386/i386/_umtx_op_err.S:36
#1  0x28685c79 in _thr_umtx_wait_uint (mtx=0x295066ac, id=0, timeout=0x0,
shared=0) at /usr/src/lib/libthr/thread/thr_umtx.c:151
#2  0x2867afbc in _sem_wait (sem=0x82a25b4) at
/usr/src/lib/libthr/thread/thr_sem.c:211
#3  0x08125596 in finalizer_thread (unused=0x0) at
./../../mono/mono/metadata/gc.c:1014
#4  0x0819b779 in start_wrapper (data=0x2957ab60) at
./../../mono/mono/metadata/threads.c:657
#5  0x081ce0f2 in thread_start_routine (args=0x2957c1f4) at
./../../mono/mono/io-layer/wthreads.c:286
#6  0x081e935e in GC_start_routine (arg=0x8348fd0) at
./../mono/libgc/pthread_support.c:1390
#7  0x2867b7bf in thread_start (curthread=0x29501370) at
/usr/src/lib/libthr/thread/thr_create.c:288
#8  0x00000000 in ?? ()
Current language:  auto; currently asm

Thread 2 (Thread 0x29febf00 (LWP 100309)):
#0  0x2875695b in gettimeofday () from /lib/libc.so.7
#1  0x2874839d in time () from /lib/libc.so.7
#2  0x081b5c69 in _wapi_handle_ref (handle=0x5801) at
./../../mono/mono/io-layer/handles.c:1007
#3  0x081cb29a in WaitForSingleObjectEx (handle=0x5801, timeout=4294967295,
alertable=1) at handles-private.h:259
#4  0x081a15a2 in async_invoke_thread (data=0x0) at
./../../mono/mono/metadata/threadpool.c:1487
#5  0x0819b779 in start_wrapper (data=0x2a301060) at
./../../mono/mono/metadata/threads.c:657
#6  0x081ce0f2 in thread_start_routine (args=0x2957d388) at
./../../mono/mono/io-layer/wthreads.c:286
#7  0x081e935e in GC_start_routine (arg=0x8409eb0) at
./../mono/libgc/pthread_support.c:1390
#8  0x2867b7bf in thread_start (curthread=0x29febf00) at
/usr/src/lib/libthr/thread/thr_create.c:288
#9  0xbf6eafec in ?? ()

Thread 1 (Thread 0x2a33e260 (LWP 100354)):
#0  0x28686287 in _umtx_op_err () at
/usr/src/lib/libthr/arch/i386/i386/_umtx_op_err.S:36
#1  0x28685e68 in _thr_ucond_wait (cv=0x2956b5e0, m=0x2956b5c0, timeout=0x0,
check_unparking=1) at /usr/src/lib/libthr/thread/thr_umtx.c:179
#2  0x2868405d in cond_wait_common (cond=0x2957c04c, mutex=0x2957c048,
abstime=0x0, cancel=1) at /usr/src/lib/libthr/thread/thr_cond.c:204
#3  0x081b786d in _wapi_handle_timedwait_signal_handle (handle=0x5801,
timeout=0x0, alertable=1, poll=0) at ../../../mono/mono/io-layer/handles.c:1611
#4  0x081b78e4 in _wapi_handle_wait_signal_handle (handle=0x5801, alertable=1)
at ../../../mono/mono/io-layer/handles.c:1554
#5  0x081cb39e in WaitForSingleObjectEx (handle=0x5801, timeout=4294967295,
alertable=1) at ../../../mono/mono/io-layer/wait.c:205
#6  0x081a15a2 in async_invoke_thread (data=0x0) at
./../../mono/mono/metadata/threadpool.c:1487
#7  0x0819b779 in start_wrapper (data=0x2a301360) at
./../../mono/mono/metadata/threads.c:657
#8  0x081ce0f2 in thread_start_routine (args=0x2957d5e0) at
./../../mono/mono/io-layer/wthreads.c:286
#9  0x081e935e in GC_start_routine (arg=0x8444650) at
./../mono/libgc/pthread_support.c:1390
#10 0x2867b7bf in thread_start (curthread=0x2a33e260) at
/usr/src/lib/libthr/thread/thr_create.c:288
#11 0x00000000 in ?? ()
---------8<-----------------------------------------

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list