[GHC] #2105: garbage collection confusing in ghci for foreign
objects
GHC
trac at galois.com
Mon Feb 18 07:37:55 EST 2008
#2105: garbage collection confusing in ghci for foreign objects
--------------------------------------+-------------------------------------
Reporter: Frederik | Owner:
Type: run-time performance bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
--------------------------------------+-------------------------------------
Changes (by simonmar):
* difficulty: => Unknown
Comment:
I think we'll need more information here. Can you construct a small
example of a `ForeignPtr` that is freed when you expect it to be retained?
Since a `ForeignPtr` can only be derferenced in the `IO` monad, is `v` in
your example an `IO` computation? Or perhaps you're using
`unsafePerformIO` to dereference the `ForeignPtr`?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2105#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list