[GHC] #12537: Parallel cabal builds Segmentation Fault on PowerPC 64-bit

GHC ghc-devs at haskell.org
Thu Nov 2 17:30:45 UTC 2017


#12537: Parallel cabal builds Segmentation Fault on PowerPC 64-bit
-------------------------------------+-------------------------------------
        Reporter:  michelmno         |                Owner:  trommler
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:  powerpc64
 Type of failure:  Incorrect result  |            Test Case:
  at runtime                         |
      Blocked By:  12469             |             Blocking:
 Related Tickets:  #14244            |  Differential Rev(s):  Phab:D3984
       Wiki Page:                    |
-------------------------------------+-------------------------------------

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

 In [changeset:"1130c67bbb6dc06f513e5c8705a488a591fabadb/ghc"
 1130c67b/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="1130c67bbb6dc06f513e5c8705a488a591fabadb"
 PPC NCG: Impl branch prediction, atomic ops.

 Implement AtomicRMW ops, atomic read, atomic write
 in PowerPC native code generator. Also implement
 branch prediction because we need it in atomic ops
 anyway.

 This patch improves the issue in #12537 a bit but
 does not fix it entirely.

 The fallback operations for atomicread and atomicwrite
 in libraries/ghc-prim/cbits/atomic.c are incorrect.
 This patch avoids those functions by implementing the
 operations directly in the native code generator. This
 is also what the x86/amd64 NCG and the LLVM backend
 do.

 Test Plan: validate on AIX and PowerPC (32-bit) Linux

 Reviewers: erikd, hvr, austin, bgamari, simonmar

 Reviewed By: hvr, bgamari

 Subscribers: rwbarton, thomie

 GHC Trac Issues: #12537

 Differential Revision: https://phabricator.haskell.org/D3984
 }}}

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


More information about the ghc-tickets mailing list