[Mono-bugs] [Bug 68134][Maj] New - Mono runtime hangs
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 12 Oct 2004 17:39:44 -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 cmcclellen@weather.com.
http://bugzilla.ximian.com/show_bug.cgi?id=68134
--- shadow/68134 2004-10-12 17:39:44.000000000 -0400
+++ shadow/68134.tmp.25402 2004-10-12 17:39:44.000000000 -0400
@@ -0,0 +1,62 @@
+Bug#: 68134
+Product: Mono: Runtime
+Version: unspecified
+OS: other
+OS Details: FreeBSD 4.8 stable
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: cmcclellen@weather.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mono runtime hangs
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+mcs will hang about half the time. We've tried all versions of mono
+since 0.97, up to 1.0. Bascially, mcs will say "Compilation Succeeded",
+and never exit. We have to ctrl-c out of it, and re-run the compiler.
+Eventually, compiles will succeed and mcs will exit. Debugging mono with
+gdb when it is hung during compile shows several threads waiting in
+pthread_cond_timedwait.
+
+
+We are also seeing hangs doing async IO, which may be related. Here is a
+partial traceback of an application that gets stuck during a BeginReceive:
+
+#0 0x283a0a57 in _cond_wait_backout () from /usr/lib/libc_r.so.4
+#1 0x283a0969 in pthread_cond_broadcast () from /usr/lib/libc_r.so.4
+#2 0x28150e05 in ReleaseSemaphore (handle=0x13, count=1, prevcount=0x0)
+ at ../../mono/io-layer/handles-private.h:261
+#3 0x28115a27 in mono_thread_pool_add (target=0x93db370, msg=0x8c0e8c0,
+ async_callback=0x0, state=0x0) at threadpool.c:140
+#4 0x28109812 in mono_delegate_begin_invoke (delegate=0x93db370,
+ params=0x8efeb44) at marshal.c:1171
+
+Of course, they might be completely unrelated, but it seems suspicious
+that mono gets stuck waiting on condition variables. Again, the OS in
+question is FreeBSD 4.8
+
+
+Steps to reproduce the problem:
+1. Try to compile something with mcs.
+2.
+3.
+
+Actual Results:
+Compiler hangs
+
+Expected Results:
+Compiler will exit
+
+How often does this happen?
+About half the time we invoke mcs.
+
+Additional Information: