[GHC] #7655: 7.4.2 Segmentation Fault/Bus Error in large exponentation

GHC cvs-ghc at haskell.org
Sun Feb 3 20:01:47 CET 2013


#7655: 7.4.2 Segmentation Fault/Bus Error in large exponentation
-----------------------+----------------------------------------------------
Reporter:  Doug310     |          Owner:                
    Type:  bug         |         Status:  new           
Priority:  normal      |      Component:  GHCi          
 Version:  7.4.2       |       Keywords:                
      Os:  MacOS X     |   Architecture:  x86_64 (amd64)
 Failure:  GHCi crash  |      Blockedby:                
Blocking:              |        Related:                
-----------------------+----------------------------------------------------
 Mac OS X 10.8.2. Haskell Platform 2012.4, 64-bit. GHCI 7.4.2.

 Large exponentations cause bus errors or segmentation faults.

 Examples:

 {{{
 ~/src/haskell$ ghci
 GHCi, version 7.4.2: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Prelude> 12345678901234567890 ^ 12345
 Bus error: 10

 ~/src/haskell$ ghci
 GHCi, version 7.4.2: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Prelude> 2384729837498237^23455
 Segmentation fault: 11
 }}}

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



More information about the ghc-tickets mailing list