Bugzilla – Bug 317362
Method WaitForExit in class System.Diagnostics.Process (System assembly) is blocking forever
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by rafaelteixeirabr@hotmail.com 2005-03-02 14:47:27 MST ---- 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: ---- Additional Comments From dick@ximian.com 2005-03-03 13:26:21 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO73227 *** Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Fedora Core 2</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"