#5544: threadDelay with large values crashes the IO manager on 64-bit OS X
-------------------------------+--------------------------------------------
Reporter: carlhowells | Owner:
Type: bug | Status: new
Priority: normal | Component: Runtime System
Version: 7.2.1 | Keywords:
Testcase: | Blockedby:
Os: MacOS X | Blocking:
Architecture: x86_64 (amd64) | Failure: None/Unknown
-------------------------------+--------------------------------------------
{{{
System Version: Mac OS X 10.6.8 (10K540)
Kernel Version: Darwin 10.8.0
}}}
{{{
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.2.1
}}}
{{{
import Control.Concurrent
main :: IO ()
main = threadDelay $ 100000001000084 + 100
}}}
{{{
$ ghc -threaded --make -fforce-recomp iocrash.hs && ./iocrash
[1 of 1] Compiling Main ( iocrash.hs, iocrash.o )
Linking iocrash ...
iocrash: kevent: invalid argument (Invalid argument)
iocrash: ioManagerWakeup: write: Bad file descriptor
iocrash: sendWakeup: invalid argument (Bad file descriptor)
iocrash: ioManagerDie: write: Bad file descriptor
}}}
This isn't fully deterministic. Removing the "+ 100" results in the crash
happening only some of the time on my system.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5544>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs