[GHC] #7876: hClose002 for ghci hangs on Mac OS X

GHC cvs-ghc at haskell.org
Wed May 1 20:57:51 CEST 2013


#7876: hClose002 for ghci hangs on Mac OS X
----------------------------------------+-----------------------------------
Reporter:  nfrisby                      |          Owner:                  
    Type:  bug                          |         Status:  new             
Priority:  normal                       |      Component:  Compiler        
 Version:  7.6.3                        |       Keywords:                  
      Os:  MacOS X                      |   Architecture:  Unknown/Multiple
 Failure:  Incorrect result at runtime  |      Blockedby:                  
Blocking:                               |        Related:                  
----------------------------------------+-----------------------------------
 I'm on 10.7.5

 ghc : ade1ae97ed52c493ec415c1601dace39b64071dd
 testsuite : 743cab5865ae0b9820dadc33a692511e0e467b9b
 base : b3387abfbc94b69e977c232386acad4dde7597e8

 When I validate, hClose002 hangs. If I execute the hClose002 program, I
 get what seems to be the expected output. If I run the script through
 ghci, it hangs.

 The test opens a file in WriteMode, closes it "without telling the IO
 library", then hCloses it twice. Then it does that again in ReadMode. Thus
 there are four hClose calls in total. It is the third one that hangs.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7876>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list