#5042: STM, newArray, and a stack overflow
---------------------------------+------------------------------------------
Reporter: basvandijk | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries (other)
Version: 7.0.2 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Ketil Malde [http://www.haskell.org/pipermail/haskell-
cafe/2011-March/090419.html discovered] a stack overflow in the `newArray`
method of a `TArray`
The attached patch fixes it by replacing `replicateM`, which causes the
stackoverflow, with the custom `rep` which doesn't.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5042>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs