Bill Kelly wrote:
>
> From: "Bill Kelly" <billk / cts.com>
>>
>> Updated to latest subversion ruby_1_8_6 branch, revision 17546.
>> (patchlevel 231)
>>
>> However, still getting a seg fault on:
>>
>> ruby -ve 'str = "A"*(2**16) ; loop{ str << str ; puts str.size }'
>> ruby 1.8.6 (2008-06-22 patchlevel 231) [i686-linux]
>> 131072
>> 262144
>> -e:1: [BUG] Segmentation fault
>
> Note, still getting this seg fault as of svn revision 17730
> on 1_8_6 branch:
>
> $ ruby -ve 'str = "A"*(2**16) ; loop{ str << str ; puts str.size }'
> ruby 1.8.6 (2008-06-29 patchlevel 255) [i686-linux]
> 131072
> -e:1: [BUG] Segmentation fault
Sorry, cannot reproduce on my machine.  Does anyone have more info?

% ./miniruby -ve 'str = "A"*(2**16) ; loop{ str << str ; puts str.size }'
ruby 1.8.6 (2008-06-29 patchlevel 255) [x86_64-linux]
131072
262144
524288
1048576
2097152
4194304
8388608
16777216
33554432
67108864
134217728
268435456
-e:1:in `<<': failed to allocate memory (NoMemoryError)
        from -e:1
        from -e:1:in `loop'
        from -e:1
zsh: exit 1     ./miniruby -ve 'str = "A"*(2**16) ; loop{ str << str ; puts str.size }'