[GHC] #770: Huge array leads to various crashes
GHC
trac at galois.com
Fri May 12 06:48:41 EDT 2006
#770: Huge array leads to various crashes
-----------------------------+----------------------------------------------
Reporter: dons | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 6.5
Severity: normal | Keywords:
Difficulty: Unknown | Architecture: Multiple
Os: Multiple |
-----------------------------+----------------------------------------------
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 at 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
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/770>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list