Skip Menu |

Subject: [BUG][PRECOMP] is cached in a precompiled module results in error
Download (untitled) / with headers
text/plain 922b
If `no precompilation` is added to A.pm6 , the error goes away. zoffix@VirtualBox:/tmp/tmp.YwbSHxhVWC$ cat A.pm6 use experimental :cached; sub foo($x) is export is cached { $x } zoffix@VirtualBox:/tmp/tmp.YwbSHxhVWC$ perl6 -I. -MA -e 'foo 42' Cannot invoke this object (REPR: Null; VMNull) in block at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/sources/AAC61C0EC6F88780427830443A057030CAA33846 (experimental) line 10 in any enter at gen/moar/m-Metamodel.nqp line 3963 in block <unit> at -e line 1 The issue appeared in one of these commits: https://github.com/rakudo/rakudo/compare/2c69ab78bed2d3f622d027e5e5a132ab212f3a77...bc722abe2cd7f9d34060ee6ff71065a00bedcc16 Looking at the implementation of is cached, these two bugs may or may not be related: https://rt.perl.org/Ticket/Display.html?id=128476 https://rt.perl.org/Ticket/Display.html?id=107844 -- Cheers, ZZ | https://twitter.com/zoffix
Download (untitled) / with headers
text/plain 159b
Well, I lied, 2c69ab7 already contains the bug. My estimate was due to the docs build failing due to this bug and it started failing around the time of 2c69ab7
From: Lloyd Fournier <lloyd.fourn [...] gmail.com>
Subject: Re: [perl #128636] [BUG][PRECOMP] is cached in a precompiled module results in error
To: perl6-compiler [...] perl.org, bugs-bitbucket [...] rt.perl.org
Date: Sun, 17 Jul 2016 01:34:00 +0000
Download (untitled) / with headers
text/plain 1.9k
Hi Zoffix,

You reported the same bug in December :P

https://rt.perl.org/Public/Bug/Display.html?id=126818 (although the error message has changed).

This is the compile time outer context serialization bug. FYI I've kept a list of tickets that are examples of it:


On Sun, Jul 17, 2016 at 5:59 AM Zoffix Znet <perl6-bugs-followup@perl.org> wrote:
Show quoted text
# New Ticket Created by  Zoffix Znet
# Please include the string:  [perl #128636]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=128636 >


If `no precompilation` is added to A.pm6 , the error goes away.

zoffix@VirtualBox:/tmp/tmp.YwbSHxhVWC$ cat A.pm6
use experimental :cached;
sub foo($x) is export is cached { $x }
zoffix@VirtualBox:/tmp/tmp.YwbSHxhVWC$ perl6 -I. -MA -e 'foo 42'
Cannot invoke this object (REPR: Null; VMNull)
  in block  at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/sources/AAC61C0EC6F88780427830443A057030CAA33846 (experimental) line 10
  in any enter at gen/moar/m-Metamodel.nqp line 3963
  in block <unit> at -e line 1


The issue appeared in one of these commits: https://github.com/rakudo/rakudo/compare/2c69ab78bed2d3f622d027e5e5a132ab212f3a77...bc722abe2cd7f9d34060ee6ff71065a00bedcc16


Looking at the implementation of is cached, these two bugs may or may not be related:
https://rt.perl.org/Ticket/Display.html?id=128476
https://rt.perl.org/Ticket/Display.html?id=107844



--
Cheers,
ZZ | https://twitter.com/zoffix


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