#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:3 chak]:
 > I would suggest to make the libraries comply with the Haskell standard.
 Raising an exception instead of returning a `nullPtr` will break all code
 that is written against the standard.

 Have you seen any code that actually checks for `nullPtr`?  I haven't.  I
 think we made a mistake in the standard here.  In fact, by changing
 `alloca` to raise an exception I think we'll be ''fixing'' a lot of broken
 code!

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5071#comment:4>
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

Reply via email to