Huge array leads to various crashes
First spotted over irc (!):
20:32 dons | \> array (minBound,maxBound) (zip \[0..\] (repeat ())) :: Array Int () |
---|---|
20:32 lambdabot | internal error: evacuate: strange closure type 37792 |
20:32 lambdabot | Please report this as a bug to glasgow-haskell-bugs\@haskell.org, |
20:32 lambdabot | or http://www.sourceforge.net/projects/ghc/ |
The following program:
import Data.Array main = print (array (minBound,maxBound) (zip \[0..\] (repeat ())) | Array Int ()) |
---|
leads to a variety of different crashes in 6.4.1, 6.4.2 and the head. I'm fairly sure this was reported once before, but it seems to have crept back in.
With 6.4.2/OpenBSD/x86: $ ./a.out a.out: internal error: stg_ap_ppp_ret Please report this as a compiler bug. See: http://www.haskell.org/ghc/reportabug
With 6.4.2/Linux/amd64/ghci: Data.Array> array (minBound,maxBound) (zip [0..] (repeat ())) :: Array Int () array Segmentation fault
With 6.5: $ ./a.out zsh: segmentation fault (core dumped) ./a.out
-- Don
Trac metadata
Trac field | Value |
---|---|
Version | 6.5 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Multiple |
Architecture | Multiple |