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

#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

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

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

#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

#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:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC