From: "tommy.odom (Tommy Odom)" Date: 2012-08-08T22:17:10+09:00 Subject: [ruby-core:47075] [ruby-trunk - Bug #6653] 1.9.2/1.9.3 exhibit SEGV with many threads+tcp connections Issue #6653 has been updated by tommy.odom (Tommy Odom). I've hit a similar issue while using Chef with Ruby 1.9.3 on Ubuntu 12.04. I've tried with both the Ubuntu 1.9.3 packages as well as the packages provided by Brightbox and with both I've hit a very similar stack trace. One thing I have noticed though is that this does not occur if the max open files is set to <= 1700. You can see the stack trace at: https://gist.github.com/3294941 The code in Chef that is failing is: https://github.com/opscode/mixlib-shellout/blob/master/lib/mixlib/shellout/unix.rb ---------------------------------------- Bug #6653: 1.9.2/1.9.3 exhibit SEGV with many threads+tcp connections https://bugs.ruby-lang.org/issues/6653#change-28730 Author: erikh (Erik Hollensbe) Status: Feedback Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] the script: https://gist.github.com/4f36f8543ad702861096 the trace + output of the run: https://gist.github.com/cf7dd137ad65802c46ae ruby -v is 1.9.2-p290, but we're seeing this in 1.9.3-p194 as well. This does *not* exhibit on OS X, only linux, we tested on Ubuntu 12.04. I can get more information if desired. Just guessing, this appears to be a bug in how FD_SETSIZE is handled. Thank you! -- http://bugs.ruby-lang.org/