Hi,

At Thu, 11 Oct 2012 08:32:23 +0900,
alexdowad (Alex Dowad) wrote in [ruby-core:47897]:
> OK, I overcame the problem with compiling and testing a
> patched Ruby binary. When I comment out line 6229 of
> string.c, the problem goes away. Then when I uncomment the
> line and recompile Ruby, the problem comes back again. This
> is the code (it's for String#codepoints):

Thank you.  Could you try this patch?


diff --git i/string.c w/string.c index 9281e4c..6707c4b 100644 --- i/string.c +++ w/string.c @@ -6332,6 +6332,7 @@ rb_str_each_codepoint(VALUE str) rb_yield(UINT2NUM(c)); ptr += n; } + RB_GC_GUARD(str); return orig; }
-- Nobu Nakada