Issue #10968 has been updated by Nobuyoshi Nakada.

Description updated

----------------------------------------
Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177
https://bugs.ruby-lang.org/issues/10968#change-53374

* Author: Geoffroy Montel
* Status: Feedback
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -v: 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hello

I'm running a Rails 4.2 app in production with chruby 0.3.9 and Ruby 2.2.1p85 on Ubuntu 14.04TLS. 
I have several unicorn and workers processes.
I got this crash on my cron jobs several times

~~~
Thu Mar 12 08:30:01 CET 2015 /usr/local/share/chruby/chruby-cron-wrapper.sh instatube:clean_up_assets - started by deployer on /bin/bash
/opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177: [BUG] object allocation during garbage collection phase
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0028 p:---- s:0134 e:000133 CFUNC  :peer_cert
c:0027 p:0016 s:0131 e:000129 METHOD /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177
c:0026 p:0584 s:0126 e:000125 METHOD /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:925
~~~

Full stack trace attached.

Many thanks in advance for your help, best regards

Geoffroy


---Files--------------------------------
object allocation bug ssl.txt (203 KB)
stacktrace.txt (215 KB)
stacktrace.txt (201 KB)
crash_thin.txt (358 KB)
crash_webrick.txt (346 KB)


-- 
https://bugs.ruby-lang.org/