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

GHC cvs-ghc at haskell.org
Wed May 1 21:08:41 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:                  
----------------------------------------+-----------------------------------
Description changed by nfrisby:

Old description:

> I'm on OS X 10.7.5
>
> ghc : ade1ae97ed52c493ec415c1601dace39b64071dd
>
> testsuite : 743cab5865ae0b9820dadc33a692511e0e467b9b
>
> base : b3387abfbc94b69e977c232386acad4dde7597e8
>
> hClose002 fails with these three ways:
>
> $ make TESTS=hClose002
> # ... snip ...
> Unexpected failures:
>    ../../libraries/base/tests/IO  hClose002 [bad exit code]
> (ghci,threaded1,threaded2)
>
> 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.

New description:

 I'm on OS X 10.7.5

 {{{
 ghc : ade1ae97ed52c493ec415c1601dace39b64071dd
 testsuite : 743cab5865ae0b9820dadc33a692511e0e467b9b
 base : b3387abfbc94b69e977c232386acad4dde7597e8
 }}}

 hClose002 fails with these three ways:

 {{{
 $ make TESTS=hClose002
 # ... snip ...
 Unexpected failures:
    ../../libraries/base/tests/IO  hClose002 [bad exit code]
 (ghci,threaded1,threaded2)
 }}}

 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#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list