id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
2928	internal error: schedule: invalid what_next field	gsan		"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.
"	bug	closed	normal		Runtime System	6.10.1	duplicate			Linux	x86_64 (amd64)		Unknown				
