Ticket #229 (new bug)
Integer overflow in array allocation
| Reported by: | josefs | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | _|_ |
| Component: | libraries/base | Version: | 6.4.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description (last modified by josef) (diff)
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'.
Change History
Note: See
TracTickets for help on using
tickets.
