Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#770 closed bug (duplicate)

Huge array leads to various crashes

Reported by: dons Owned by:
Priority: normal Milestone:
Component: Runtime System Version: 6.5
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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@…,
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

Change History (4)

comment:1 Changed 8 years ago by simonmar

  • Resolution set to duplicate
  • Status changed from new to closed

dup of #299

comment:2 Changed 8 years ago by simonmar

Sorry, I mean #229

comment:3 Changed 6 years ago by simonmar

  • Architecture changed from Multiple to Unknown/Multiple

comment:4 Changed 6 years ago by simonmar

  • Operating System changed from Multiple to Unknown/Multiple
Note: See TracTickets for help on using tickets.