Actions
Bug #18031
closedNested TracePoint#enable with define_method target crashes
Description
Found this crash while looking at tracing related code.
Haven't had time to dig deeper, so I'm making a ticket for now.
one = TracePoint.new(:call) {}
two = TracePoint.new(:call) {}
obj = Object.new
obj.define_singleton_method(:foo) {} # a bmethod
foo = obj.method(:foo)
one.enable(target: foo) do
two.enable(target: foo) {}
end
It crashes on 2.6.5 and master (a7c85cc).
Actions
Like0
Like0Like0Like0Like0