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

nqp shell broken. blows up when executing the command at the second prompt #2598

Closed
p6rt opened this issue Dec 30, 2011 · 5 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 30, 2011

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

Searchable as RT107330$

@p6rt
Copy link
Author

p6rt commented Dec 30, 2011

From @cognominal

nqp

say('hi')
say('hi')
hi
say('hi')
say('hi')
Null PMC access in find_method('new')

--
cognominal stef

@p6rt
Copy link
Author

p6rt commented Jan 2, 2012

From @cognominal

The world disappears between the two evaluations! And this is
unrelated to 2012 mayan astrology.

Relevant part of the trace.

5d5f set P2, P1["World"]
P2=PMCNULL P1=Hash=PMC(0x7f926677dc00)  (src/stage2/gen/NQP.pm​:487)
...
5d7c callmethodcc P2, "new"
P2=PMCNULL  (src/stage2/gen/NQP.pm​:487)

More complete trace for the search of NQP​::World

5d55 get_hll_global P28, "GLOBAL"
 P28=PMCNULL  (src/stage2/gen/NQP.pm​:487)
5d58 nqp_get_package_through_who P0, P28, "NQP" P0=PMCNULL
P28=GLOBALish=PMC(0x7f92652d9590)  (src/stage2/gen/NQP.pm​:487)
5d5c get_who P1, P0                                        P1=PMCNULL
P0=NQP=PMC(0x7f926677dca0) (src/stage2/gen/NQP.pm​:487)
5d5f set P2, P1["World"]
P2=PMCNULL P1=Hash=PMC(0x7f926677dc00)  (src/stage2/gen/NQP.pm​:487)
5d63 set P3, P35                                        P3=PMCNULL
P35=String=PMC(0x7f92667e2010 Str​:"67C0187A91F4EFF6565C")
(src/stage2/gen/NQP.pm​:487)
5d66 unless_null P3, 6
P3=String=PMC(0x7f92667e2010 Str​:"67C0187A91F4EFF6565C")
(src/stage2/gen/NQP.pm​:487)
5d6c set P4, P34                                        P4=PMCNULL
P34=PMCNULL (src/stage2/gen/NQP.pm​:487)
5d6f unless_null P4, 6
P4=PMCNULL  (src/stage2/gen/NQP.pm​:487)
5d72 new P4, "Undef"                                        P4=PMCNULL
 (src/stage2/gen/NQP.pm​:487)
5d75 set_args PC54 (5), P2, "handle", P3, "description",
P4 PC54=FixedIntegerArray=PMC(0x7f9263913f80) P2=PMCNULL
P3=String=PMC(0x7f92667e2010 Str​:"67C0187A91F4EFF6565C")
P4=Undef=PMC(0x7f92667b2420) (src/stage2/gen/NQP.pm​:487)
5d7c callmethodcc P2, "new"
P2=PMCNULL  (src/stage2/gen/NQP.pm​:487)
# Back in sub 'nqp;HLL;Compiler;_block1731
Null PMC access in find_method('new')

--
cognominal stef

@p6rt
Copy link
Author

p6rt commented Oct 10, 2012

From @coke

On Fri Dec 30 13​:19​:01 2011, cognominal wrote​:

nqp

say('hi')
say('hi')
hi
say('hi')
say('hi')
Null PMC access in find_method('new')

$ ./nqp --version
This is nqp version 2012.09.1-26-g5238d7b built on parrot 4.8.0 revision RELEASE_4_8_0
$ ./nqp

say("hi");
hi
say("hi");
hi

Fixed.

Future nqp tickets should be logged against https://github.com/perl6/nqp/issues

Regards.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 10, 2012

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

@p6rt
Copy link
Author

p6rt commented Oct 10, 2012

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

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