
#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 andrewchen): I am running arch linux x64 on a i5-4200U laptop. I'm able to reproduce with just the system ghc: {{{ ghc Main.hs test.c -threaded -O1 -fforce-recomp [1 of 1] Compiling Main ( Main.hs, Main.o ) Linking Main ... }}} For me the program fails within seconds: {{{ $ time ./Main value mismatch value mismatch value mismatch value mismatch zsh: segmentation fault (core dumped) ./Main ./Main 2.19s user 0.20s system 67% cpu 3.553 total }}} I'm also able to reproduce the issue in a fedora virtual machine on the same physical machine using ghc 8.2.1 binaries downloaded from haskell.org. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14346#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler