[GHC] #14346: 8.2.1 regression: heap corruption after safe foreign calls

GHC ghc-devs at haskell.org
Thu Oct 12 21:15:38 UTC 2017


#14346: 8.2.1 regression: heap corruption after safe foreign calls
-------------------------------------+-------------------------------------
        Reporter:  andrewchen        |                Owner:  (none)
            Type:  bug               |               Status:  infoneeded
        Priority:  highest           |            Milestone:
       Component:  Runtime System    |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rezb1t):

 I can reproduce this same issue on my machine, I am using:
 NixOS x86_64 Unstable Branch (as of 10-12)
 GHC 8.2.1
 Binutils 2.28.1
 GCC 6.4.0

 I noticed the bug does not occur and the program runs infinitely if I
 simply compile with
 'ghc Main.hs test.c -threaded -o Bug', however, if Optimization level 1 or
 2 are enabled, the bug happens very quickly after running the binary.

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


More information about the ghc-tickets mailing list