[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 17 03:41:32 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-16 16:16:56.000000000 -0400
+++ shadow/78241.tmp.9311	2006-05-17 03:41:32.000000000 -0400
@@ -621,6 +621,73 @@
 ff0 (  1) [ Thread]  544 Un (proc: 26165, state: 0, exit: 0, join: 0)
 ...
 
 
 ------- Additional Comments From dick at ximian.com  2006-05-16 16:16 -------
 Should null.exe exist, or does it not matter?
+
+------- Additional Comments From informatique.internet at fiducial.fr  2006-05-17 03:41 -------
+Ok, i experienced the same problem as Robert. The thread created by
+the launched process aren't correctly cleaned after the launched dies.
+
+Simple example with a simple ASP.NET page
+
+I launch xsp :
+
+collection: 0 sem: 0x4d062296
+  1 (  1) [Process]    8 Un ([                  xsp.exe] pid: 20525
+exit: 0)
+  2 (  1) [ Thread]    8 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  3 (  1) [ Thread]    8 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  4 (  1) [ Thread]    8 Sg (proc: 20525, state: 1, exit: 0, join: 0)
+  5 (  1) [ Thread]    8 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  6 (  1) [ Thread]    1 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  7 (  1) [ Thread]    1 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  8 (  1) [ Thread]    1 Un (proc: 20525, state: 0, exit: 0, join: 0)
+
+All is normal
+
+I hit the WebForm1.aspx page with my browser :
+hubert at hublinux ~/applications/IntranetAdmin $ mono --wapi=hps
+collection: 0 sem: 0x4d062296
+  1 (  1) [Process]    9 Un ([                  xsp.exe] pid: 20525
+exit: 0)
+  2 (  1) [ Thread]    9 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  3 (  1) [ Thread]    9 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  4 (  1) [ Thread]    9 Sg (proc: 20525, state: 1, exit: 0, join: 0)
+  5 (  1) [ Thread]    9 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  6 (  1) [ Thread]    2 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  7 (  1) [ Thread]    2 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  8 (  1) [ Thread]    2 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  9 (  1) [ Thread]    1 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  a (  1) [ Thread]    1 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  b (  2) [Process]    0 Un ([             /usr/bin/mcs] pid: 20536
+exit: 0)
+  c (  1) [ Thread]    0 Un (proc: 20536, state: 0, exit: 0, join: 0)
+  d (  1) [ Thread]    0 Un (proc: 20536, state: 0, exit: 0, join: 0)
+
+I see that mcs is compiling my page : it has launched two threads (c
+and d handle)
+
+Now the page is displayed in my browser, what hps said?:
+
+
+collection: 0 sem: 0x4d062296
+  1 (  1) [Process]    9 Un ([                  xsp.exe] pid: 20525
+exit: 0)
+  2 (  1) [ Thread]    9 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  3 (  1) [ Thread]    9 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  4 (  1) [ Thread]    9 Sg (proc: 20525, state: 1, exit: 0, join: 0)
+  5 (  1) [ Thread]    9 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  6 (  1) [ Thread]    2 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  7 (  1) [ Thread]    2 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  8 (  1) [ Thread]    2 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  9 (  1) [ Thread]    1 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  a (  1) [ Thread]    1 Un (proc: 20525, state: 0, exit: 0, join: 0)
+  c (  1) [ Thread]    0 Un (proc: 20536, state: 0, exit: 0, join: 0)
+  d (  1) [ Thread]    0 Sg (proc: 20536, state: 1, exit: 0, join: 0)
+Fileshare hwm: 0
+
+I see that mcs (pid 20536) has exited and there's still the two thread
+created by mcs (c and d) handle!
+
+That's the problem, there should'nt be here!


More information about the mono-bugs mailing list