New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling $object.can from within PRE causes STORE to Nil error under some circumstances #4234
Comments
From @hoelzroTwo example files that trigger the problem are attached. |
From @hoelzro |
From @hoelzro |
From @hoelzroOn Mon May 11 13:18:18 2015, rob@hoelz.ro wrote:
Calling any method on self actually triggers this; not just .can. |
From @hoelzroOn Mon May 11 13:18:18 2015, rob@hoelz.ro wrote:
Also, it seems to be related to use of callsame. |
From @hoelzroOn Mon May 11 13:27:23 2015, rob@hoelz.ro wrote:
I think that $*DISPATCHER.exhausted is misreporting, and that this is related to https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125135. |
From @hoelzroOn Mon May 11 13:34:36 2015, rob@hoelz.ro wrote:
Ok, so the similarity is skin deep; whereas #125135 has to do with a dispatcher mistakenly being used twice, this issue has to do with something setting the number of candidates to 0. |
From @hoelzroOn Mon May 11 14:05:58 2015, rob@hoelz.ro wrote:
Also happens with ENTER blocks. Doesn't happen if the ENTER/PRE block is wrapped in a do block. |
From @hoelzroOn Mon May 11 14:09:27 2015, rob@hoelz.ro wrote:
Even just calling say() in a PRE block triggers this problem. |
From @hoelzroOn Mon May 11 14:18:02 2015, rob@hoelz.ro wrote:
I've discovered that in the case of the method calling .wrap, $*DISPATCHER is replaced with a MethodDispatcher, instead of the normal WrapDispatcher. |
From @hoelzroOn Mon May 11 21:45:24 2015, rob@hoelz.ro wrote:
Apparently 319509a is the culprit (for one of the test files, anyway); I'll reach out to jnthn and see if he has some insights on how to fix this bug without sacrificing performance. |
From @hoelzroOn Tue May 12 18:59:38 2015, rob@hoelz.ro wrote:
pre-nil-2.p6 is not actually a problem; I forgot to inherit from the base class in that test! |
Migrated from rt.perl.org#125154 (status was 'new')
Searchable as RT125154$
The text was updated successfully, but these errors were encountered: