Skip Menu |
Report information
Id: 125154
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: rob [at] hoelz.ro
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: Moar



Subject: Calling $object.can from within PRE causes STORE to Nil error under some circumstances
Two example files that trigger the problem are attached.
Subject: pre-nil-2.p6
Download pre-nil-2.p6
application/octet-stream 284b

Message body not shown because it is not plain text.

Subject: pre-nil.p6
Download pre-nil.p6
application/octet-stream 275b

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 174b
On Mon May 11 13:18:18 2015, rob@hoelz.ro wrote: Show quoted text
> Two example files that trigger the problem are attached.
Calling any method on self actually triggers this; not just .can.
Download (untitled) / with headers
text/plain 157b
On Mon May 11 13:18:18 2015, rob@hoelz.ro wrote: Show quoted text
> Two example files that trigger the problem are attached.
Also, it seems to be related to use of callsame.
Download (untitled) / with headers
text/plain 347b
On Mon May 11 13:27:23 2015, rob@hoelz.ro wrote: Show quoted text
> On Mon May 11 13:18:18 2015, rob@hoelz.ro wrote:
> > Two example files that trigger the problem are attached.
> > Also, it seems to be related to use of callsame.
I think that $*DISPATCHER.exhausted is misreporting, and that this is related to https://rt.perl.org/Ticket/Display.html?id=125135.
Download (untitled) / with headers
text/plain 597b
On Mon May 11 13:34:36 2015, rob@hoelz.ro wrote: Show quoted text
> On Mon May 11 13:27:23 2015, rob@hoelz.ro wrote:
> > On Mon May 11 13:18:18 2015, rob@hoelz.ro wrote:
> > > Two example files that trigger the problem are attached.
> > > > Also, it seems to be related to use of callsame.
> > I think that $*DISPATCHER.exhausted is misreporting, and that this is > related to https://rt.perl.org/Ticket/Display.html?id=125135.
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.
Download (untitled) / with headers
text/plain 768b
On Mon May 11 14:05:58 2015, rob@hoelz.ro wrote: Show quoted text
> On Mon May 11 13:34:36 2015, rob@hoelz.ro wrote:
> > On Mon May 11 13:27:23 2015, rob@hoelz.ro wrote:
> > > On Mon May 11 13:18:18 2015, rob@hoelz.ro wrote:
> > > > Two example files that trigger the problem are attached.
> > > > > > Also, it seems to be related to use of callsame.
> > > > I think that $*DISPATCHER.exhausted is misreporting, and that this is > > related to https://rt.perl.org/Ticket/Display.html?id=125135.
> > 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.
Also happens with ENTER blocks. Doesn't happen if the ENTER/PRE block is wrapped in a do block.
Download (untitled) / with headers
text/plain 920b
On Mon May 11 14:09:27 2015, rob@hoelz.ro wrote: Show quoted text
> On Mon May 11 14:05:58 2015, rob@hoelz.ro wrote:
> > On Mon May 11 13:34:36 2015, rob@hoelz.ro wrote:
> > > On Mon May 11 13:27:23 2015, rob@hoelz.ro wrote:
> > > > On Mon May 11 13:18:18 2015, rob@hoelz.ro wrote:
> > > > > Two example files that trigger the problem are attached.
> > > > > > > > Also, it seems to be related to use of callsame.
> > > > > > I think that $*DISPATCHER.exhausted is misreporting, and that this > > > is > > > related to https://rt.perl.org/Ticket/Display.html?id=125135.
> > > > 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.
> > Also happens with ENTER blocks. Doesn't happen if the ENTER/PRE block > is wrapped in a do block.
Even just calling say() in a PRE block triggers this problem.
Download (untitled) / with headers
text/plain 1.1k
On Mon May 11 14:18:02 2015, rob@hoelz.ro wrote: Show quoted text
> On Mon May 11 14:09:27 2015, rob@hoelz.ro wrote:
> > On Mon May 11 14:05:58 2015, rob@hoelz.ro wrote:
> > > On Mon May 11 13:34:36 2015, rob@hoelz.ro wrote:
> > > > On Mon May 11 13:27:23 2015, rob@hoelz.ro wrote:
> > > > > On Mon May 11 13:18:18 2015, rob@hoelz.ro wrote:
> > > > > > Two example files that trigger the problem are attached.
> > > > > > > > > > Also, it seems to be related to use of callsame.
> > > > > > > > I think that $*DISPATCHER.exhausted is misreporting, and that this > > > > is > > > > related to https://rt.perl.org/Ticket/Display.html?id=125135.
> > > > > > 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.
> > > > Also happens with ENTER blocks. Doesn't happen if the ENTER/PRE block > > is wrapped in a do block.
> > Even just calling say() in a PRE block triggers this problem.
I've discovered that in the case of the method calling .wrap, $*DISPATCHER is replaced with a MethodDispatcher, instead of the normal WrapDispatcher.
Download (untitled) / with headers
text/plain 1.4k
On Mon May 11 21:45:24 2015, rob@hoelz.ro wrote: Show quoted text
> On Mon May 11 14:18:02 2015, rob@hoelz.ro wrote:
> > On Mon May 11 14:09:27 2015, rob@hoelz.ro wrote:
> > > On Mon May 11 14:05:58 2015, rob@hoelz.ro wrote:
> > > > On Mon May 11 13:34:36 2015, rob@hoelz.ro wrote:
> > > > > On Mon May 11 13:27:23 2015, rob@hoelz.ro wrote:
> > > > > > On Mon May 11 13:18:18 2015, rob@hoelz.ro wrote:
> > > > > > > Two example files that trigger the problem are attached.
> > > > > > > > > > > > Also, it seems to be related to use of callsame.
> > > > > > > > > > I think that $*DISPATCHER.exhausted is misreporting, and that > > > > > this > > > > > is > > > > > related to https://rt.perl.org/Ticket/Display.html?id=125135.
> > > > > > > > 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.
> > > > > > Also happens with ENTER blocks. Doesn't happen if the ENTER/PRE > > > block > > > is wrapped in a do block.
> > > > Even just calling say() in a PRE block triggers this problem.
> > > I've discovered that in the case of the method calling .wrap, > $*DISPATCHER is replaced with a MethodDispatcher, instead of the > normal WrapDispatcher.
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.
Download (untitled) / with headers
text/plain 1.6k
On Tue May 12 18:59:38 2015, rob@hoelz.ro wrote: Show quoted text
> On Mon May 11 21:45:24 2015, rob@hoelz.ro wrote:
> > On Mon May 11 14:18:02 2015, rob@hoelz.ro wrote:
> > > On Mon May 11 14:09:27 2015, rob@hoelz.ro wrote:
> > > > On Mon May 11 14:05:58 2015, rob@hoelz.ro wrote:
> > > > > On Mon May 11 13:34:36 2015, rob@hoelz.ro wrote:
> > > > > > On Mon May 11 13:27:23 2015, rob@hoelz.ro wrote:
> > > > > > > On Mon May 11 13:18:18 2015, rob@hoelz.ro wrote:
> > > > > > > > Two example files that trigger the problem are attached.
> > > > > > > > > > > > > > Also, it seems to be related to use of callsame.
> > > > > > > > > > > > I think that $*DISPATCHER.exhausted is misreporting, and that > > > > > > this > > > > > > is > > > > > > related to https://rt.perl.org/Ticket/Display.html?id=125135.
> > > > > > > > > > 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.
> > > > > > > > Also happens with ENTER blocks. Doesn't happen if the ENTER/PRE > > > > block > > > > is wrapped in a do block.
> > > > > > Even just calling say() in a PRE block triggers this problem.
> > > > > > I've discovered that in the case of the method calling .wrap, > > $*DISPATCHER is replaced with a MethodDispatcher, instead of the > > normal WrapDispatcher.
> > 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.
pre-nil-2.p6 is not actually a problem; I forgot to inherit from the base class in that test!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org