C stack overflow on Windows
$ ghc --make Main.hs
[1 of 1] Compiling Main ( Main.hs, Main.o )
Linking Main.exe ...
$ Main
C stack overflow in generated code
$ type Main.hs
module Main where
main = error $ show f
where
f = r
where
r = r `seq` ()
It should go <loop>, and in some circumstances it does, but in this particular configuration it crashes C. Windows XP, using GHC 6.9.20080916. If run from GHCi then GHCi silently aborts.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.9 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |