* [ruby-dev:51050] [Ruby master Feature#17798] exception in finalizer
@ 2021-04-13 13:37 zn
2021-07-15 8:30 ` [ruby-dev:51082] " matz
2021-07-22 15:55 ` [ruby-dev:51085] " nobu
0 siblings, 2 replies; 3+ messages in thread
From: zn @ 2021-04-13 13:37 UTC (permalink / raw)
To: ruby-dev
Issue #17798 has been reported by znz (Kazuhiro NISHIYAMA).
----------------------------------------
Feature #17798: exception in finalizer
https://bugs.ruby-lang.org/issues/17798
* Author: znz (Kazuhiro NISHIYAMA)
* Status: Open
* Priority: Normal
----------------------------------------
https://docs.ruby-lang.org/ja/latest/method/ObjectSpace/m/define_finalizer.html に
> proc の呼び出しで発生した大域脱出(exitや例外)は無視されます。これは、スクリプトのメイン処理が GC の発生によって非同期に中断されるのを防ぐためです。不安なうちは -d オプションで事前に例外の発生の有無を確認しておいた方が良いでしょう。
とありますが、メインスレッド以外のスレッドが例外で終了したときにデフォルトでは「terminated with exception (report_on_exception is true)」と出るように、デフォルトでは無視せずにメッセージを出すようにしても良いのではないでしょうか?
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-dev:51082] [Ruby master Feature#17798] exception in finalizer
2021-04-13 13:37 [ruby-dev:51050] [Ruby master Feature#17798] exception in finalizer zn
@ 2021-07-15 8:30 ` matz
2021-07-22 15:55 ` [ruby-dev:51085] " nobu
1 sibling, 0 replies; 3+ messages in thread
From: matz @ 2021-07-15 8:30 UTC (permalink / raw)
To: ruby-dev
Issue #17798 has been updated by matz (Yukihiro Matsumoto).
Sounds OK. Let's try it.
Matz.
----------------------------------------
Feature #17798: exception in finalizer
https://bugs.ruby-lang.org/issues/17798#change-92904
* Author: znz (Kazuhiro NISHIYAMA)
* Status: Open
* Priority: Normal
----------------------------------------
https://docs.ruby-lang.org/ja/latest/method/ObjectSpace/m/define_finalizer.html に
> proc の呼び出しで発生した大域脱出(exitや例外)は無視されます。これは、スクリプトのメイン処理が GC の発生によって非同期に中断されるのを防ぐためです。不安なうちは -d オプションで事前に例外の発生の有無を確認しておいた方が良いでしょう。
とありますが、メインスレッド以外のスレッドが例外で終了したときにデフォルトでは「terminated with exception (report_on_exception is true)」と出るように、デフォルトでは無視せずにメッセージを出すようにしても良いのではないでしょうか?
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-dev:51085] [Ruby master Feature#17798] exception in finalizer
2021-04-13 13:37 [ruby-dev:51050] [Ruby master Feature#17798] exception in finalizer zn
2021-07-15 8:30 ` [ruby-dev:51082] " matz
@ 2021-07-22 15:55 ` nobu
1 sibling, 0 replies; 3+ messages in thread
From: nobu @ 2021-07-22 15:55 UTC (permalink / raw)
To: ruby-dev
Issue #17798 has been updated by nobu (Nobuyoshi Nakada).
https://github.com/ruby/ruby/pull/4670
----------------------------------------
Feature #17798: exception in finalizer
https://bugs.ruby-lang.org/issues/17798#change-92972
* Author: znz (Kazuhiro NISHIYAMA)
* Status: Open
* Priority: Normal
----------------------------------------
https://docs.ruby-lang.org/ja/latest/method/ObjectSpace/m/define_finalizer.html に
> proc の呼び出しで発生した大域脱出(exitや例外)は無視されます。これは、スクリプトのメイン処理が GC の発生によって非同期に中断されるのを防ぐためです。不安なうちは -d オプションで事前に例外の発生の有無を確認しておいた方が良いでしょう。
とありますが、メインスレッド以外のスレッドが例外で終了したときにデフォルトでは「terminated with exception (report_on_exception is true)」と出るように、デフォルトでは無視せずにメッセージを出すようにしても良いのではないでしょうか?
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-22 15:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-13 13:37 [ruby-dev:51050] [Ruby master Feature#17798] exception in finalizer zn
2021-07-15 8:30 ` [ruby-dev:51082] " matz
2021-07-22 15:55 ` [ruby-dev:51085] " nobu
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 NNTP newsgroup(s).