You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know enough to fix this, but consider me interested in a fix. I see segfaults and other strange behavior on the LLVM 3.2 branch. I suspect they're caused by the same issue described here.
Thanks for the changes, merged!
I see the problem, the ForeignPtr instance was gc'd before we were done with the Ptr we got out of it(unsafely), triggering the finalizer.
There are other places where I've used the same method (all the places in FFI.gc where I've used "fptr (ptr c)", I'm extracting the pointer.
I'm going to think about how to get this cleaned up..
Some name strings in the test have the first four chars replaced with '\0' (null) chars.
Here's the diff from the C and Haskell version outputs.
The text was updated successfully, but these errors were encountered: