[GHC] #7170: Foreign.Concurrent finalizer called twice in some cases

GHC ghc-devs at haskell.org
Mon Jun 1 20:09:07 UTC 2015


#7170: Foreign.Concurrent finalizer called twice in some cases
-------------------------------------+-------------------------------------
        Reporter:  joeyadams         |                   Owner:  niteria
            Type:  bug               |                  Status:  patch
        Priority:  high              |               Milestone:  7.6.1
       Component:  Core Libraries    |                 Version:  7.8.3
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Runtime crash     |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |  ffi/should_run/7170
                                     |                Blocking:
                                     |  Differential Revisions:  D921
-------------------------------------+-------------------------------------
Changes (by niteria):

 * status:  new => patch
 * differential:   => D921


Comment:

 This turned out to be a race condition that happened when a finalizer of a
 last generation was called manually and no major gc before shutdown.

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


More information about the ghc-tickets mailing list