[Mono-bugs] [Bug 73228][Blo] New - Method WaitForExit in class System.Diagnostics.Process (System assembly) is blocking forever

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Mar 2005 14:47:27 -0500 (EST)


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 rafaelteixeirabr@hotmail.com.

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

--- shadow/73228	2005-03-02 14:47:27.000000000 -0500
+++ shadow/73228.tmp.5029	2005-03-02 14:47:27.000000000 -0500
@@ -0,0 +1,63 @@
+Bug#: 73228
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: Fedora Core 2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rafaelteixeirabr@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Method WaitForExit in class System.Diagnostics.Process (System assembly) is blocking forever
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+With current SVN HEAD:
+
+Spawn a child process, redirecting it's output, and call the method before
+closing the child process. It will wait forever.
+
+It was detected while using the gnuchess engine with the csboard program,
+but then I was able to reproduce the problem with mbas and mcs
+
+Steps to reproduce the problem:
+1. type 'mcs -pkg:xxx'
+2. it will show the error message:
+
+Package xxx was not found in the pkg-config search path.
+Perhaps you should add the directory containing `xxx.pc'
+to the PKG_CONFIG_PATH environment variable
+No package 'xxx' found
+
+3. Then it just stops. It's waiting forever as this tail of tracing it shows:
+. . . . ENTER: (wrapper remoting-invoke-with-check)
+System.Diagnostics.Process:WaitForExit
+()(this:0x886efa0[System.Diagnostics.Process mcs.exe], )
+. . . . . ENTER: System.Diagnostics.Process:WaitForExit
+()(this:0x886efa0[System.Diagnostics.Process mcs.exe], )
+. . . . . . ENTER: (wrapper remoting-invoke-with-check)
+System.Diagnostics.Process:WaitForExit_internal
+(intptr,int)(this:0x886efa0[System.Diagnostics.Process mcs.exe], 0x463, -1, )
+. . . . . . . ENTER: (wrapper managed-to-native)
+System.Diagnostics.Process:WaitForExit_internal
+(intptr,int)(this:0x886efa0[System.Diagnostics.Process mcs.exe], 0x463, -1, )
+
+
+Actual Results:
+mcs with -pkg: hangs
+
+Expected Results:
+continuing the processing
+
+How often does this happen? 
+always
+
+Additional Information: