It doesn't crash for me.

What platform (os, ruby version, compiler, etc.) are you using?

Where in rb_gc() does the crash occur?

Does valgrind report anything out of the ordinary? (you'll probably want
to use a suppressions file such as the one in [ruby-talk:52065]).

Paul