#2928: internal error: schedule: invalid what_next field
-------------------+--------------------------------------------------------
Reporter: gsan | Owner:
Type: bug | Status: new
Priority: normal | Component: Runtime System
Version: 6.10.1 | Severity: minor
Keywords: | Testcase:
Os: Linux | Architecture: x86_64 (amd64)
-------------------+--------------------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2928>
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