|
[ ghc-Bugs-973766 ] ghci coredumps: msg#00030lang.haskell.glasgow.bugs
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Strange problems with binary file output: result of incorrect size, Simon Marlow |
|---|---|
| Next by Date: | RE: "charToUtf8 1883885648" panic on sparc, Simon Marlow |
| Previous by Thread: | [ ghc-Bugs-973766 ] ghci coredumps, SourceForge.net |
| Next by Thread: | RE: "charToUtf8 1883885648" panic on sparc, Simon Marlow |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |