Re: [racket-dev] ffi crash on callback during GC

2010-11-23 Thread John Clements
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

Re: [racket-dev] ffi crash on callback during GC

2010-11-22 Thread Matthew Flatt
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

[racket-dev] ffi crash on callback during GC

2010-11-22 Thread John Clements
I'm having trouble with DrRacket crashing on the use in C of a callback created using the ffi library. After reading the docs, it occured to me that the problem might be that the callback was being collected. My understanding is that with #:keep #t, I need to make sure that the scheme value c