On Thu 23 Jun 2016 11:50, Andy Wingo writes: > On Thu 26 Feb 2015 16:30, David Kastrup writes: > >> Try ./test 2 2000 200 > > I can reproduce the crash with your test case, thanks :) The patch below > fixes the bug for me. WDYT Ludovic? Here's a patch with a test case. I'm going to apply as it seems to be obviously the right thing and the test case does reproduce what I think is the bug (racing mark and finalize procedures, even if it's only happening in one thread, finalizers and mark procedures do introduce concurrency). We trigger the concurrency in a simple way, via allocation in the finalizer. The patch does fix the original test. GC could happen due to another thread of course. I'm actually not sure where the concurrency is coming from in David's test though :/ I'm very interested in any feedback you might have! Andy