ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:50582] [Ruby trunk Bug#14865] Raising exception in c_return event hook causes infinite loop
       [not found] <redmine.issue-14865.20180623045117@ruby-lang.org>
@ 2018-06-23  4:51 ` kazuki
  2018-07-30 14:11 ` [ruby-dev:50598] " usa
  2018-08-18  5:04 ` [ruby-dev:50620] " nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: kazuki @ 2018-06-23  4:51 UTC (permalink / raw)
  To: ruby-dev

Issue #14865 has been reported by ktsj (Kazuki Tsujimoto).

----------------------------------------
Bug #14865: Raising exception in c_return event hook causes infinite loop
https://bugs.ruby-lang.org/issues/14865

* Author: ktsj (Kazuki Tsujimoto)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0dev (2018-06-23) [x86_64-linux]
* Backport: 2.3: WONTFIX, 2.4: REQUIRED, 2.5: REQUIRED
----------------------------------------
c_returnのイベントフックの中で例外を起こすと無限ループになるケースがあります。
例外発生時にフレームがポップされずスタックに残り続けてしまうのが原因です。

~~~
$ cat t.rb
TracePoint.new(:c_return){|tp|
  p tp.method_id
  raise
}.enable{
  tap{ itself }
}
$ ruby t.rb
:itself
:tap
:tap
(snip)
~~~




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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-dev:50598] [Ruby trunk Bug#14865] Raising exception in c_return event hook causes infinite loop
       [not found] <redmine.issue-14865.20180623045117@ruby-lang.org>
  2018-06-23  4:51 ` [ruby-dev:50582] [Ruby trunk Bug#14865] Raising exception in c_return event hook causes infinite loop kazuki
@ 2018-07-30 14:11 ` usa
  2018-08-18  5:04 ` [ruby-dev:50620] " nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: usa @ 2018-07-30 14:11 UTC (permalink / raw)
  To: ruby-dev

Issue #14865 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.3: WONTFIX, 2.4: REQUIRED, 2.5: REQUIRED to 2.3: WONTFIX, 2.4: DONE, 2.5: REQUIRED

ruby_2_4 r64129 merged revision(s) 63727.

----------------------------------------
Bug #14865: Raising exception in c_return event hook causes infinite loop
https://bugs.ruby-lang.org/issues/14865#change-73223

* Author: ktsj (Kazuki Tsujimoto)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0dev (2018-06-23) [x86_64-linux]
* Backport: 2.3: WONTFIX, 2.4: DONE, 2.5: REQUIRED
----------------------------------------
c_returnのイベントフックの中で例外を起こすと無限ループになるケースがあります。
例外発生時にフレームがポップされずスタックに残り続けてしまうのが原因です。

~~~
$ cat t.rb
TracePoint.new(:c_return){|tp|
  p tp.method_id
  raise
}.enable{
  tap{ itself }
}
$ ruby t.rb
:itself
:tap
:tap
(snip)
~~~




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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-dev:50620] [Ruby trunk Bug#14865] Raising exception in c_return event hook causes infinite loop
       [not found] <redmine.issue-14865.20180623045117@ruby-lang.org>
  2018-06-23  4:51 ` [ruby-dev:50582] [Ruby trunk Bug#14865] Raising exception in c_return event hook causes infinite loop kazuki
  2018-07-30 14:11 ` [ruby-dev:50598] " usa
@ 2018-08-18  5:04 ` nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: nagachika00 @ 2018-08-18  5:04 UTC (permalink / raw)
  To: ruby-dev

Issue #14865 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.3: WONTFIX, 2.4: DONE, 2.5: REQUIRED to 2.3: WONTFIX, 2.4: DONE, 2.5: DONE

ruby_2_5 r64438 merged revision(s) 63727.

----------------------------------------
Bug #14865: Raising exception in c_return event hook causes infinite loop
https://bugs.ruby-lang.org/issues/14865#change-73591

* Author: ktsj (Kazuki Tsujimoto)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0dev (2018-06-23) [x86_64-linux]
* Backport: 2.3: WONTFIX, 2.4: DONE, 2.5: DONE
----------------------------------------
c_returnのイベントフックの中で例外を起こすと無限ループになるケースがあります。
例外発生時にフレームがポップされずスタックに残り続けてしまうのが原因です。

~~~
$ cat t.rb
TracePoint.new(:c_return){|tp|
  p tp.method_id
  raise
}.enable{
  tap{ itself }
}
$ ruby t.rb
:itself
:tap
:tap
(snip)
~~~




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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-18  5:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-14865.20180623045117@ruby-lang.org>
2018-06-23  4:51 ` [ruby-dev:50582] [Ruby trunk Bug#14865] Raising exception in c_return event hook causes infinite loop kazuki
2018-07-30 14:11 ` [ruby-dev:50598] " usa
2018-08-18  5:04 ` [ruby-dev:50620] " nagachika00

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).