-
Notifications
You must be signed in to change notification settings - Fork 1
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' routines break when precompiled #3539
Comments
From @raydiakCreate a module M containing "module M { sub f () is cached is export { } }". When precompiled, the following error occurs when f() is called: Cannot invoke null object This is perl6 version 2014.09-81-g89abcf2 built on MoarVM version 2014.09-12-gb9e24ee |
From @dwarringTest case has been added to S10-packages/precompilation.t. Fudged On Fri Oct 03 17:41:15 2014, raydiak@cyberuniverses.com wrote:
|
The RT System itself - Status changed from 'new' to 'open' |
From @lizmat
At least on OS X, this has now changed to a segfault on Moar, easily reproducible thus: $ perl6 -e 'CompUnit.new("t/spec/packages/Example/C.pm").precomp’ Liz |
From @bdwWhich backend is that? I'm assuming moar. 2015-01-08 10:14 GMT+01:00 Elizabeth Mattijsen <liz@dijkmat.nl>:
|
From @lizmatMoar :-)
|
From @lizmat
I further golfed this down to: multi sub trait_mod:<is>(Routine $r, :$foo!) { Put this in a file with a .pm extension, precomp it like above, and try to load it. Liz |
From @lizmat
By making the block completely parameterless, it gives a stack trace Cannot invoke null object that brings us to: src/Perl6/Metamodel/Dispatchers.nqp line 101: method enter(*@pos, *%named) { So it would appear that we cannot find a candidate to be dispatched to. Perhaps the original sub is not serialized??? Liz |
Migrated from rt.perl.org#122896 (status was 'open')
Searchable as RT122896$
The text was updated successfully, but these errors were encountered: