Skip to content
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

is cached in a precompiled module results in error #5456

Open
p6rt opened this issue Jul 16, 2016 · 4 comments
Open

is cached in a precompiled module results in error #5456

p6rt opened this issue Jul 16, 2016 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jul 16, 2016

Migrated from rt.perl.org#128636 (status was 'open')

Searchable as RT128636$

@p6rt
Copy link
Author

p6rt commented Jul 16, 2016

From @zoffixznet

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​: rakudo/rakudo@2c69ab7...bc722ab

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

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

@p6rt
Copy link
Author

p6rt commented Jul 16, 2016

From @zoffixznet

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

@p6rt
Copy link
Author

p6rt commented Jul 17, 2016

From @LLFourn

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​:

https://rt.perl.org/Public/Bug/Display.html?id=125634
https://rt.perl.org/Public/Bug/Display.html?id=126818
https://rt.perl.org/Public/Bug/Display.html?id=127034
https://rt.perl.org/Public/Bug/Display.html?id=127112
https://rt.perl.org/Public/Bug/Display.html?id=127858
https://rt.perl.org/Public/Bug/Display.html?id=127860
https://rt.perl.org/Public/Bug/Display.html?id=127959
https://rt.perl.org/Public/Bug/Display.html?id=128636

On Sun, Jul 17, 2016 at 5​:59 AM Zoffix Znet <perl6-bugs-followup@​perl.org>
wrote​:

# 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-archive.perl.org/perl6/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​:
rakudo/rakudo@2c69ab7...bc722ab

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

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

@p6rt
Copy link
Author

p6rt commented Jul 17, 2016

The RT System itself - Status changed from 'new' to 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant