https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112013-04-14T01:35:13ZRuby Issue Tracking SystemBackport200 - Backport #8238: Prepending any module to DateTime causes infiinite loop when using zone-related methodshttps://redmine.ruby-lang.org/issues/8238?journal_id=385212013-04-14T01:35:13Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Category</strong> set to <i>core</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>5</i></li></ul><p>Hello, Mark<br>
Thank you for your reporting.</p>
<p>I can reproduce it with trunk(r40190) and 2.0.0-dev(patchlevel 120) and wrote smaller reproducive code. It is not an issue of Date/DateTime but method search.</p>
<p>class A<br>
def m<br>
end<br>
private :m<br>
end</p>
<p>class B < A<br>
public :m<br>
prepend Module.new<br>
end</p>
<p>B.new.m</p> Backport200 - Backport #8238: Prepending any module to DateTime causes infiinite loop when using zone-related methodshttps://redmine.ruby-lang.org/issues/8238?journal_id=386322013-04-17T03:09:05Zmjtko (Mark Titorenko)nospam-rubylang.org@titorenko.net
<ul></ul><p>nagachika san</p>
<p>Thank you for your further diagnosis of this problem. A method search issue certainly sounds like it warrants a High priority! I am working around my particular instance of this problem by falling back to an include approach for now.</p>
<p>Cheers,</p>
<p>Mark.</p> Backport200 - Backport #8238: Prepending any module to DateTime causes infiinite loop when using zone-related methodshttps://redmine.ruby-lang.org/issues/8238?journal_id=409632013-08-07T13:05:03Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Target version</strong> set to <i>2.1.0</i></li></ul> Backport200 - Backport #8238: Prepending any module to DateTime causes infiinite loop when using zone-related methodshttps://redmine.ruby-lang.org/issues/8238?journal_id=414062013-08-29T17:03:27Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</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 r42724.<br>
Mark, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>vm_insnhelper.c: fix zsuper in prepended</p>
<ul>
<li>vm_insnhelper.c (vm_call_method): a method entry refers the based<br>
class/module, so should search superclass from the origin i-class<br>
where the entry belongs to, to get rid of infinite loop when zsuper<br>
in a prepended class/module. <a href="/issues/8238">[ruby-core:54105]</a> [Bug <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: Prepending any module to DateTime causes infiinite loop when using zone-related methods (Closed)" href="https://redmine.ruby-lang.org/issues/8238">#8238</a>]</li>
</ul> Backport200 - Backport #8238: Prepending any module to DateTime causes infiinite loop when using zone-related methodshttps://redmine.ruby-lang.org/issues/8238?journal_id=414112013-08-29T21:22:01Znagachika (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 #8238: Prepending any module to DateTime causes infiinite loop when using zone-related methodshttps://redmine.ruby-lang.org/issues/8238?journal_id=414132013-08-29T21:50:43Znagachika (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 r42726.<br>
Mark, 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) 42724: [Backport <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: Prepending any module to DateTime causes infiinite loop when using zone-related methods (Closed)" href="https://redmine.ruby-lang.org/issues/8238">#8238</a>]</p>
<pre><code>* vm_insnhelper.c (vm_call_method): a method entry refers the based
class/module, so should search superclass from the origin i-class
where the entry belongs to, to get rid of infinite loop when zsuper
in a prepended class/module. <a href="/issues/8238">[ruby-core:54105]</a> [Bug #8238]
</code></pre>