Hello, I have had the same problem; I think your error comes from a freeing operation using gc_free, while your object has not been allocated by the means of gc_malloc. Check in the sources if each gc_free operation deals with a pointer allocated by gc_malloc. Hope it will help you. Benoist.