https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112017-12-12T13:31:04ZRuby Issue Tracking SystemRuby master - Bug #14171: can't alloc thread (ThreadError) in DRbServer#main_loophttps://bugs.ruby-lang.org/issues/14171?journal_id=683362017-12-12T13:31:04ZEregon (Benoit Daloze)
<ul><li><strong>Target version</strong> set to <i>2.5</i></li></ul> Ruby master - Bug #14171: can't alloc thread (ThreadError) in DRbServer#main_loophttps://bugs.ruby-lang.org/issues/14171?journal_id=683492017-12-12T18:44:05ZEregon (Benoit Daloze)
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r61184.</p>
<hr>
<p>Avoid creating a Thread for shutting down a DRbServer</p>
<ul>
<li>lib/drb/drb.rb: avoid creating a Thread and call the shutdown logic<br>
directly. Do not try to kill or join the current Thread.<br>
Thread.new { stop_service } caused "can't alloc thread (ThreadError)",<br>
which is shown with Thread.report_on_exception = true.<br>
[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: can't alloc thread (ThreadError) in DRbServer#main_loop (Closed)" href="https://bugs.ruby-lang.org/issues/14171">#14171</a>]</li>
</ul> Ruby master - Bug #14171: can't alloc thread (ThreadError) in DRbServer#main_loophttps://bugs.ruby-lang.org/issues/14171?journal_id=685282017-12-19T15:42:34ZEregon (Benoit Daloze)
<ul></ul><p>I also applied @seki's fix in r61342.</p>