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 calling a regex in a derived grammar in Rakudo #979

Closed
p6rt opened this issue May 7, 2009 · 6 comments
Closed

Null PMC access when calling a regex in a derived grammar in Rakudo #979

p6rt opened this issue May 7, 2009 · 6 comments

Comments

@p6rt
Copy link

p6rt commented May 7, 2009

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

Searchable as RT65474$

@p6rt
Copy link
Author

p6rt commented May 7, 2009

From @masak

<masak> I'm trying to understand what
http://rt.perl.org/rt3/Ticket/Display.html?id=57864 needs to be
closed.
<masak> in it, pm says 'inheritance and method dispatch don't seem to
be working quite properly, and we'll need to get that fixed'.
<moritz_> there's just one thing that doesn't work in inheritance
<moritz_> and there's a separate ticket for that
<masak> so I can go ahead and close? which other ticket?
<moritz_> rakudo​: grammar A { token a { a } }; grammar B is A { }; say
'a' ~~ /<B​::a>/
<p6eval> rakudo 615936​: OUTPUT«Null PMC access in invoke() [...]
<moritz_> this one
<moritz_> don't know what ticket it is, though
<masak> moritz_​: are you sure that one's in RT? my searches for
'grammar' and 'inherit' turn up nada.
<moritz_> masak​: nearly sure
<masak> moritz_​: nope. really not finding it.
* masak submits, just to be sure
<moritz_> masak​: ok

@p6rt
Copy link
Author

p6rt commented Oct 11, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S05-grammar/inheritance.t

commit 42bf072d58706c51ab1552046b65a03bca0103f3
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Sun Oct 11 22​:25​:34 2009 +0000

  [t/spec] Label test for RT 65474
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;28762 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S05-grammar/inheritance.t b/t/spec/S05-grammar/inheritance.t
index 1a1b7b6..da3d0cb 100644
--- a/t/spec/S05-grammar/inheritance.t
+++ b/t/spec/S05-grammar/inheritance.t
@@ -19,7 +19,7 @@ grammar Grammar::Bar is Grammar::Foo {
 };
 
 is(~('bar' ~~ /^<Grammar::Bar::bar>$/), 'bar', 'got right match (bar)');
-#?rakudo skip 'directly calling inherited grammar rule'
+#?rakudo skip 'directly calling inherited grammar rule (RT 65474)'
 is(~('foo' ~~ /^<Grammar::Bar::foo>$/), 'foo', 'got right match (foo)');
 is(~('foo' ~~ /^<Grammar::Bar::any>$/), 'foo', 'got right match (any)');
 is(~('bar' ~~ /^<Grammar::Bar::any>$/), 'bar', 'got right match (any)');

@p6rt
Copy link
Author

p6rt commented Oct 11, 2009

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

@p6rt
Copy link
Author

p6rt commented Jan 31, 2011

From @coke

On Thu May 07 07​:44​:31 2009, masak wrote​:

<masak> I'm trying to understand what
http://rt.perl.org/rt3/Ticket/Display.html?id=57864 needs to be
closed.
<masak> in it, pm says 'inheritance and method dispatch don't seem to
be working quite properly, and we'll need to get that fixed'.
<moritz_> there's just one thing that doesn't work in inheritance
<moritz_> and there's a separate ticket for that
<masak> so I can go ahead and close? which other ticket?
<moritz_> rakudo​: grammar A { token a { a } }; grammar B is A { }; say
'a' ~~ /<B​::a>/
<p6eval> rakudo 615936​: OUTPUT«Null PMC access in invoke() [...]
<moritz_> this one
<moritz_> don't know what ticket it is, though
<masak> moritz_​: are you sure that one's in RT? my searches for
'grammar' and 'inherit' turn up nada.
<moritz_> masak​: nearly sure
<masak> moritz_​: nope. really not finding it.
* masak submits, just to be sure
<moritz_> masak​: ok

The error here has changed​:

01​:07 <[Coke]> rakudo​: grammar A { token a { a } }; grammar B is A { }; say 'a'
  ~~ /<B​::a>/
01​:07 <p6eval> rakudo 549d2a​: OUTPUT«===SORRY!===␤regex assertion not
  terminated by angle bracket at line 22, near "​::a>/"␤»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Feb 12, 2012

From @coke

On Sun Jan 30 22​:08​:30 2011, coke wrote​:

On Thu May 07 07​:44​:31 2009, masak wrote​:

<masak> I'm trying to understand what
http://rt.perl.org/rt3/Ticket/Display.html?id=57864 needs to be
closed.
<masak> in it, pm says 'inheritance and method dispatch don't seem
to
be working quite properly, and we'll need to get that fixed'.
<moritz_> there's just one thing that doesn't work in inheritance
<moritz_> and there's a separate ticket for that
<masak> so I can go ahead and close? which other ticket?
<moritz_> rakudo​: grammar A { token a { a } }; grammar B is A { };
say
'a' ~~ /<B​::a>/
<p6eval> rakudo 615936​: OUTPUT«Null PMC access in invoke() [...]
<moritz_> this one
<moritz_> don't know what ticket it is, though
<masak> moritz_​: are you sure that one's in RT? my searches for
'grammar' and 'inherit' turn up nada.
<moritz_> masak​: nearly sure
<masak> moritz_​: nope. really not finding it.
* masak submits, just to be sure
<moritz_> masak​: ok

The error here has changed​:

01​:07 <[Coke]> rakudo​: grammar A { token a { a } }; grammar B is A {
}; say 'a'
~~ /<B​::a>/
01​:07 <p6eval> rakudo 549d2a​: OUTPUT«===SORRY!===␤regex assertion not
terminated by angle bracket at line 22, near "​::a>/"␤»

15​:15 < [Coke]> rakudo​: grammar A { token a { a } }; grammar B is A { };
say
  'a' ~~ /<B​::a>/ # RT 65474
15​:15 <+p6eval> rakudo cd5136​: OUTPUT«=> <a>␤ B​::a => <a>␤␤»
15​:21 < jnthn> [Coke]​: I fixed that a while back. It has good test
coverage.
15​:21 < jnthn> [Coke]​: So you may just close it.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Feb 12, 2012

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

@p6rt p6rt closed this as completed Feb 12, 2012
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