https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112019-07-23T18:56:21ZRuby Issue Tracking SystemRuby master - Bug #11482: Multiple versions of Ruby crashing with simple threaded client/server testhttps://redmine.ruby-lang.org/issues/11482?journal_id=799142019-07-23T18:56:21Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>I wasn't able to get Ruby to crash with this (maybe I didn't wait long enough?). I tried multiple Ruby versions, all using RubyInstaller:</p>
<pre><code>Ruby 2.1: 21925 successes, 175 failures
Ruby 2.2: 20252 successes, 148 failures
Ruby 2.3: 29900 successes, 0 failures
Ruby 2.4: 9265 successes, 635 failures*
Ruby 2.5: 24200 successes, 0 failures
Ruby 2.6: 29400 successes, 0 failures
</code></pre>
<p>Ruby 2.4 server output showed:</p>
<pre><code>[2019-07-23 11:51:13] ERROR Errno::EBADF: Bad file descriptor - not a socket file descriptor
C:/Ruby24-x64/lib/ruby/2.4.0/webrick/server.rb:257:in `accept'
</code></pre>
<p>And after that it looked like the client continually failed.</p>
<p>Anyway, it appears that this issue has been addressed in recent versions.</p>