From: "zenspider (Ryan Davis)" Date: 2012-11-29T09:44:10+09:00 Subject: [ruby-core:50279] [ruby-trunk - Bug #7459] at_exit { Thread.new {} } broken in r37921 Issue #7459 has been updated by zenspider (Ryan Davis). This is blocking my merge of minitest to trunk for 2.0 preview. ---------------------------------------- Bug #7459: at_exit { Thread.new {} } broken in r37921 https://bugs.ruby-lang.org/issues/7459#change-34106 Author: zenspider (Ryan Davis) Status: Open Priority: Urgent Assignee: Category: core Target version: 2.0.0 ruby -v: 2.0 ruby -e 'p Thread.current; at_exit { p Thread.current; [Thread.new {}].map(&:join) }' outputs: # # -e:1:in `new': can't alloc thread (ThreadError) from -e:1:in `block in
' Either the main thread shouldn't be marked as dead until it actually is, or the check in thread_s_new should be expanded to include whatever thread is responsible for the at_exit run. -- http://bugs.ruby-lang.org/