https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112015-03-30T11:40:32ZRuby Issue Tracking SystemRuby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=519742015-03-30T11:40:32ZMartinBosslet (Martin Bosslet)Martin.Bosslet@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Assignee</strong> set to <i>ko1 (Koichi Sasada)</i></li></ul><p>This [1] seems to be the section of the code where the error happened.</p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/17">@ko1 (Koichi Sasada)</a>: Could this be a GC issue?</p>
<p>[1] <a href="https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L1661" class="external">https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L1661</a></p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=519852015-03-30T19:48:36Zdmarkow (Dylan Markow)dmarkow@gmail.com
<ul></ul><p>This might be a duplicate of <a href="https://bugs.ruby-lang.org/issues/10933" class="external">https://bugs.ruby-lang.org/issues/10933</a> which has already been fixed (but not released)?</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=528982015-06-13T07:51:58Zko1 (Koichi Sasada)
<ul></ul><p>Could you check it on the latest version?</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=529322015-06-15T13:59:38Znetronix (Michaël Rigart)michael@netronix.be
<ul><li><strong>File</strong> <a href="/attachments/5307">stacktrace.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5307/stacktrace.txt">stacktrace.txt</a> added</li></ul><p>Koichi Sasada wrote:</p>
<blockquote>
<p>Could you check it on the latest version?</p>
</blockquote>
<p>I'm experiencing the same issue under ruby 2.2.2p95 . Full stack trace attached:</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=529362015-06-15T23:02:52Zzzak (zzak _)
<ul></ul><p>Do you know how to reproduce it?</p>
<p>Rails+Ruby 2.2 isn't enough for me to make a crash.</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=530722015-06-21T11:00:50Znetronix (Michaël Rigart)michael@netronix.be
<ul><li><strong>File</strong> <a href="/attachments/5329">stacktrace.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5329/stacktrace.txt">stacktrace.txt</a> added</li></ul><p>Zachary Scott wrote:</p>
<blockquote>
<p>Do you know how to reproduce it?</p>
<p>Rails+Ruby 2.2 isn't enough for me to make a crash.</p>
</blockquote>
<p>I was able to reduce the frequency by updating some gems. Now, instead of happening in different cases, it only seems to happen on routines that fetch data from an external API's ( yammer and Diigo ).</p>
<p>Going to have a look in more detail if I find a common denominator.</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=530732015-06-21T12:30:40Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>Can't you compile with debug symbols enabled?</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=533692015-07-10T18:09:49Zgrey-owl (Steve Torrence)storrence97@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/5366">crash_thin.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5366/crash_thin.txt">crash_thin.txt</a> added</li></ul><p>I have recently experienced two crashes (stack traces attached) that appear similar to Mr. Rigart's. Both appear to involve creation of a new array in methods called indirectly from the block passed to Thread.new.</p>
<p>Both occurred when running cucumber tests in a rails app. Unfortunately I haven't figured out how to reproduce them.</p>
<p>crash_webrick.txt happened under rails 4.1.6 when using webrick as the http server for the tests.</p>
<p>crash_thin.txt happened under rails 4.1.11 when using thin as the http server for the tests.</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=533702015-07-10T18:10:46Zgrey-owl (Steve Torrence)storrence97@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/5367">crash_webrick.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5367/crash_webrick.txt">crash_webrick.txt</a> added</li></ul><p>Upload failed for one of the stack traces I mentioned in the preceding comment. Here is that file.</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=533732015-07-11T00:11:20Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p><code>crash_thin.txt</code> seems related to EventMachine.<br>
Maybe it didn't acquire GVL properly.</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=533742015-07-11T00:11:58Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/53374/diff?detail_id=38408">diff</a>)</li></ul> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=533862015-07-13T14:11:28Zmkechinov (Michael Kechinov)kechinoff@gmail.com
<ul></ul><p>Same problem for Ruby 2.2.2</p>
<p>Rails 4.2.3<br>
Ruby 2.2.2 (using RVM)<br>
Debian 7.<br>
Stack trace: <a href="https://gist.github.com/noff/4c61cd980c098bba1041" class="external">https://gist.github.com/noff/4c61cd980c098bba1041</a><br>
Every cron task dies with such error, but everytime it happens in different files (ssl, new_relic, dependencies, etc).</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=535342015-07-23T20:01:22Zmkechinov (Michael Kechinov)kechinoff@gmail.com
<ul></ul><p>Problem still happens.<br>
Any news with it?<br>
It happens only on one machine on Debian 7.<br>
Does not reproduce on same machine with same OS.</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=536692015-08-04T17:09:07Zbmishkin1 (Ben Mishkin)bmishkin@mac.com
<ul></ul><p>possibly related</p>
<p>Rails version 4.2.3<br>
Ruby version 2.2.2-p95 (x86_64-linux)<br>
RubyGems version 2.4.6<br>
Rack version 1.6.4<br>
Ubuntu 12.04</p>
<p>trace: <a href="https://gist.github.com/bmishkin/2766109621a6744a3311" class="external">https://gist.github.com/bmishkin/2766109621a6744a3311</a></p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=536702015-08-04T22:31:29Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>Ben Mishkin wrote:</p>
<blockquote>
<p>trace: <a href="https://gist.github.com/bmishkin/2766109621a6744a3311" class="external">https://gist.github.com/bmishkin/2766109621a6744a3311</a></p>
</blockquote>
<p>It's [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [BUG] object allocation during garbage collection phase (Closed)" href="https://bugs.ruby-lang.org/issues/10933">#10933</a>].</p> Ruby master - Bug #10968: [BUG] object allocation during garbage collection phase in /opt/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/ssl.rb:177https://bugs.ruby-lang.org/issues/10968?journal_id=539242015-08-21T15:32:32Zko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Please reopen if you got same error on 2.2.3.</p>