[Bug #2956] segfault

Bug #2956: segfault
http://redmine.ruby-lang.org/issues/show/2956

e$B5/I<<Te(B: Tomoki MAEDA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: core
ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26041) [i486-linux]

$ cat ~/tmp/ruby191bug.rb

-- coding: utf-8 --

[].each do |i|
{:i → i}
result << elem
end

$ ruby1.9.1 -v ~/tmp/ruby191bug.rb
ruby 1.9.1p376 (2009-12-07 revision 26041) [i486-linux]
/home/tmaeda/tmp/ruby191bug.rb:3: syntax error, unexpected tLAMBDA,
expecting tASSOC
{:i → i}
^
/home/tmaeda/tmp/ruby191bug.rb:3: warning: shadowing outer local
variable - i
ruby1.9.1: [BUG] Segmentation fault
ruby 1.9.1p376 (2009-12-07 revision 26041) [i486-linux]

– control frame ----------
c:0002 p:-34302656 s:0004 b:0004 l:000003 d:000003 TOP
c:0001 p:0000 s:0002 b:0002 l:000f54 d:000f54 TOP

– Ruby level backtrace
information-----------------------------------------

– C level backtrace information

0xb7e7a8d4 /usr/lib/libruby-1.9.1.so.1.9(rb_vm_bugreport+0x64)
[0xb7e7a8d4]
0xb7d90169 /usr/lib/libruby-1.9.1.so.1.9 [0xb7d90169]
0xb7d901fa /usr/lib/libruby-1.9.1.so.1.9(rb_bug+0x3a) [0xb7d901fa]
0xb7e1d66d /usr/lib/libruby-1.9.1.so.1.9 [0xb7e1d66d]
0xb7ee540c [0xb7ee540c]
0xb7ddcc6c /usr/lib/libruby-1.9.1.so.1.9(ruby_yyparse+0x594c)
[0xb7ddcc6c]
0xb7de72ac /usr/lib/libruby-1.9.1.so.1.9 [0xb7de72ac]
0xb7e7d9db /usr/lib/libruby-1.9.1.so.1.9(ruby_suppress_tracing+0x10b)
[0xb7e7d9db]
0xb7dd22af /usr/lib/libruby-1.9.1.so.1.9(rb_parser_compile_file+0x8f)
[0xb7dd22af]
0xb7e1baba /usr/lib/libruby-1.9.1.so.1.9 [0xb7e1baba]
0xb7d916d9 /usr/lib/libruby-1.9.1.so.1.9(rb_ensure+0x99) [0xb7d916d9]
0xb7e1c653 /usr/lib/libruby-1.9.1.so.1.9 [0xb7e1c653]
0xb7e647fd /usr/lib/libruby-1.9.1.so.1.9(rb_vm_call_cfunc+0xbd)
[0xb7e647fd]
0xb7e1a421 /usr/lib/libruby-1.9.1.so.1.9(ruby_process_options+0xa1)
[0xb7e1a421]
0xb7d931fd /usr/lib/libruby-1.9.1.so.1.9(ruby_options+0x8d) [0xb7d931fd]
0x80487ac ruby1.9.1(main+0x6c) [0x80487ac]
0xb7b98b55 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7b98b55]
0x80486a1 ruby1.9.1 [0x80486a1]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

e$B%"%!<%H$7$^$7$?e(B

{:i => i}e$B$H=q$/$H$3$m$r4V0c$($Fe(B{:i → i}e$B$7$?$iMn$A$^$7$?!#e(B

e$B4D6-!'e(BIntel Celeron D e$B$J%^%7%s$KF~$l$?e(BDebian
squeeze(testing)e$B$Ke(Baptitude install
ruby1.9.1e$B$GF~$l$?e(BRubye$B$G$9!#e(B

e$B%A%1%C%He(B #2956 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

Ruby 1.9.1 on FreeBSD8e$B$G$O:F8=$r3NG’$7$^$7$?!"e(Btrunk
e$B$G$O:F8=$7$^$;$s!#e(B

http://redmine.ruby-lang.org/issues/show/2956