Project

General

Profile

Actions

Bug #3372

closed

Segfault when passing block_param to aref call with tOP_ASGN : foo[&b] += 21

Added by dkr (Olivier Marin) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-05-31 trunk 28108) [x86_64-linux]
Backport:
[ruby-core:30534]

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


Related issues 1 (0 open1 closed)

Has duplicate Backport191 - Backport #3651: Crash when passing a block in an array indexerClosedyugui (Yuki Sonoda)Actions
Actions #1

Updated by matz (Yukihiro Matsumoto) over 14 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r28123.
Olivier, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0