logo       

Re: [GHC] #770: Huge array leads to various crashes: msg#00060

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #770: Huge array leads to various crashes

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@xxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise