[GHC] #12954: unexpected uncaught segmentation error in arbitrary precision Integer calculations with modestly large numbers

GHC ghc-devs at haskell.org
Fri Dec 9 02:27:06 UTC 2016


#12954: unexpected uncaught segmentation error in arbitrary precision Integer
calculations with modestly large numbers
--------------------------------------+----------------------------------
           Reporter:  geraint         |             Owner:
               Type:  bug             |            Status:  new
           Priority:  normal          |         Milestone:
          Component:  GHCi            |           Version:  8.0.1
           Keywords:                  |  Operating System:  MacOS X
       Architecture:  x86_64 (amd64)  |   Type of failure:  Runtime crash
          Test Case:                  |        Blocked By:
           Blocking:                  |   Related Tickets:
Differential Rev(s):                  |         Wiki Page:
--------------------------------------+----------------------------------
 In ghci 8.0.1 on my mac, expressions no bigger than {{{2^(10^7) ::
 Integer}}} usually cause a bus error; {{{2^(10^6)}}} is apparently OK.
 The force of "usually" is that every now and then they and larger
 expressions are fine, so it is not quite reproducible.  I believe it's the
 Integer arithmetic library, rather than the exponentiation,
 and I think it might be a stack overflow in libHSinteger-
 gmp-1.0.0.1-ghc8.0.1.dylib
 The problem was first encountered with compiled code doing additions and
 multiplications on similarly sized Integer values.  Substantially larger
 numbers can be handled by 7.8.4 on other platforms, which is all I have to
 compare it with.

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


More information about the ghc-tickets mailing list