Jonathan Worthington wrote:
Hi,
I seem to be touching a bug related to writing compiled code.
pir_comp = compreg "PIR"
pbc_out = pir_comp(gen_pir)
fh = open output
print fh, pbc_out
close fh
On the print line, I get this error:-
directory_pack segment 'BYTECODE_EVAL_1' used size 158 but reported 160
It could be related to classes/eval.pmc:218 ff, but I can't reproduce
it. There is a test in t/pmc/eval.t 'eval.freeze', which is very
similar. I tried to insert more code but this didn't show the problem.
Please submit a full example showing the bug or better check it in as a
todo test.
This used to work - I sync'd up my Parrot tree from one that's at least
a week old and it was broken, however. So I guess the outcome or a
recent change.
It may highly depend on the compiled code and other stuff.
Fixes very welcome,
Jonathan
leo