[GHC] #4162: GHC API messes up signal handlers

GHC ghc-devs at haskell.org
Wed Oct 26 12:31:30 UTC 2016


#4162: GHC API messes up signal handlers
-------------------------------------+-------------------------------------
        Reporter:  jcpetruzza        |                Owner:
            Type:  bug               |               Status:  patch
        Priority:  low               |            Milestone:
       Component:  GHC API           |              Version:  6.12.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  phab:D2633
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by hsyl20):

 * differential:  D2633 => phab:D2633


Comment:

 Note that my patch in comment:14 doesn't make `runGhc` thread-safe if
 several `runGhc` are executed concurrently. E.g., in the following case:
 {{{#!haskell
 runGhc (1) install handlers
 runGhc (2) install handlers
 runGhc (1) uninstall handlers
 runGhc (2) uninstall handlers -- reinstall handlers installed by `runGhc
 (1)`
                               -- overwriting initial handlers
 }}}

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


More information about the ghc-tickets mailing list