[#79440] [Ruby trunk Bug#13188] Reinitialize Ruby VM. — shyouhei@...
SXNzdWUgIzEzMTg4IGhhcyBiZWVuIHVwZGF0ZWQgYnkgU2h5b3VoZWkgVXJhYmUuCgoKTWFydGlu
6 messages
2017/02/06
[#79441] Re: [Ruby trunk Bug#13188] Reinitialize Ruby VM.
— SASADA Koichi <ko1@...>
2017/02/06
On 2017/02/06 10:10, shyouhei@ruby-lang.org wrote:
[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>
Hi,
15 messages
2017/02/15
[#79541] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/15
Em 15-02-2017 05:05, Daniel Ferreira escreveu:
[#79543] Re: Immutable Strings vs Symbols
— Daniel Ferreira <subtileos@...>
2017/02/16
Hi Rodrigo,
[#79560] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/16
Em 15-02-2017 22:39, Daniel Ferreira escreveu:
[ruby-core:79470] [Ruby trunk Bug#12991] Documentation of Thread.abort_on_exception is wrong: it raises error again in main thread
From:
nagachika00@...
Date:
2017-02-07 16:45:51 UTC
List:
ruby-core #79470
Issue #12991 has been updated by Tomoyuki Chikanaga. Backport changed from 2.1: REQUIRED, 2.2: DONE, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: DONE, 2.3: DONE ruby_2_3 r57568 merged revision(s) 56928. ---------------------------------------- Bug #12991: Documentation of Thread.abort_on_exception is wrong: it raises error again in main thread https://bugs.ruby-lang.org/issues/12991#change-62901 * Author: Satoshi TAGOMORI * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.1: REQUIRED, 2.2: DONE, 2.3: DONE ---------------------------------------- Currently, ruby doc says that: ``` When set to true, all threads will abort (the process will exit(0)) if an exception is raised in any thread. ``` But actually, the error raised in thread (with abort_on_exception = true) will be re-raised in main thread. If main thread is running in begin-rescue for that error, the process (and other threads) will NOT abort. ```ruby sleeping = false Thread.abort_on_exception = true th = Thread.new do sleep 0.1 until sleeping raise "yay" end begin sleeping = true sleep 5 rescue => e p(here: "rescue in main thread", error: e) end p "foo!" ``` This script shows "p" result and "foo!". I think the document is misleading. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>