[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#79029] Re: ruby/spec needs help from CRuby committers
— Benoit Daloze <eregontp@...>
2017/01/09
Thank you Shyouhei-san for your reply.
[ruby-core:78864] [Ruby trunk Bug#12991] Documentation of Thread.abort_on_exception is wrong: it raises error again in main thread
From:
usa@...
Date:
2016-12-27 10:32:55 UTC
List:
ruby-core #78864
Issue #12991 has been updated by Usaku NAKAMURA. Backport changed from 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: DONE, 2.3: REQUIRED ruby_2_2 r57213 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-62271 * Author: Satoshi TAGOMORI * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.1: REQUIRED, 2.2: DONE, 2.3: REQUIRED ---------------------------------------- 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>