[GHC] #5541: Data.Bits.setBit misbehaves on bad input

GHC cvs-ghc at haskell.org
Mon Oct 10 17:41:58 CEST 2011


#5541: Data.Bits.setBit misbehaves on bad input
---------------------------------+------------------------------------------
    Reporter:  nomeata           |       Owner:               
        Type:  bug               |      Status:  new          
    Priority:  normal            |   Component:  Compiler     
     Version:  7.0.4             |    Keywords:               
    Testcase:                    |   Blockedby:               
          Os:  Unknown/Multiple  |    Blocking:               
Architecture:  Unknown/Multiple  |     Failure:  Runtime crash
---------------------------------+------------------------------------------

Comment(by daniel.is.fischer):

 gmp itself calls abort() when trying to allocate too much. Is it sensible
 to install a handler for `SIGABRT` to transform it into a Haskell
 exception?

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



More information about the Glasgow-haskell-bugs mailing list