Bug #18060
Updated by alanwu (Alan Wu) over 2 years ago
The following program loops indefinitely: ```ruby puts("PID: #{$$}") # Warning: prints in an infinite loop class Foo define_singleton_method(:foo) { return } end counter = 0 TracePoint.trace(:b_return) do |tp| $stdout.write(counter, ' ', tp.inspect, "\r") counter += 1 p tp raise end Foo.foo ``` It doesn't seem intentional that this loops. Fix: https://github.com/ruby/ruby/pull/4638