[GHC] #9722: ghcirun004 intermittently fails with ghc: ioManagerWakeup: write: Bad file descriptor

GHC ghc-devs at haskell.org
Mon Mar 9 15:38:45 UTC 2015


#9722: ghcirun004 intermittently fails with ghc: ioManagerWakeup: write: Bad file
descriptor
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                   Owner:  simonmar
            Type:  bug               |                  Status:  patch
        Priority:  high              |               Milestone:  7.10.1
       Component:  Runtime System    |                 Version:  7.9
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Runtime crash     |  Unknown/Multiple
      Blocked By:                    |               Test Case:  ghcirun004
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:  Phab:D714
-------------------------------------+-------------------------------------

Comment (by thomie):

 I build a fresh ghc head (commit 8b7534b39052c9cb44411bea0ca311a751564d6c)
 with the change to `ioManagerWakeup` from comment:23.

 {{{
 $ ~/ghc-master-build/inplace/bin/ghc-stage2 -threaded -rtsopts T9722.hs
 $ ./T9722 +RTS -I0.000000001
 ioManagerWakeup: write(A): Bad file descriptor
 T9722: ioManagerWakeup: write; fd: 9: Bad file descriptor
 }}}

 I don't understand why the output is different when I redirect it to a
 file. But in case it gives you a clue, here it is:
 {{{
 $ ./T9722 +RTS -I0.000000001 > T9722.stderr
 $ cat T9722.stderr
 ioManagerWakeup: write(A): Bad file descriptor
 T9722: ioManagerWakeup: write; fd: 9: Invalid argument
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9722#comment:24>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list