#5544: threadDelay with large values crashes the IO manager on 64-bit OS X
-------------------------------+--------------------------------------------
Reporter: carlhowells | Owner: tibbe
Type: bug | Status: new
Priority: high | Milestone: 7.4.1
Component: Runtime System | Version: 7.2.1
Keywords: | Os: MacOS X
Architecture: x86_64 (amd64) | Failure: None/Unknown
Difficulty: | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------------+--------------------------------------------
Comment(by sanketr):
I can reproduce it consistently using the code below (only on 7.0.3, not
7.4.1 RC1):
{{{
import Control.Concurrent (forkIO, threadDelay)
main = forkIO $ threadDelay maxBound
}}}
{{{
$ ghc t.hs -threaded -rtsopts
$ ./t
t: ioManagerDie: write: Invalid argument
t: kevent: invalid argument (Invalid argument)
$ uname -a
Darwin desktop.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9
20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5544#comment:4>
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