https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112017-05-02T15:09:02ZRuby Issue Tracking SystemRuby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=646392017-05-02T15:09:02Zko1 (Koichi Sasada)
<ul></ul><p>It should be marking miss failure.<br>
Could you give us the way to reproduce it?</p> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=646422017-05-02T17:49:28Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>File</strong> <a href="/attachments/6525">bug-13537.log</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6525/bug-13537.log">bug-13537.log</a> added</li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/64642/diff?detail_id=44958">diff</a>)</li></ul> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=651542017-05-29T14:50:26Zkwilczynski (Krzysztof Wilczynski)kw@linux.com
<ul></ul><p>I can confirm having the same issue. It's intermediate but reproducible, and affects both 2.4.0 and 2.4.1 versions.</p>
<p>The setup is simple:</p>
<ul>
<li>OS X (macOS 10.12.5 with latest patches)</li>
<li>XCode command line tools (also latest)</li>
<li>rbenv with ruby-install (installed via Homebrew)</li>
</ul>
<p>The guard Ruby gem is installed and run using fsnotify events to trigger builds, and it would randomly crash Ruby interpreter. Sometimes at the very beginning, sometimes after running a while.</p>
<p>Since I test against multiple Ruby versions, I can confirm that this does not happen on 2.2.6 and 2.3.3, only 2.4.x family is affected.</p> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=651652017-05-30T02:16:16Zko1 (Koichi Sasada)
<ul></ul><p>If you can modify MRI source code, please try to change <code>RGENGC_CHECK_MODE</code> in gc.c to <code>2</code> and run your program on your modified MRI again.<br>
It will inserts many assertions and it may help.</p>
<p>Thanks,<br>
Koichi</p> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=654972017-06-28T03:07:36Zwanabe (_ wanabe)s.wanabe@gmail.com
<ul></ul><p>Is this same to <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: GC bug calling `ObjectSpace.each_object` (Closed)" href="https://redmine.ruby-lang.org/issues/13605">#13605</a> and fixed at r59063?</p> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=654982017-06-28T03:07:54Zwanabe (_ wanabe)s.wanabe@gmail.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/13605">Bug #13605</a>: GC bug calling `ObjectSpace.each_object`</i> added</li></ul> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=659962017-08-01T07:15:05Zdjellemah (John Anderson)john@semiosix.com
<ul></ul><p>I get the same error running the Pry rspec suite.</p>
<pre><code>[BUG] rb_gc_mark(): 0x000000036d2bc8 is T_NONE
</code></pre>
<p>The value 0x000000036d2bc8 varies.</p>
<p>Using ruby 2.4.2p161 (2017-07-23 revision 59409) [x86_64-linux]</p>
<p>When I change RGENGC_CHECK_MODE in gc.c to 2, it fails every time and I get this output</p>
<pre><code>verify_internal_consistency_reachable_i: WB miss (O->Y) 0x0000000003db1110 [3LM ] T_IMEMO env -> 0x00000000036fb8e8 [0 ] T_OBJECT (Pry)
verify_internal_consistency_reachable_i: WB miss (O->Y) 0x0000000003db1200 [3LM ] T_IMEMO env -> 0x00000000036f8170 [0 ] T_OBJECT (Pry::HistoryArray)
verify_internal_consistency_reachable_i: WB miss (O->Y) 0x0000000003db12f0 [3LM ] T_IMEMO env -> 0x00000000036f8288 [0 ] T_OBJECT (Pry::HistoryArray)
/home/panic/src/pry/lib/pry/core_extensions.rb:87: [BUG] gc_verify_internal_consistency: found internal inconsistency.
ruby 2.4.2p161 (2017-07-23 revision 59409) [x86_64-linux]
</code></pre> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=660012017-08-02T02:11:00Zko1 (Koichi Sasada)
<ul></ul><p>could you with check recent trunk (2.5dev)? I'm not sure recent 2.4 has backport patch (r59063).</p> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=660422017-08-05T16:21:11Zdjellemah (John Anderson)john@semiosix.com
<ul></ul><p>I see r59063 went into ruby_2_4 yesterday.</p>
<p>I've been running the Pry rspec suite repeatedly with</p>
<p>ruby 2.5.0dev (2017-08-05 trunk 59519) [x86_64-linux]</p>
<p>ruby 2.4.2p181 (2017-08-05 revision 59520) [x86_64-linux]</p>
<p>and I don't get the crash.</p>
<p>Thanks :-)</p> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=660482017-08-07T01:22:50Zko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>:tada:</p> Ruby master - Bug #13537: ruby crash in rb_gc_markhttps://redmine.ruby-lang.org/issues/13537?journal_id=660672017-08-08T11:45:29Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN</i> to <i>2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE</i></li></ul>