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

Null PMC access when defining a circumfix operator with a double quote (") in Rakudo #2970

Closed
p6rt opened this issue Nov 14, 2012 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Nov 14, 2012

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

Searchable as RT115724$

@p6rt
Copy link
Author

p6rt commented Nov 14, 2012

From @masak

<bbkr_> r​: sub circumfix​:<"[" "]"> ($a) { };
<p6eval> rakudo c82d10​: OUTPUT«Null PMC access in find_method('clone') [...]
<jnthn> ooh.
* masak submits rakudobug
<jnthn> Odd since I'm sure we have passing spectests covering circumfixes...
<masak> r​: sub circumfix​:<" "> ($a) { }
<p6eval> rakudo c82d10​: OUTPUT«Null PMC access in find_method('clone') [...]
<masak> r​: sub circumfix​:<" q> ($a) { }
<p6eval> rakudo c82d10​: OUTPUT«Null PMC access in find_method('clone') [...]
<masak> r​: sub circumfix​:<w "> ($a) { }
<p6eval> rakudo c82d10​: OUTPUT«Null PMC access in find_method('clone') [...]
<masak> so, it doesn't like those double quotes.
<jnthn> r​: sub circumfix​:<w '> ($a) { }
<p6eval> rakudo c82d10​: ( no output )
<jnthn> wtf
<masak> of course single quotes are fine :P
<jnthn> That makes even less sense...

@p6rt
Copy link
Author

p6rt commented Oct 22, 2014

From @usev6

Running the command manually everything is fine (on Parrot, Moar and JVM), but running it as a test resurrects the Null PMC access​:

$ perl6-p -e 'sub circumfix​:<w "> ($a) { }; say q[alive]'
alive

$ PERL6LIB=lib perl6-p -e 'use Test; lives_ok { sub circumfix​:<w "> ($a) { }; }, "running under Test.pm"'
not ok 1 - running under Test.pm

# Failed test 'running under Test.pm'
# at -e line 1
# Null PMC access in find_method('clone')

Running it in REPL is also fine​:

sub circumfix​:<w "> ($a) { }; say "alive"
alive

The nice thing is, that I found out about the problem under Test.pm while adding a test to S06-operator-overloading/sub.t with the following commit​: Raku/roast@18a47abfb3

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 22, 2014

From @usev6

Running the command manually everything is fine (on Parrot, Moar and JVM), but running it as a test resurrects the Null PMC access​:

$ perl6-p -e 'sub circumfix​:<w "> ($a) { }; say q[alive]'
alive

$ PERL6LIB=lib perl6-p -e 'use Test; lives_ok { sub circumfix​:<w "> ($a) { }; }, "running under Test.pm"'
not ok 1 - running under Test.pm

# Failed test 'running under Test.pm'
# at -e line 1
# Null PMC access in find_method('clone')

Running it in REPL is also fine​:

sub circumfix​:<w "> ($a) { }; say "alive"
alive

The nice thing is, that I found out about the problem under Test.pm while adding a test to S06-operator-overloading/sub.t with the following commit​: Raku/roast@18a47abfb3

@p6rt
Copy link
Author

p6rt commented Oct 22, 2014

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

@p6rt
Copy link
Author

p6rt commented Nov 18, 2014

From @FROGGS

Fixed in parrot in commits up to​: parrot/parrot@7bc5452
Tests​: Raku/roast@a8a495c

@p6rt
Copy link
Author

p6rt commented Nov 18, 2014

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

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