It's worse than that. We don't actually know where it occurs. There are clearly some gems where it does, but it could also be occurring elsewhere in the VM.
Just figuring this out is a non-trivial project.
Just figuring this out is a non-trivial project.
Both problems are hard and the current state of affairs is apparently some random amount of the time we'll get memory corruption bugs.