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

“ctxlexpad needs an MVMContext” when reaching too far out to get to the truth in Rakudo #3222

Closed
p6rt opened this issue Aug 29, 2013 · 10 comments

Comments

@p6rt
Copy link

p6rt commented Aug 29, 2013

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

Searchable as RT119521$

@p6rt
Copy link
Author

p6rt commented Aug 29, 2013

From @masak

<diakopter> r​: $OUTER​::OUTER​::OUTER​::OUTER​::OUTER​::OUTER​::True
<camelia> rakudo e1f255​: OUTPUT«Null PMC access in get_attr_str() [...]
<diakopter> whee
<diakopter> masak​: NPMCA
* masak submits rakudobug
<masak> diakopter++
<masak> r​: say $OUTER​::OUTER​::OUTER​::OUTER​::OUTER​::True
<camelia> rakudo e1f255​: OUTPUT«(Any)â�¤Â»

So six OUTER​:: thingies cause a Null PMC access, whereas five don't.

@p6rt
Copy link
Author

p6rt commented Aug 29, 2013

From @lizmat

On Aug 29, 2013, at 11​:31 PM, Carl Mäsak (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by "Carl Mäsak"
# Please include the string​: [perl #​119521]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=119521 >

<diakopter> r​: $OUTER​::OUTER​::OUTER​::OUTER​::OUTER​::OUTER​::True
<camelia> rakudo e1f255​: OUTPUT«Null PMC access in get_attr_str() [...]
<diakopter> whee
<diakopter> masak​: NPMCA
* masak submits rakudobug
<masak> diakopter++
<masak> r​: say $OUTER​::OUTER​::OUTER​::OUTER​::OUTER​::True
<camelia> rakudo e1f255​: OUTPUT«(Any)â�¤Â»

So six OUTER​:: thingies cause a Null PMC access, whereas five don't.

That's in the REPL, as a one liner, 4 OUTER's crash, 3 don't

$ perl6 -e '$OUTER​::OUTER​::OUTER​::OUTER​::True'
Null PMC access in get_attr_str()
  in sub at src/gen/CORE.setting​:8786
  in method at_key at src/gen/CORE.setting​:8839
  in method postcircumfix​:<{ }> at src/gen/CORE.setting​:1861
  in method postcircumfix​:<{ }> at src/gen/CORE.setting​:1849
  in block at -e​:1

$ perl6 -e '$OUTER​::OUTER​::OUTER​::True'
$

Liz

@p6rt
Copy link
Author

p6rt commented Aug 29, 2013

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

@p6rt
Copy link
Author

p6rt commented Nov 8, 2014

From @hoelzro

Example​:

  constant @​SOMETHING = OUTER​::OUTER​::.keys();

Results in the following error message​:

===SORRY!===
ctxlexpad needs an MVMContext

@p6rt
Copy link
Author

p6rt commented Nov 9, 2014

From @usev6

This looks very similiar to Ticket #​119521​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=119521

On Parrot we get a Null PMC access error with the same error message as in #​119521​:

$ perl6-p -e 'constant @​SOMETHING = OUTER​::OUTER​::.keys();'
===SORRY!===
Null PMC access in get_attr_str()

If no one objects, I'm going to merge both tickets.

@p6rt
Copy link
Author

p6rt commented Nov 9, 2014

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

@p6rt
Copy link
Author

p6rt commented Dec 2, 2017

From @AlexDaniel

Still reproducible (2017.11, HEAD(5929887)) on MoarVM.

Code​:
$OUTER​::OUTER​::OUTER​::OUTER​::True

Result​:
ctxlexpad needs an MVMContext
  in block <unit> at -e line 1

@p6rt
Copy link
Author

p6rt commented Dec 2, 2017

From @AlexDaniel

lizmat​:

Fixed with cd24b1c55d0c798c8fd776f , tests needed (also for OUTERS​::)

ï½¢testneededï½£

On 2017-12-02 04​:06​:41, alex.jakimenko@​gmail.com wrote​:

Still reproducible (2017.11, HEAD(5929887)) on MoarVM.

Code​:
$OUTER​::OUTER​::OUTER​::OUTER​::True

Result​:
ctxlexpad needs an MVMContext
in block <unit> at -e line 1

@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

From @zoffixznet

On Sat, 02 Dec 2017 15​:36​:40 -0800, alex.jakimenko@​gmail.com wrote​:

lizmat​:

Fixed with cd24b1c55d0c798c8fd776f , tests needed (also for OUTERS​::)

ï½¢testneededï½£

On 2017-12-02 04​:06​:41, alex.jakimenko@​gmail.com wrote​:

Still reproducible (2017.11, HEAD(5929887)) on MoarVM.

Code​:
$OUTER​::OUTER​::OUTER​::OUTER​::True

Result​:
ctxlexpad needs an MVMContext
in block <unit> at -e line 1

The problem still existed in CALLER​::, CALLERS​::, and SETTING​::

Fixed in rakudo/rakudo@a82e0e7da5
Tests for everything in Raku/roast@7f55679952

@p6rt p6rt closed this as completed Dec 12, 2017
@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

@zoffixznet - 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