[racket-dev] ffi crash on callback during GC

From: John Clements (clements at brinckerhoff.org)
Date: Tue Nov 23 14:51:23 EST 2010

On Nov 22, 2010, at 3:12 PM, Matthew Flatt wrote:

> At Mon, 22 Nov 2010 15:00:01 -0800, John Clements wrote:
>> Taking a look at the crash report, I see that the crash appears to
>> happen when the callback is called by a C thread while Racket is
>> collecting garbage, [...]
>> So: is racket supposed to magically handle this?
> Yes. I think this could be a bug in `#:async-apply' support, where I
> didn't think through the possibility of a GC during the callback. I'll
> work on that soon.

I just tried out your updated version of DrRacket, and I'm delighted to report that I'm no longer able to reproduce this crash.  It only happened about 1 in 3 times before the fix, so I can't say for sure, but it certainly appears that this bug is fixed.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20101123/e1a27ab2/attachment.p7s>

Posted on the dev mailing list.