https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112014-09-23T20:01:57ZRuby Issue Tracking SystemRuby master - Bug #10282: Reproducible segfault when inspecting this methodhttps://bugs.ruby-lang.org/issues/10282?journal_id=490802014-09-23T20:01:57Znormalperson (Eric Wong)normalperson@yhbt.net
<ul><li><strong>File</strong> <a href="/attachments/4715">0001-object.c-rb_class_real-do-not-dereference-0-VALUE.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/4715/0001-object.c-rb_class_real-do-not-dereference-0-VALUE.patch">0001-object.c-rb_class_real-do-not-dereference-0-VALUE.patch</a> added</li><li><strong>Category</strong> set to <i>core</i></li><li><strong>Target version</strong> set to <i>2.2.0</i></li><li><strong>Backport</strong> changed from <i>2.0.0: UNKNOWN, 2.1: UNKNOWN</i> to <i>2.0.0: DONTNEED, 2.1: REQUIRED</i></li></ul><p>This looks to be a simple dereference bug.<br>
However, this is my first time looking a prepend so maybe there's a subtle<br>
behavior change I missed.</p>
<p>"make check" and rubyspec passes, at least.</p> Ruby master - Bug #10282: Reproducible segfault when inspecting this methodhttps://bugs.ruby-lang.org/issues/10282?journal_id=490972014-09-25T20:29:24ZAnonymous
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset r47715.</p>
<hr>
<p>object.c (rb_class_real): do not dereference 0 VALUE</p>
<ul>
<li>test/ruby/test_module.rb (test_inspect_segfault):<br>
Test case and bug report by Thomas Stratmann.<br>
<a href="/issues/10282">[ruby-core:65214]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Reproducible segfault when inspecting this method (Closed)" href="https://bugs.ruby-lang.org/issues/10282">#10282</a>]</li>
</ul> Ruby master - Bug #10282: Reproducible segfault when inspecting this methodhttps://bugs.ruby-lang.org/issues/10282?journal_id=490982014-09-25T20:39:53Znormalperson (Eric Wong)normalperson@yhbt.net
<ul></ul><p><a href="mailto:normalperson@yhbt.net" class="email">normalperson@yhbt.net</a> wrote:</p>
<blockquote>
<p>File 0001-object.c-rb_class_real-do-not-dereference-0-VALUE.patch added</p>
</blockquote>
<blockquote>
<p>This looks to be a simple dereference bug.<br>
However, this is my first time looking a prepend so maybe there's a subtle<br>
behavior change I missed.</p>
</blockquote>
<p>Committed as r47715; I don't think this breaks existing code<br>
(but even if it did, it's better than segfaulting).</p>
<blockquote>
<p>"make check" and rubyspec passes, at least.</p>
</blockquote> Ruby master - Bug #10282: Reproducible segfault when inspecting this methodhttps://bugs.ruby-lang.org/issues/10282?journal_id=494712014-10-15T15:29:37Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>2.0.0: DONTNEED, 2.1: REQUIRED</i> to <i>2.0.0: DONTNEED, 2.1: DONE</i></li></ul><p>Backported into <code>ruby_2_1</code> at r47957.</p>