[GHC] #2835: Handles leak to processes spawned by
runInteractiveProcess
GHC
trac at galois.com
Mon Dec 1 16:49:49 EST 2008
#2835: Handles leak to processes spawned by runInteractiveProcess
-----------------------------+----------------------------------------------
Reporter: sclv | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/process
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
I believe this is related to
http://hackage.haskell.org/trac/ghc/ticket/2650 however this occurs on
Linux and Windows both, as far as I can tell.
Attached is the test case. It opens a simple server which echoes
everything to stdout with two exceptions: commands beginning with q signal
"quit" and commands beginning with "l" signal launching a new process.
{{{
1) Launch sockLeak. Telnet to port 9020. Type in some junk. It will be
echoed.
2) Type in "q". The connection will terminate.
3) Telnet in again. This time, type "l". Now type "q". The connection has
not terminated.
4) This is clearly because the handle to the socket has gotten passed to
the child process somehow.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2835>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list