Bug in GC's ordering of ForeignPtr finalization?

2011-08-28 Thread Ben Gamari
On Tue, 16 Aug 2011 12:32:13 -0400, Ben Gamari bgamari.f...@gmail.com wrote: It seems that the notmuch-haskell bindings (version 0.2.2 built against notmuch from git master; passes notmuch-test) aren't dealing with memory management properly. In particular, the attached test code[1] causes

Bug in GC's ordering of ForeignPtr finalization?

2011-08-28 Thread Ben Gamari
On Tue, 16 Aug 2011 12:32:13 -0400, Ben Gamari wrote: > It seems that the notmuch-haskell bindings (version 0.2.2 built against > notmuch from git master; passes notmuch-test) aren't dealing with memory > management properly. In particular, the attached test code[1] causes > talloc to abort.

Bug in GC's ordering of ForeignPtr finalization?

2011-08-28 Thread Antoine Latter
On Sun, Aug 28, 2011 at 4:27 PM, Ben Gamari wrote: > On Tue, 16 Aug 2011 12:32:13 -0400, Ben Gamari > wrote: >> It seems that the notmuch-haskell bindings (version 0.2.2 built against >> notmuch from git master; passes notmuch-test) aren't dealing with memory >> management properly. In