Ticket #2928 (closed bug: duplicate)
internal error: schedule: invalid what_next field
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
