Project

General

Profile

Actions

Bug #12565

closed

SEGV when using &:foo with tail call optimization

Added by shugo (Shugo Maeda) almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Target version:
-
[ruby-core:76288]

Description

The following script causes SEGV:

RubyVM::InstructionSequence.compile_option = {
  :tailcall_optimization => true,
  :trace_instruction => false
}

eval(<<EOF)
def foo(&block)
  yield(1, 2)
end

def bar
  foo(&:*)
end

p bar
EOF
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0