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

say EXPORT::ALL causes Null PMC access #3166

Closed
p6rt opened this issue Jun 16, 2013 · 10 comments
Closed

say EXPORT::ALL causes Null PMC access #3166

p6rt opened this issue Jun 16, 2013 · 10 comments

Comments

@p6rt
Copy link

p6rt commented Jun 16, 2013

Migrated from rt.perl.org#118501 (status was 'resolved')

Searchable as RT118501$

@p6rt
Copy link
Author

p6rt commented Jun 16, 2013

From dagurval@pvv.ntnu.no

$ perl6

sub a is export { 'a' }
sub a() { ... }
say EXPORT​::ALL
Error while compiling block (source text​: "say EXPORT​::ALL\n")​: Error
while compiling op call​: Error while compiling block : Error while
compiling op call (source text​: "say EXPORT​::ALL\n")​: Null PMC access in
find_method('handle')

$ perl6 --version
This is perl6 version 2013.05-251-gd3ae978 built on parrot 5.2.0 revision
RELEASE_5_2_0

@p6rt
Copy link
Author

p6rt commented Nov 18, 2014

From @usev6

As a status update​: There is still a Null PMC access with Parrot and the errors with Moar and JVM don't look that good as well​:

$ perl6-p -e 'sub a is export { "a" }; say EXPORT​::ALL'
===SORRY!===
Error while compiling op callstatic (source text​: "say EXPORT​::ALL")​: Null PMC access in find_method('handle')

$ perl6-m -e 'sub a is export { "a" }; say EXPORT​::ALL'
===SORRY!===
Object of type ALL in QAST​::WVal, but not in SC

$ perl6-j -e 'sub a is export { "a" }; say EXPORT​::ALL'
===SORRY!===
No such method 'jast' for invocant of type 'NQPMu'

1 similar comment
@p6rt
Copy link
Author

p6rt commented Nov 18, 2014

From @usev6

As a status update​: There is still a Null PMC access with Parrot and the errors with Moar and JVM don't look that good as well​:

$ perl6-p -e 'sub a is export { "a" }; say EXPORT​::ALL'
===SORRY!===
Error while compiling op callstatic (source text​: "say EXPORT​::ALL")​: Null PMC access in find_method('handle')

$ perl6-m -e 'sub a is export { "a" }; say EXPORT​::ALL'
===SORRY!===
Object of type ALL in QAST​::WVal, but not in SC

$ perl6-j -e 'sub a is export { "a" }; say EXPORT​::ALL'
===SORRY!===
No such method 'jast' for invocant of type 'NQPMu'

@p6rt
Copy link
Author

p6rt commented Nov 18, 2014

@usev6 - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 19, 2014

From @FROGGS

I have some sort of progress to report​:

$ perl6-m --ll-exception -e 'sub a is export { "foo" }; say &EXPORT​::ALL​::a()'
foo
$ perl6-m --ll-exception -e 'sub a is export { "foo" }; say &EXPORT​::ALL​::a'
sub a () { #`(Sub|83431696) ... }
$ perl6-m --ll-exception -e 'sub a is export { "foo" }; say EXPORT​::ALL​::a'
(Any)

So, it fails in a different way with this patch​:
https://gist.github.com/FROGGS/46ffb87fb14ae04c7083

I keep on working on it but I wanted to post this information here in case I forget.

@p6rt
Copy link
Author

p6rt commented Nov 19, 2014

@FROGGS - Status changed from 'open' to 'resolved'

@p6rt
Copy link
Author

p6rt commented Nov 19, 2014

From @FROGGS

Accidently closed it. Ups.

@p6rt
Copy link
Author

p6rt commented Nov 19, 2014

@FROGGS - Status changed from 'resolved' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 21, 2014

From @FROGGS

Now is the right time to close it :o)

Patch​: rakudo/rakudo@96b9a86548
Tests​: Raku/roast@b33ad00eb6

@p6rt
Copy link
Author

p6rt commented Nov 21, 2014

@FROGGS - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Nov 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant