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

GHC ghc-devs at haskell.org
Mon Jan 30 21:02:26 UTC 2017


#7655: 7.6.2 Segmentation Fault/Bus Error in large exponentation
-------------------------------+--------------------------------------
        Reporter:  Doug310     |                Owner:  rwbarton
            Type:  bug         |               Status:  new
        Priority:  highest     |            Milestone:  8.2.1
       Component:  GHCi        |              Version:  7.8.1-rc1
      Resolution:              |             Keywords:  gmp
Operating System:  MacOS X     |         Architecture:  x86_64 (amd64)
 Type of failure:  GHCi crash  |            Test Case:
      Blocked By:              |             Blocking:
 Related Tickets:              |  Differential Rev(s):  Phab:D3044
       Wiki Page:              |
-------------------------------+--------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"32729d3586d7ecdeb8561b6d0b2a688db709560c/ghc"
 32729d35/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="32729d3586d7ecdeb8561b6d0b2a688db709560c"
 Turn libraries/integer-gmp/gmp/tarball into a submodule

 The submodule repository contains the latest version of the GMP source
 distribution (6.1.2) with the doc/ subdirectory removed, as described
 in gmp/ghc.mk. Rather than applying the old patch from gmp/tarball/patch
 I moved its contents into gmp/gmpsrc.patch, canceling a patch related to
 memory management there. Experimentally, the PIC-related patch for OS X
 is still necessary.

 The upgrade to GMP 6.1.2 fixes #7655.

 Test Plan:
 Built on OS X with in-tree gmp and tested that the command
 `ghc -e 'length (show (2^(5*10^6) :: Integer))'` no longer segfaults.

 Reviewers: mpickering, hvr, austin, bgamari

 Reviewed By: bgamari

 Subscribers: mpickering, thomie

 Differential Revision: https://phabricator.haskell.org/D3044

 GHC Trac Issues: #7655
 }}}

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


More information about the ghc-tickets mailing list