This seems to be a memory corruption issue related to the garbage collector. Replacing all uses of GC_malloc with malloc resolves the issue.
This seems to be a memory corruption issue related to the garbage collector. Replacing all uses of GC_malloc with malloc resolves the issue.