#9817: signal handlers in unix are passed garbage when using the signle threaded rts -------------------------------------+------------------------------------- Reporter: redneb | Owner: simonmar Type: bug | Status: patch Priority: normal | Milestone: Component: Runtime | Version: 7.8.3 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: POSIX | Difficulty: Unknown Type of failure: Incorrect | Blocked By: result at runtime | Related Tickets: Test Case: | Blocking: | Differential Revisions: Phab:D515 | -------------------------------------+------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"7ca5bb090ff78141fbe275b058a9e35ee496bd58/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="7ca5bb090ff78141fbe275b058a9e35ee496bd58" compiler: fix trac issue #9817 Summary: When we call runHandlers, we must pass it a ForeignPtr. To ensure that this happens, we introduce a wrapper that receives a plain Ptr and converts it into a ForeignPtr. Then we adjust startSignalHandlers in rts/posix/Signals.c to call the wrapper instead of calling runHandlers directly. Reviewers: hvr, austin, rwbarton, simonmar Reviewed By: austin, simonmar Subscribers: simonmar, thomie, carter Differential Revision: https://phabricator.haskell.org/D515 GHC Trac Issues: #9817 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9817#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler