[GHC] #5071: GHCi crashes on large alloca/allocaBytes requests

GHC cvs-ghc at haskell.org
Fri Apr 1 23:04:39 CEST 2011


#5071: GHCi crashes on large alloca/allocaBytes requests
---------------------------------+------------------------------------------
    Reporter:  guest             |        Owner:              
        Type:  bug               |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  Compiler          |      Version:  7.0.3       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonmar):

 Replying to [comment:5 guest]:
 >  I think for now in the programs I write I'll use `malloc` and avoid
 `alloca`, as a workaround for this bug.

 Note that `malloc` is ''much'' slower than `alloca`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5071#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list