Skip to content

'threadDelay maxBound' results in 'internal error: select failed'

When compiling and running this program:

import Control.Concurrent

main = threadDelay maxBound

, I get a crash and the following error message:

select: Invalid argument
threadDelayMaxBound: internal error: select failed
    (GHC version 7.4.1 for x86_64_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
  1. This doesn't happen in ghci. I compiled with 'ghc FILE.hs'.
Trac metadata
Trac field Value
Version 7.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information