[Mono-bugs] [Bug 78241][Maj] Changed - CreateThread failure/out of wapi handles slots

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 3 05:40:17 EDT 2006


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 informatique.internet at fiducial.fr.

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

--- shadow/78241	2006-05-02 11:42:31.000000000 -0400
+++ shadow/78241.tmp.4254	2006-05-03 05:40:17.000000000 -0400
@@ -283,6 +283,31 @@
 
 
 ------- Additional Comments From informatique.internet at fiducial.fr  2006-05-02 11:42 -------
 Created an attachment (id=16896)
 Hps log (when mod_mono_server crash)
 
+
+------- Additional Comments From informatique.internet at fiducial.fr  2006-05-03 05:40 -------
+if is enabled
+you get this (with my program which create processes)
+
+** Message: _wapi_handle_ref: Process handle 0x516 ref now 2
+Started 269
+** Message: _wapi_handle_ref: Thread handle 0x400 ref now 292
+** Message: : Closing process 0x50eb0, handle 0x516
+** Message: _wapi_handle_unref: Process handle 0x516 ref now 1
+(destroy FALSE)
+Killed
+
+why destroy always=FALSE;
+I've seen this in handle.c	:
+
+/* Possible race condition here if another thread refs the
+	 * handle between here and setting the type to UNUSED.  I
+	 * could lock a mutex, but I'm not sure that allowing a handle
+	 * reference to reach 0 isn't an application bug anyway.
+	 */
+	destroy = (InterlockedDecrement (&_WAPI_PRIVATE_HANDLES(idx).ref) ==0);
+
+is there a bug here?
+


More information about the mono-bugs mailing list