
I imagine the simplifier has proven that action never returns and then dropped the case with the continuation containing the `touch#`. That seems
#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 bgamari): like a reasonable thing to do. Correct. I believe it is `Simplify.rebuildCall` that is responsible for this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14346#comment:21 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler