Skip to content

internal error: schedule: invalid what_next field

Test.hs:

import Control.Monad
main = forever $ print $ sum [1 .. 100000]
$ ghc --make Test.hs && ./Test
[1 of 1] Compiling Main             ( Test.hs, Test.o )
Linking Test ...
5000050000
5000050000
5000050000
<snip>
5000050000
5000050000
5000050000
Test: internal error: schedule: invalid what_next field
    (GHC version 6.10.1 for x86_64_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Aborted

This only happens when the program is compiled without optimization or -threaded. The number of iterations (~50) before the error changes slightly and seems not to be affected by -H RTS option.

Trac metadata
Trac field Value
Version 6.10.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