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

GC issue in range/postcircumfix:<[ ]> #975

Closed
p6rt opened this issue May 5, 2009 · 5 comments
Closed

GC issue in range/postcircumfix:<[ ]> #975

p6rt opened this issue May 5, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented May 5, 2009

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

Searchable as RT65396$

@p6rt
Copy link
Author

p6rt commented May 5, 2009

From @jnthn

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

@p6rt
Copy link
Author

p6rt commented Oct 11, 2009

From @kyleha

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?

@p6rt
Copy link
Author

p6rt commented Oct 11, 2009

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

@p6rt
Copy link
Author

p6rt commented Sep 20, 2011

From @coke

On Sun Oct 11 06​:45​:51 2009, KyleHa wrote​:

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

@p6rt
Copy link
Author

p6rt commented Sep 20, 2011

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

@p6rt p6rt closed this as completed Sep 20, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant