https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17097754782013-03-23T17:39:57ZRuby Issue Tracking SystemBackport200 - Backport #8154: Remove/fix rb_check_block_callhttps://bugs.ruby-lang.org/issues/8154?journal_id=378452013-03-23T17:39:57Znobu (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 r39881.<br>
Marc-Andre, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>vm_eval.c: preserve passed_block</p>
<ul>
<li>vm_eval.c (check_funcall_respond_to): preserve passed_block, which<br>
is modified in vm_call0_body() via vm_call0(), and caused a bug of<br>
rb_check_funcall() by false negative result of rb_block_given_p().<br>
re-fix <a href="/issues/8153">[ruby-core:53650]</a> [Bug <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: Problems with Enumerable#zip caused by overriding Object#respond_to? (Closed)" href="https://bugs.ruby-lang.org/issues/8153">#8153</a>].<br>
<a href="/issues/8154">[ruby-core:53653]</a> [Bug <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: Remove/fix rb_check_block_call (Closed)" href="https://bugs.ruby-lang.org/issues/8154">#8154</a>]</li>
</ul> Backport200 - Backport #8154: Remove/fix rb_check_block_callhttps://bugs.ruby-lang.org/issues/8154?journal_id=385242013-04-14T02:09:53Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Backport</i></li><li><strong>Project</strong> changed from <i>Ruby master</i> to <i>Backport200</i></li><li><strong>Category</strong> deleted (<del><i>core</i></del>)</li><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li><li><strong>Assignee</strong> changed from <i>nobu (Nobuyoshi Nakada)</i> to <i>nagachika (Tomoyuki Chikanaga)</i></li><li><strong>Target version</strong> deleted (<del><i>2.1.0</i></del>)</li></ul> Backport200 - Backport #8154: Remove/fix rb_check_block_callhttps://bugs.ruby-lang.org/issues/8154?journal_id=385272013-04-14T02:20:02Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>This issue was solved with changeset r40281.<br>
Marc-Andre, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>merge revision(s) 39877,39881: [Backport <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: Problems with Enumerable#zip caused by overriding Object#respond_to? (Closed)" href="https://bugs.ruby-lang.org/issues/8153">#8153</a>] [Backport <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: Remove/fix rb_check_block_call (Closed)" href="https://bugs.ruby-lang.org/issues/8154">#8154</a>]</p>
<pre><code>* array.c: Avoid zip bug by not using obsolete rb_check_block_call
[Bug #8153]
* vm_eval.c (check_funcall_respond_to): preserve passed_block, which
is modified in vm_call0_body() via vm_call0(), and caused a bug of
rb_check_funcall() by false negative result of rb_block_given_p().
re-fix <a href="/issues/8153">[ruby-core:53650]</a> [Bug #8153].
<a href="/issues/8154">[ruby-core:53653]</a> [Bug #8154]
</code></pre>