[ruby-core:63714] [ruby-trunk - Bug #9759] [TracePoint API] return event missing when raising exception

From: deivid.rodriguez@...
Date: 2014-07-14 13:31:23 UTC
List: ruby-core #63714
Issue #9759 has been updated by David Rodr=C3=ADguez.


Yes, maybe he is aware of this because he only asked for backport to the 2.=
1 branch. Can you help us, ko1?

----------------------------------------
Bug #9759: [TracePoint API] return event missing when raising exception
https://bugs.ruby-lang.org/issues/9759#change-47763

* Author: David Rodr=C3=ADguez
* Status: Closed
* Priority: Normal
* Assignee: Koichi Sasada
* Category: core
* Target version: current: 2.2.0
* ruby -v: https://github.com/thoughtbot/factory_girl/blob/master/lib/facto=
ry_girl/strategy_syntax_method_registrar.rb
* Backport: 2.0.0: REQUIRED, 2.1: DONE
----------------------------------------
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 insid=
e of which the exception was generated.

I wrote a failing test case, adapting the code from [factory_girl](https://=
github.com/thoughtbot/factory_girl/blob/master/lib/factory_girl/strategy_sy=
ntax_method_registrar.rb), which is where I first found the strange behavio=
ur.

Thanks a lot in advance!

---Files--------------------------------
tracepoint_missing_return_bug.rb (1.37 KB)


--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next