Urabe Shyouhei wrote:
> Thank you Guy, this helped me a lot.  I think I've backported what's
> needed from ruby_1_8. Please try again.

 it seems to work for me

vgs% ./miniruby -ve 'str = "A"*(2**16) ; loop{ str << str ; puts str.size }'
ruby 1.8.6 (2008-06-30 patchlevel 256) [i686-linux]
131072
262144
524288
1048576
2097152
4194304
8388608
16777216
33554432
67108864
134217728
268435456
536870912
1073741824
-e:1:in `<<': string sizes too big (ArgumentError)
	from -e:1
	from -e:1:in `loop'
	from -e:1
vgs% 

 previously it crashed after 131072


Guy Decoux