[Mono-bugs] [Bug 81974][Cri] Changed - GC crashes if there are more than about 160 threads.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 28 21:28:38 EDT 2007


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 patperry at stanford.edu.

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

--- shadow/81974	2007-06-28 21:17:21.000000000 -0400
+++ shadow/81974.tmp.7270	2007-06-28 21:28:38.000000000 -0400
@@ -1,10 +1,10 @@
 Bug#: 81974
 Product: Mono: Runtime
 Version: 1.2
-OS: Mac OS X 10.3
+OS: All
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Critical
 Component: GC
@@ -80,6 +80,27 @@
 I am reporting the bug again to demonstrate that the problem has nothing to
 do with embedding the runtime.
 
 I'm pretty sure the comment from Brian Berg explains what the problem is. 
 The GC has an array of threads which is hardcoded to be of length 128. 
 Really, the array should grow dynamically if more than 128 threads are active.
+
+------- Additional Comments From patperry at stanford.edu  2007-06-28 21:28 -------
+On Linux, I don't get a deadlock, but if I change ThreadCount to 2000,
+ after about 7 or 8 "Success!" messages I get the exception:
+
+** (ThreadBug.exe:23353): WARNING **: CreateThread: error creating
+thread handle
+
+** (ThreadBug.exe:23353): WARNING **:
+ves_icall_System_Threading_Thread_Thread_internal: CreateThread error 0x1f
+
+Unhandled Exception: System.SystemException: Thread creation failed.
+  at System.Threading.Thread.Start () [0x00000] 
+  at ThreadBug.Main () [0x00000] 
+
+** (ThreadBug.exe:23353): WARNING **: _wapi_thread_abandon_mutexes:
+error looking up thread handle 0x998
+
+** (ThreadBug.exe:23353): WARNING **:
+_wapi_thread_set_termination_details: error looking up thread handle 0x998
+


More information about the mono-bugs mailing list