[GHC] #5042: STM, newArray, and a stack overflow

GHC cvs-ghc at haskell.org
Wed Mar 23 20:23:05 CET 2011


#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



More information about the Glasgow-haskell-bugs mailing list