#4221: Calling freeHaskellFunctionPtr from C finalizer leads to crashes
-----------------------------+----------------------------------------------
Reporter: ravi_n | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 6.14.1
Component: Runtime System | Version: 6.12.3
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Runtime crash |
-----------------------------+----------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => fixed
Comment:
Fixed:
{{{
Tue Aug 10 06:37:39 PDT 2010 Simon Marlow <[email protected]>
* Run finalizers *after* updating the stable pointer table (#4221)
Silly bug really, we were running the C finalizers while the StablePtr
table was still in a partially-updated state during GC, but finalizers
are allowed to call freeStablePtr() (via hs_free_fun_ptr(), for
example), and chaos ensues.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4221#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs