
Issue #19382 has been updated by hsbt (Hiroshi SHIBATA). Tracker changed from Misc to Bug Subject changed from (please close) Infinite loop in tracepoints when calling `pp` to Infinite loop in tracepoints when calling `pp` Status changed from Open to Closed Backport set to 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN @luke-gru Please don't update subject and category and more. We can close it only your request comment. ---------------------------------------- Bug #19382: Infinite loop in tracepoints when calling `pp` https://bugs.ruby-lang.org/issues/19382#change-101495 * Author: luke-gru (Luke Gruber) * Status: Closed * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- ```ruby events = [] meth_name = "mymethod" code = <<~RUBY def #{meth_name}(); true; end RUBY eval(code, binding, 'my_location') tracepoint = TracePoint.new(:line) { |tp| events << tp.path # infinite loop here }.tap(&:enable) send("#{meth_name}") pp events ``` -- https://bugs.ruby-lang.org/