Forum: Ruby-core [TracePoint API] return event missing when raising exception

902c57f4b5f63db9c91dffb57b090654?d=identicon&s=25 Deivid R. (deivid_r)
on 2014-04-19 15:12
(Received via mailing list)
Issue #9759 has been updated by David Rodríguez.

Also, I'm not sure whether those `[:b_call, :create]` and `[:b_return,
:create]` events should be emitted at all. The block is run when
defining the method, not when running it... Right?

Bug #9759: [TracePoint API] return event missing when raising exception

* Author: David Rodríguez
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version: current: 2.2.0
* ruby -v:
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
I think I found another bug in the TracePoint API, which seems related
to #9321. In this case, the failing event is a return event from a
method inside of which the exception was generated.

I wrote a failing test case, adapting the code from
which is where I first found the strange behaviour.

Thanks a lot in advance!

tracepoint_missing_return_bug.rb (1.37 KB)
This topic is locked and can not be replied to.