Project

General

Profile

Actions

Bug #18060

open

Infinite loop when b_return TracePoint raises

Added by alanwu (Alan Wu) about 2 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:104767]

Description

The following program loops indefinitely:

# Warning: prints in an infinite loop
class Foo
  define_singleton_method(:foo) { return }
end

TracePoint.trace(:b_return) do |tp|
  p tp
  raise
end

Foo.foo

It doesn't seem intentional that this loops.

Fix: https://github.com/ruby/ruby/pull/4638

No data to display

Actions

Also available in: Atom PDF