Skip Menu |
Report information
Id: 65396
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: jnthn [at] jnthn.net
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: GC issue in range/postcircumfix:<[ ]>
Date: Tue, 05 May 2009 13:39:59 +0200
To: rakudobug [...] perl.org
From: Jonathan Worthington <jnthn [...] jnthn.net>
Hi, Just been looking at the slice.t failure and tracked it down a bit to a smaller example. If you run the test under -G it fails in a very different way. While this one that follows doesn't segfault without -G (in fact it runs just fine), under -G it fails just like slice.t under -G. ..\..\parrot perl6.pbc -e " my @array = (3,7,9,11); say @array[0..1]" 37 ..\..\parrot -G perl6.pbc -e " my @array = (3,7,9,11); say @array[0..1]" called from Sub 'parrot;Int;succ' pc 5519 (src\classes\Int.pir:83) called from Sub 'parrot;Perl6Object;' pc 1272 (src\classes\Object.pir:714) called from Sub 'parrot;Int;succ' pc 5519 (src\classes\Int.pir:83) called from Sub 'parrot;Perl6Object;' pc 1272 (src\classes\Object.pir:714) { repeated many times } called from Sub 'parrot;Int;succ' pc 5519 (src\classes\Int.pir:83) called from Sub 'parrot;Perl6Object;' pc 1272 (src\classes\Object.pir:714) called from Sub 'postfix:++' pc 21516 (src\builtins\op.pir:39) called from Sub 'parrot;Range;shift' pc 9493 (src\classes\Range.pir:107) called from Sub 'parrot;Range;' pc 9364 (src\classes\Range.pir:47) called from Sub 'parrot;List;!flatten' pc 6770 (src\classes\List.pir:228) called from Sub 'postcircumfix:[ ]' pc 4416 (src\classes\Positional.pir:179) called from Sub '_block21' pc 852 (EVAL_21:268) called from Sub '_block14' pc 106 (EVAL_21:65) called from Sub '!UNIT_START' pc 18218 (src\builtins\guts.pir:386) called from Sub 'parrot;PCT;HLLCompiler;eval' pc 949 (src\PCT\HLLCompiler.pir:530) called from Sub 'parrot;PCT;HLLCompiler;evalfiles' pc 1274 (src\PCT\HLLCompiler.pir:691) called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1469 (src\PCT\HLLCompiler.pir:792) called from Sub 'parrot;Perl6;Compiler;main' pc 243078 (src/gen_actions.pir:23278) I've not got any good guesses just yet as to what on earth is going on here; anyone else have any ideas? I reckon if we fix this, the segfault at the exit of slice.t will go away, anyways...it almost seems we are succeeding because of a GC issue, but in a longer program like the test script that catches up with us sometime close to the end. Thanks, Jonathan
Download (untitled) / with headers
text/plain 1.6k
On Tue May 05 04:40:41 2009, jnthn@jnthn.net wrote: Show quoted text
> ..\..\parrot -G perl6.pbc -e " my @array = (3,7,9,11); say @array[0..1]" > called from Sub 'parrot;Int;succ' pc 5519 (src\classes\Int.pir:83) > called from Sub 'parrot;Perl6Object;' pc 1272 (src\classes\Object.pir:714) > called from Sub 'parrot;Int;succ' pc 5519 (src\classes\Int.pir:83) > called from Sub 'parrot;Perl6Object;' pc 1272 (src\classes\Object.pir:714) > { repeated many times } > called from Sub 'parrot;Int;succ' pc 5519 (src\classes\Int.pir:83) > called from Sub 'parrot;Perl6Object;' pc 1272 (src\classes\Object.pir:714) > called from Sub 'postfix:++' pc 21516 (src\builtins\op.pir:39) > called from Sub 'parrot;Range;shift' pc 9493 (src\classes\Range.pir:107) > called from Sub 'parrot;Range;' pc 9364 (src\classes\Range.pir:47) > called from Sub 'parrot;List;!flatten' pc 6770 (src\classes\List.pir:228) > called from Sub 'postcircumfix:[ ]' pc 4416
(src\classes\Positional.pir:179) Show quoted text
> called from Sub '_block21' pc 852 (EVAL_21:268) > called from Sub '_block14' pc 106 (EVAL_21:65) > called from Sub '!UNIT_START' pc 18218 (src\builtins\guts.pir:386) > called from Sub 'parrot;PCT;HLLCompiler;eval' pc 949 > (src\PCT\HLLCompiler.pir:530) > called from Sub 'parrot;PCT;HLLCompiler;evalfiles' pc 1274 > (src\PCT\HLLCompiler.pir:691) > called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1469 > (src\PCT\HLLCompiler.pir:792) > called from Sub 'parrot;Perl6;Compiler;main' pc 243078 > (src/gen_actions.pir:23278)
This seems to work now: $ ./parrot_install/bin/parrot -G perl6.pbc -e " my @array = (3,7,9,11); say @array[0..1]" 37 I don't see any problem with slice.t either. Can this ticket be resolved?
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 1.7k
On Sun Oct 11 06:45:51 2009, KyleHa wrote: Show quoted text
> On Tue May 05 04:40:41 2009, jnthn@jnthn.net wrote: >
> > ..\..\parrot -G perl6.pbc -e " my @array = (3,7,9,11); say @array[0..1]" > > called from Sub 'parrot;Int;succ' pc 5519 (src\classes\Int.pir:83) > > called from Sub 'parrot;Perl6Object;' pc 1272 (src\classes\Object.pir:714) > > called from Sub 'parrot;Int;succ' pc 5519 (src\classes\Int.pir:83) > > called from Sub 'parrot;Perl6Object;' pc 1272 (src\classes\Object.pir:714) > > { repeated many times } > > called from Sub 'parrot;Int;succ' pc 5519 (src\classes\Int.pir:83) > > called from Sub 'parrot;Perl6Object;' pc 1272 (src\classes\Object.pir:714) > > called from Sub 'postfix:++' pc 21516 (src\builtins\op.pir:39) > > called from Sub 'parrot;Range;shift' pc 9493 (src\classes\Range.pir:107) > > called from Sub 'parrot;Range;' pc 9364 (src\classes\Range.pir:47) > > called from Sub 'parrot;List;!flatten' pc 6770 (src\classes\List.pir:228) > > called from Sub 'postcircumfix:[ ]' pc 4416
> (src\classes\Positional.pir:179)
> > called from Sub '_block21' pc 852 (EVAL_21:268) > > called from Sub '_block14' pc 106 (EVAL_21:65) > > called from Sub '!UNIT_START' pc 18218 (src\builtins\guts.pir:386) > > called from Sub 'parrot;PCT;HLLCompiler;eval' pc 949 > > (src\PCT\HLLCompiler.pir:530) > > called from Sub 'parrot;PCT;HLLCompiler;evalfiles' pc 1274 > > (src\PCT\HLLCompiler.pir:691) > > called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1469 > > (src\PCT\HLLCompiler.pir:792) > > called from Sub 'parrot;Perl6;Compiler;main' pc 243078 > > (src/gen_actions.pir:23278)
> > This seems to work now: > > $ ./parrot_install/bin/parrot -G perl6.pbc -e " my @array = (3,7,9,11); > say @array[0..1]" > 37 > > I don't see any problem with slice.t either. > > Can this ticket be resolved?
Looks like. -- Will "Coke" Coleda


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org