[GHC] #4505: Segmentation fault on long input (list of pairs)

GHC ghc-devs at haskell.org
Thu Dec 8 19:28:08 UTC 2016


#4505: Segmentation fault on long input (list of pairs)
-------------------------------------+-------------------------------------
        Reporter:  cathper           |                Owner:
            Type:  bug               |               Status:  patch
        Priority:  high              |            Milestone:  8.0.2
       Component:  Compiler          |              Version:  7.0.1
      Resolution:                    |             Keywords:  Segmentation
                                     |  fault, segfault, long input
Operating System:  Linux             |         Architecture:  x86_64
                                     |  (amd64)
 Type of failure:  Runtime crash     |            Test Case:
      Blocked By:  4258              |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1180
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * status:  new => patch


Comment:

 Here is a quick attempt at a patch:
 https://github.com/bgamari/array/commit/73144bda5cf4f5ba2e73206ea0a53200e30218af.
 The only trouble here is that we now are doing overflow in unsafe indexing
 operations, which will cost a bit of performance.

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


More information about the ghc-tickets mailing list