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 nextsame in anonymous block in Rakudo #1390

Closed
p6rt opened this issue Nov 5, 2009 · 6 comments
Closed

Null PMC access when calling nextsame in anonymous block in Rakudo #1390

p6rt opened this issue Nov 5, 2009 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 5, 2009

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

Searchable as RT70267$

@p6rt
Copy link
Author

p6rt commented Nov 5, 2009

From @masak

<masak> rakudo​: ({nextsame})()
<p6eval> rakudo 5e05b8​: OUTPUT«Null PMC access in clone() [...]
<masak> did that one ever get reported?
<jnthn> Well, I've seen it plenty of times before...
<jnthn> Though that doesn't mean there's a ticket.
<masak> diakopter triggered it yesterday.
<jnthn> Yeah, but that wasn't the first time I've seen it.
<masak> then he allegedly played dumb when moritz_ told him to submit it :)
<masak> no wonder I get all the tickets around here! :)
* masak submits

@p6rt
Copy link
Author

p6rt commented Nov 14, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S06-advanced_subroutine_features/wrap.t

commit e2e985ab474380caa8150cbc81da9ecdd2b2ab80
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Sat Nov 14 05​:05​:08 2009 +0000

  [t/spec] Test for RT 70267​: {nextsame}()
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;29079 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S06-advanced_subroutine_features/wrap.t b/t/spec/S06-advanced_subroutine_features/wrap.t
index 630f119..9ab0ae5 100644
--- a/t/spec/S06-advanced_subroutine_features/wrap.t
+++ b/t/spec/S06-advanced_subroutine_features/wrap.t
@@ -11,7 +11,7 @@ use Test;
 # mutating wraps -- those should be "deep", as in not touching coderefs
 # but actually mutating how the coderef works.
 
-plan 60;
+plan *;
 
 my @log;
 
@@ -166,4 +166,9 @@ is( functionA(), "xz", "First wrapper and final function only, middle removed."
     is( functionB, 'xxx', "Wrap is now out of scope, should be back to normal." );
 }
 
+#?rakudo todo 'RT 70267: call to nextsame with nowhere to go'
+dies_ok { {nextsame}() }, '{nextsame}() dies properly';
+
+done_testing;
+
 # vim: ft=perl6

@p6rt
Copy link
Author

p6rt commented Nov 14, 2009

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

@p6rt
Copy link
Author

p6rt commented Sep 20, 2011

From @coke

On Fri Nov 13 21​:10​:30 2009, KyleHa wrote​:

This is an automatically generated mail to inform you that tests are
now available in t/spec/S06-advanced_subroutine_features/wrap.t

Test is now in t/spec/S06-advanced/wrap.t
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @moritz

It now says "No dispatcher in scope", which I find surprisingly sane :-)

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

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

@p6rt p6rt closed this as completed Oct 1, 2011
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant