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

Concatenating string and buf8 infiniloops #3486

Closed
p6rt opened this issue Aug 23, 2014 · 5 comments
Closed

Concatenating string and buf8 infiniloops #3486

p6rt opened this issue Aug 23, 2014 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 23, 2014

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

Searchable as RT122600$

@p6rt
Copy link
Author

p6rt commented Aug 23, 2014

From @tadzik

Tested on Rakudo 2014.08.

  tadzik | r​: my $a = buf8.new([]); say "Foo​: $a" # this is amusing
  +camelia | rakudo-jvm c793d8​: OUTPUT«java.lang.StackOverflowErrorâ�¤â�¤Â»
  +camelia | ..rakudo-parrot c793d8​: OUTPUT«maximum recursion depth
exceeded�current
  | instr.​: 'print_exception' pc 142392
(src/gen/p-CORE.setting.pir​:61408)
  | (gen/parrot/CORE.setting​:11718)â�¤called from Sub 'Stringy'
pc 233104
  | (src/gen/p-CORE.setting.pir​:96775)
(gen/parrot/CORE.setting​:1038)â�¤caâ�¦Â»
  +camelia | ..rakudo-moar c793d8​: OUTPUT«(signal )»
  masak | o.O
  masak | tadzik​: please submit that.
  tadzik | I think concat is the problem
  tadzik | r​: my $a = buf8.new([]); say $a
  +camelia | rakudo-{parrot,jvm,moar} c793d8​: OUTPUT«Buf​:0x<>â�¤Â»
  tadzik | r​: my $a = buf8.new([]); say "" ~ $a
  tadzik | . o O ( BOOM )
  +camelia | rakudo-jvm c793d8​: OUTPUT«java.lang.RuntimeException​:
  | java.lang.StackOverflowErrorâ�¤â�¤Â»
  +camelia | ..rakudo-parrot c793d8​: OUTPUT«maximum recursion depth
exceeded�current
  | instr.​: 'print_exception' pc 142392
(src/gen/p-CORE.setting.pir​:61408)
  | (gen/parrot/CORE.setting​:11718)â�¤called from Sub 'Stringy'
pc 233104
  | (src/gen/p-CORE.setting.pir​:96775)
(gen/parrot/CORE.setting​:1038)â�¤caâ�¦Â»
  +camelia | ..rakudo-moar c793d8​: OUTPUT«(signal )»
  tadzik | r​: my $a = buf8.new([]); say ~$a
  +camelia | rakudo-{parrot,jvm,moar} c793d8​: OUTPUT«Buf​:0x<>â�¤Â»
  masak | some dispatch somewhere self-calls and goes into an
infinite loop.
  tadzik | it would seem so, yes

@p6rt
Copy link
Author

p6rt commented Aug 23, 2014

From @timo

On 23/08/14 13​:44, Tadeusz SoÅ�nierz (via RT) wrote​:

# New Ticket Created by Tadeusz So�nierz
# Please include the string​: [perl #​122600]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=122600 >

Tested on Rakudo 2014.08.

 tadzik | r&#8203;: my $a = buf8\.new\(\[\]\); say "Foo&#8203;: $a" \# this is amusing

+camelia | rakudo-jvm c793d8​: OUTPUT«java.lang.StackOverflowErrorâ�¤â�¤Â»
+camelia | ..rakudo-parrot c793d8​: OUTPUT«maximum recursion depth
exceeded�current
| instr.​: 'print_exception' pc 142392
(src/gen/p-CORE.setting.pir​:61408)
| (gen/parrot/CORE.setting​:11718)â�¤called from Sub 'Stringy'
pc 233104
| (src/gen/p-CORE.setting.pir​:96775)
(gen/parrot/CORE.setting​:1038)â�¤caâ�¦Â»
+camelia | ..rakudo-moar c793d8​: OUTPUT«(signal )»
masak | o.O
masak | tadzik​: please submit that.
tadzik | I think concat is the problem
tadzik | r​: my $a = buf8.new([]); say $a
+camelia | rakudo-{parrot,jvm,moar} c793d8​: OUTPUT«Buf​:0x<>â�¤Â»
tadzik | r​: my $a = buf8.new([]); say "" ~ $a
tadzik | . o O ( BOOM )
+camelia | rakudo-jvm c793d8​: OUTPUT«java.lang.RuntimeException​:
| java.lang.StackOverflowError��»
+camelia | ..rakudo-parrot c793d8​: OUTPUT«maximum recursion depth
exceeded�current
| instr.​: 'print_exception' pc 142392
(src/gen/p-CORE.setting.pir​:61408)
| (gen/parrot/CORE.setting​:11718)â�¤called from Sub 'Stringy'
pc 233104
| (src/gen/p-CORE.setting.pir​:96775)
(gen/parrot/CORE.setting​:1038)â�¤caâ�¦Â»
+camelia | ..rakudo-moar c793d8​: OUTPUT«(signal )»
tadzik | r​: my $a = buf8.new([]); say ~$a
+camelia | rakudo-{parrot,jvm,moar} c793d8​: OUTPUT«Buf​:0x<>â�¤Â»
masak | some dispatch somewhere self-calls and goes into an
infinite loop.
tadzik | it would seem so, yes
Aye, Buf.Stringy will return self.

This has annoyed me at least once before.

@p6rt
Copy link
Author

p6rt commented Aug 23, 2014

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

@p6rt
Copy link
Author

p6rt commented Nov 8, 2014

From @FROGGS

Patch​: rakudo/rakudo@2121b16c03
Tests​: Raku/roast@fcf5aff5c9

@p6rt p6rt closed this as completed Nov 8, 2014
@p6rt
Copy link
Author

p6rt commented Nov 8, 2014

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

@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