[GHC] #7160: C finalizers are reversed during GC
GHC
cvs-ghc at haskell.org
Sat Aug 18 18:05:55 CEST 2012
#7160: C finalizers are reversed during GC
-----------------------------------------+----------------------------------
Reporter: int-e | Owner:
Type: bug | Status: new
Priority: normal | Component: Runtime System
Version: 7.6.1-rc1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Incorrect result at runtime | Testcase:
Blockedby: | Blocking:
Related: |
-----------------------------------------+----------------------------------
Comment(by Lemming):
The above code crashes on my machine but I could easily add some C
functions that do the job. You may run the code with
$ ghc FinalizerOrderC.c FinalizerOrder.hs
$ ./FinalizerOrder
0x00007f67f77fc010
finalize 2 7f67f77fc010
finalize 1 7f67f77fc010
0x00007f67f77fc040
finalize 1 7f67f77fc040
finalize 2 7f67f77fc040
0x00007f67f77fc060
finalize 2 7f67f77fc060
finalize 1 7f67f77fc060
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7160#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list