Actions
Bug #18060
closedInfinite loop when b_return TracePoint raises
    Bug #18060:
    Infinite loop when b_return TracePoint raises
  
Description
The following program loops indefinitely:
puts("PID: #{$$}")
class Foo
  define_singleton_method(:foo) { return }
end
counter = 0
TracePoint.trace(:b_return) do |tp|
  $stdout.write(counter, ' ', tp.inspect, "\r")
  counter += 1
  raise
end
Foo.foo
It doesn't seem intentional that this loops.
Actions