[GHC] #5604: Thread handle leak in runtime
GHC
cvs-ghc at haskell.org
Fri Nov 11 14:00:04 CET 2011
#5604: Thread handle leak in runtime
-----------------------------+----------------------------------------------
Reporter: yurij | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.4.1
Component: Runtime System | Version: 7.2.1
Resolution: fixed | Keywords: _endthreadex, shutdownThread
Testcase: | Blockedby:
Difficulty: | Os: Windows
Blocking: | Architecture: x86
Failure: Other |
-----------------------------+----------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => fixed
Comment:
I think this is now fixed
* In a test program with no `hs_init/hs_exit` I see 2 thread handles open
at the end of main
* After calling `hs_init/hs_exit`, with 7.2.1 I see 5 thread handles
* with these patches, we're back to 2 handles open after `hs_exit`. So I
think all the leaks are plugged.
I don't know how to make an automatic test case. If you can make a
program to test this, please attach it to the ticket and we'll put it in
the test suite.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5604#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list