[BUG] :""[] segfaults Ruby

Moin!

C:>ruby
:""[]
-:1: empty symbol literal
:""[]
^
-:1: [BUG] Segmentation fault
ruby 1.8.0 (2003-08-04) [i386-mswin32]

%s[][123] does the same thing.

This seems to crash every Ruby newer than 1.6.8 independent of the
platform it’s running on. (I’m not sure about 1.7.x however.)

Regards,
Florian Gross

Hi,

C:>ruby
:“”
-:1: empty symbol literal
:“”
^
-:1: [BUG] Segmentation fault
ruby 1.8.0 (2003-08-04) [i386-mswin32]

Thank you for the report. Fixed now.

This seems to crash every Ruby newer than 1.6.8 independent of the
platform it’s running on. (I’m not sure about 1.7.x however.)

Symbol literal has been introduced since 23 Oct 2002. So only
1.8.0 has this bug.

···

At Sun, 9 Nov 2003 23:43:18 +0900, Florian Gross wrote:


Nobu Nakada