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

Serialization error with INIT'd pointy block. #53

Closed
coke opened this issue Sep 16, 2012 · 2 comments
Closed

Serialization error with INIT'd pointy block. #53

coke opened this issue Sep 16, 2012 · 2 comments

Comments

@coke
Copy link
Contributor

coke commented Sep 16, 2012

$ cat pointy.pm
INIT {

GLOBAL::foo := -> { say(3) };

}
$ cat main.pm
use pointy;

$ nqp --target=pir pointy.pm > pointy.pir
$ nqp --target=pir main.pm > main.pir
Serialization Error: could not locate static code ref for closure ''
current instr.: 'deserialization_code' pc 40940 (src/stage2/QAST.pir:14242) (src/stage2/QAST.nqp:2183)
called from Sub '' pc 40481 (src/stage2/QAST.pir:14079) (src/stage2/QAST.nqp:2151)
called from Sub 'as_post' pc 40259 (src/stage2/QAST.pir:14003) (src/stage2/QAST.nqp:2139)
called from Sub 'as_post' pc 39956 (src/stage2/QAST.pir:13890) (src/stage2/QAST.nqp:2109)
called from Sub 'post' pc 39564 (src/stage2/QAST.pir:13710) (src/stage2/QAST.nqp:2072)
called from Sub 'post' pc 33144 (src/stage2/gen/NQPHLL.pir:12640) (src/stage2/gen/NQPHLL.pm:1487)
called from Sub '' pc 32411 (src/stage2/gen/NQPHLL.pir:12348) (src/stage2/gen/NQPHLL.pm:1437)
called from Sub 'compile' pc 32320 (src/stage2/gen/NQPHLL.pir:12308) (src/stage2/gen/NQPHLL.pm:1435)
called from Sub 'eval' pc 29254 (src/stage2/gen/NQPHLL.pir:11063) (src/stage2/gen/NQPHLL.pm:1206)
called from Sub 'evalfiles' pc 31784 (src/stage2/gen/NQPHLL.pir:12094) (src/stage2/gen/NQPHLL.pm:1419)
called from Sub 'command_eval' pc 30738 (src/stage2/gen/NQPHLL.pir:11686) (src/stage2/gen/NQPHLL.pm:1354)
called from Sub 'command_line' pc 30040 (src/stage2/gen/NQPHLL.pir:11425) (src/stage2/gen/NQPHLL.pm:1304)
called from Sub 'MAIN' pc 699 (src/stage2/gen/NQP.pir:227) (src/stage2/gen/NQP.pm:3090)
called from Sub '' pc 444 (src/stage2/gen/NQP.pir:155) (src/stage2/gen/NQP.pm:1479)

@arnsholt
Copy link
Contributor

arnsholt commented Oct 6, 2013

This still happens on latest NQP.

@pmurias
Copy link
Contributor

pmurias commented Jul 24, 2016

wontfix until Parrot resurfaces

@pmurias pmurias closed this as completed Jul 24, 2016
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

3 participants