Bugs item #973766, was opened at 2004-06-16 08:14
Message generated for change (Comment added) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=973766&group_id=8032
Category: libraries/base
Group: None
Status: Open
Resolution: None
Priority: 1
Submitted By: Josef Svenningsson (josefs)
>Assigned to: Simon Marlow (simonmar)
Summary: ghci coredumps
Initial Comment:
When asked to create a sufficiently large array ghci
coredumps.
\begin{code}
import Data.Array.ST
import Control.Monad.ST
import GHC.Base
example = runST (do arr <- newArray (minInt,maxInt)
False
go arr)
where go :: STArray s Int Bool -> ST s Bool
go arr = readArray arr 3
\end{code}
Load this into ghci and type 'example'.
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2004-06-16 10:59
Message:
Logged In: YES
user_id=48280
There may be several problems here. One is integer
overflow in Storage.c:allocate() when calculating the number
of blocks for the allocation request.
Another problem is integer overflow in rangeSize: the
rangeSize for (minInt,maxInt) doesn't fit in an Int. I'm
not sure what the correct outcome should be. I'll look into
this some more later.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=973766&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs