[Mono-bugs] [Bug 31448][Nor] New - program does not exit after Thread.Join
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
29 Sep 2002 16:31:16 -0000
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 vargaz@freemail.hu.
http://bugzilla.ximian.com/show_bug.cgi?id=31448
--- shadow/31448 Sun Sep 29 12:31:16 2002
+++ shadow/31448.tmp.22462 Sun Sep 29 12:31:16 2002
@@ -0,0 +1,24 @@
+Bug#: 31448
+Product: Mono/Runtime
+Version: unspecified
+OS: Debian Woody
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vargaz@freemail.hu
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: program does not exit after Thread.Join
+
+The attached testcase (sometimes) fails to exit when run under mono.
+I debugged this one a bit, and I think the problem is a race condition in
+threads.c: sometimes a thread exits and calls handle_remove() before
+mono_thread_create() calls handle_store(), meaning an entry remains in the
+threads hashtable even through the thread is exited. This leads to an
+infinite wait in mono_thread_cleanup().