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

Calling undefined things in a grammar causes a Null PMC access in rakudo #230

Closed
p6rt opened this issue Aug 12, 2008 · 5 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Aug 12, 2008

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

Searchable as RT57862$

@p6rt
Copy link
Author

p6rt commented Aug 12, 2008

From @masak

r30183​:
$ ./perl6 -e 'grammar A { token b { c } }; "c" ~~ A​::b' # works
$ ./perl6 -e 'grammar A { token b { <c> } }; "c" ~~ A​::b' # fails
Unable to find regex 'c'
Null PMC access in invoke()
[...]

To be clear, the bug is not about the failure itself (which is
expected), but about the Null PMC access that follows it.

@p6rt
Copy link
Author

p6rt commented Jul 8, 2009

From @kyleha

On Tue Aug 12 11​:55​:47 2008, masak wrote​:

r30183​:
$ ./perl6 -e 'grammar A { token b { c } }; "c" ~~ A​::b' # works
$ ./perl6 -e 'grammar A { token b { <c> } }; "c" ~~ A​::b' # fails
Unable to find regex 'c'
Null PMC access in invoke()
[...]

To be clear, the bug is not about the failure itself (which is
expected), but about the Null PMC access that follows it.

Testing with 116fa46b40260e5777db96a05ef75dba0cd41f05 now, this gives a
new error message and no Null PMC access.

$ ./perl6 -e 'grammar A { token b { <c> } }; "c" ~~ A​::b'
too few arguments passed (0) - 2 params expected
in regex A​::b (<unknown>​:1)
called from Main (<unknown>​:1)

@p6rt
Copy link
Author

p6rt commented Jul 8, 2009

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

@p6rt
Copy link
Author

p6rt commented Sep 7, 2009

From @masak

Confirmed. Resolving.

@p6rt
Copy link
Author

p6rt commented Sep 7, 2009

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

@p6rt p6rt closed this as completed Sep 7, 2009
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