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

'enum Foo %h' calls sub h() and then throws Null PMC access #1175

Closed
p6rt opened this issue Jul 27, 2009 · 7 comments
Closed

'enum Foo %h' calls sub h() and then throws Null PMC access #1175

p6rt opened this issue Jul 27, 2009 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jul 27, 2009

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

Searchable as RT67942$

@p6rt
Copy link
Author

p6rt commented Jul 27, 2009

From @moritz

20​:21 <@​jnthn> rakudo​: my %h; sub h { say "srsly wtf" }; enum Foo %h;
20​:21 < p6eval> rakudo 4c31fb​: OUTPUT«srsly wtf␤Null PMC access in
  get_number()␤in Main (/tmp/RYyqcc1SKd​:2)␤»

Neither should h() be called, nor should we see a Null PMC access.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

From @coke

On Mon Jul 27 11​:24​:12 2009, moritz wrote​:

20​:21 <@​jnthn> rakudo​: my %h; sub h { say "srsly wtf" }; enum Foo %h;
20​:21 < p6eval> rakudo 4c31fb​: OUTPUT«srsly wtf␤Null PMC access in
get_number()␤in Main (/tmp/RYyqcc1SKd​:2)␤»

Neither should h() be called, nor should we see a Null PMC access.

Cheers,
Moritz

Completely different error now​:

23​:01 < [Coke]> rakudo​: my %h; sub h { say "srsly wtf" }; enum Foo %h;
23​:01 <+p6eval> rakudo 2808a5​: OUTPUT«Could not find sub &Foo␤ in main program
  body at line 22​:/tmp/1zqFnhDXfg␤»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 11, 2011

From @coke

On Tue Jul 27 20​:01​:29 2010, coke wrote​:

On Mon Jul 27 11​:24​:12 2009, moritz wrote​:

20​:21 <@​jnthn> rakudo​: my %h; sub h { say "srsly wtf" }; enum Foo
%h;
20​:21 < p6eval> rakudo 4c31fb​: OUTPUT«srsly wtf␤Null PMC access in
get_number()␤in Main (/tmp/RYyqcc1SKd​:2)␤»

Neither should h() be called, nor should we see a Null PMC access.

Cheers,
Moritz

Completely different error now​:

23​:01 < [Coke]> rakudo​: my %h; sub h { say "srsly wtf" }; enum Foo %h;
23​:01 <+p6eval> rakudo 2808a5​: OUTPUT«Could not find sub &Foo␤ in
main program
body at line 22​:/tmp/1zqFnhDXfg␤»

Still pretty much the same behavior - is this correct? Can we close this ticket now?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 11, 2011

From @moritz

closing, since the Null PMC access is gone.

@p6rt
Copy link
Author

p6rt commented Oct 11, 2011

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

@p6rt p6rt closed this as completed Oct 11, 2011
@p6rt
Copy link
Author

p6rt commented Nov 29, 2017

From @TimToady

As it happens, the spurious backtracking was also fixed in 754664ed54aea24f9c9162002b6e68aadd311412.

On Tue, 11 Oct 2011 01​:08​:01 -0700, moritz wrote​:

closing, since the Null PMC access is gone.

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