[GHC] #770: Huge array leads to various crashes
Bulat Ziganshin
bulat.ziganshin at gmail.com
Fri May 12 08:09:49 EDT 2006
Hello GHC,
Friday, May 12, 2006, 2:48:41 PM, you wrote:
> Component: Runtime System | Version: 6.5
> 20:32 dons:: > array (minBound,maxBound) (zip [0..] (repeat ())) ::
> Array Int ()
i'm pretty sure that it's a bug in array library, because it first
constructs array of 2^31*4 = 0 bytes (modulo 2^32), and then tries to
use unsafe indexing operations on it. moreover, 6.4 should suffice
form the same problem
... well, i wrote about problem for unboxed arrays (i should test
it), while you reported bug in boxed arrays what is a really problem
in GHC's newArray# implementation
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Glasgow-haskell-bugs
mailing list