Bug #3372
closedSegfault when passing block_param to aref call with tOP_ASGN : foo[&b] += 21
Description
=begin
To reproduce :
$ ruby -e 'foo[&b] += 21'
ruby: [BUG] Segmentation fault
ruby 1.9.3dev (2010-05-31 trunk 28108) [x86_64-linux]
-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:001a38 d:001a38 TOP
-- C level backtrace information -------------------------------------------
ruby(rb_vm_bugreport+0x9e) [0x52362e]
ruby() [0x5648a8]
ruby(rb_bug+0xb1) [0x564a41]
ruby() [0x4b3048]
/lib/libpthread.so.0(+0xf8f0) [0x2b00154f08f0]
ruby() [0x4600e1]
ruby() [0x460159]
ruby(ruby_yyparse+0x37d2) [0x467ff2]
ruby() [0x4729e4]
ruby(ruby_suppress_tracing+0x11d) [0x524aed]
ruby(rb_parser_compile_string+0xcc) [0x45e5fc]
ruby() [0x4b20ba]
ruby(ruby_process_options+0x9b) [0x4b285b]
ruby(ruby_options+0x90) [0x41be00]
ruby(main+0x41) [0x419b31]
/lib/libc.so.6(__libc_start_main+0xfd) [0x2b0015fe6c4d]
ruby() [0x419a29]
=end