https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112021-06-16T23:37:35ZRuby Issue Tracking SystemRuby master - Bug #14479: Exceptions raised from a :call tracepoint can sometimes be "rescued" inside the methodhttps://redmine.ruby-lang.org/issues/14479?journal_id=925452021-06-16T23:37:35Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul></ul><p>This is still an issue in the master branch. I've submitted a pull request that should fix the problem: <a href="https://github.com/ruby/ruby/pull/4578" class="external">https://github.com/ruby/ruby/pull/4578</a></p> Ruby master - Bug #14479: Exceptions raised from a :call tracepoint can sometimes be "rescued" inside the methodhttps://redmine.ruby-lang.org/issues/14479?journal_id=936402021-09-14T01:02:30Zko1 (Koichi Sasada)
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/93640/diff?detail_id=60756">diff</a>)</li></ul> Ruby master - Bug #14479: Exceptions raised from a :call tracepoint can sometimes be "rescued" inside the methodhttps://redmine.ruby-lang.org/issues/14479?journal_id=937352021-09-17T06:09:08Zko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>I want to reject this issue because of the following reasons:</p>
<ul>
<li>TracePoint block shouldn't raise an exception. TracePoint should not hurt non-hook (99.99..% case) execution if possible. I don't think this difference is not a matter.</li>
<li>Now Ruby 2.4 is obsolete version (current last supported version is Ruby 2.6), so it also the change from stable versions if it was changed. I propose to change the definition of <code>call</code> event is "It invokes just before the first line in a method" from Ruby 2.4.</li>
</ul>
<pre><code>def foo
# invoike here before 2.4
begin
# invoke here from 2.5
foo
rescue
...
end
end
</code></pre>
<p>Please reopen this issue if it is needed.</p>