https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-11-29T21:59:57ZRuby Issue Tracking SystemRuby master - Bug #9178: Segfault when misusing Enumerable#chunk with #to_enum and #with_indexhttps://bugs.ruby-lang.org/issues/9178?journal_id=432612013-11-29T21:59:57ZHanmac (Hans Mackowiak)hanmac@gmx.de
<ul></ul><p>does also crash on<br>
ruby 2.0.0p299 (2013-08-29) [x86_64-linux-gnu]<br>
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]</p> Ruby master - Bug #9178: Segfault when misusing Enumerable#chunk with #to_enum and #with_indexhttps://bugs.ruby-lang.org/issues/9178?journal_id=432792013-11-30T16:25:20Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<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>This issue was solved with changeset r43929.<br>
Hans, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>enumerator.c: should not store local variable address</p>
<ul>
<li>enumerator.c (enumerator_with_index): should not store local variable<br>
address to memoise the arguments. it is invalidated after the return.<br>
<a href="/issues/9178">[ruby-core:58692]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Segfault when misusing Enumerable#chunk with #to_enum and #with_index (Closed)" href="https://bugs.ruby-lang.org/issues/9178">#9178</a>]</li>
</ul> Ruby master - Bug #9178: Segfault when misusing Enumerable#chunk with #to_enum and #with_indexhttps://bugs.ruby-lang.org/issues/9178?journal_id=433452013-12-02T13:51:03Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>1.9.3: UNKNOWN, 2.0.0: UNKNOWN</i> to <i>1.9.3: REQUIRED, 2.0.0: REQUIRED</i></li></ul> Ruby master - Bug #9178: Segfault when misusing Enumerable#chunk with #to_enum and #with_indexhttps://bugs.ruby-lang.org/issues/9178?journal_id=433662013-12-02T23:50:08Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>1.9.3: REQUIRED, 2.0.0: REQUIRED</i> to <i>1.9.3: REQUIRED, 2.0.0: DONE</i></li></ul><p>r43929 was backported to ruby_2_0_0 branch at r43961.<br>
r39594 and r39596 were also required to backport. see <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Enumerator#with_index(large_number) (Closed)" href="https://bugs.ruby-lang.org/issues/8010">#8010</a>.</p> Ruby master - Bug #9178: Segfault when misusing Enumerable#chunk with #to_enum and #with_indexhttps://bugs.ruby-lang.org/issues/9178?journal_id=435792013-12-11T00:30:23Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul></ul><p>Maybe r39722 should be backported too.</p> Ruby master - Bug #9178: Segfault when misusing Enumerable#chunk with #to_enum and #with_indexhttps://bugs.ruby-lang.org/issues/9178?journal_id=435802013-12-11T00:30:42Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>1.9.3: REQUIRED, 2.0.0: DONE</i> to <i>1.9.3: REQUIRED, 2.0.0: REQUIRED</i></li></ul> Ruby master - Bug #9178: Segfault when misusing Enumerable#chunk with #to_enum and #with_indexhttps://bugs.ruby-lang.org/issues/9178?journal_id=436272013-12-13T01:03:05Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>1.9.3: REQUIRED, 2.0.0: REQUIRED</i> to <i>1.9.3: REQUIRED, 2.0.0: DONE</i></li></ul><p>r39722 was backported to ruby_2_0_0 branch at r44150.</p> Ruby master - Bug #9178: Segfault when misusing Enumerable#chunk with #to_enum and #with_indexhttps://bugs.ruby-lang.org/issues/9178?journal_id=446852014-01-29T05:39:13Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>1.9.3: REQUIRED, 2.0.0: DONE</i> to <i>1.9.3: DONE, 2.0.0: DONE</i></li></ul><p>backported into ruby_1_9_3 at r44745.</p>