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

1..2.PARROT segfaults #2187

Closed
p6rt opened this issue Sep 24, 2010 · 5 comments
Closed

1..2.PARROT segfaults #2187

p6rt opened this issue Sep 24, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Sep 24, 2010

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

Searchable as RT78034$

@p6rt
Copy link
Author

p6rt commented Sep 24, 2010

From pat@patspam.com

The following code, entered into the Rakudo REPL, causes a ~30 second delay,
followed by a Segmentation fault​:

$ perl6
1..2.PARROT
Segmentation fault

The following variations are ok however​:
$ perl6

2.PARROT
Int
(1..2).PARROT
Range
1..Int

The following returns almost immediately without any output​:
$ perl6 -e '1..2.PARROT'

Whereas the following causes a stream of semi-repeating numbers to spew onto
the screen, for about 30 seconds, until a Segfault occurs​:
$ perl6 -e 'say 1..2.PARROT'

The bug seems to be at least partially reproducible via p6eval on #perl6​:
(15​:55​:18) tadzik​: star​: say 1..2.PARROT
(15​:55​:30) p6eval​: star 2010.07​:
(15​:55​:31) p6eval​:
..OUTPUT«(timeout)101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130…

My system information​:

OS​: Ubuntu 10.04

$ uname -a
Linux pattop 2.6.32-24-generic #​43-Ubuntu SMP Thu Sep 16 14​:17​:33 UTC 2010
i686 GNU/Linux

$ git rev-parse HEAD
9fd5eaa6c8aa5f0cf22247e0def0929715e322ed # e.g. Star+0

$ perl6 --verison
This is Rakudo Perl 6, version 2010.07-47-g9fd5eaa built on parrot 2.6.0
r48152

@p6rt
Copy link
Author

p6rt commented Sep 25, 2010

@jkeenan - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 25, 2010

From @jkeenan

On Fri Sep 24 12​:59​:41 2010, pat@​patspam.com wrote​:

The following code, entered into the Rakudo REPL, causes a ~30 second
delay,
followed by a Segmentation fault​:

$ perl6
1..2.PARROT
Segmentation fault

Could not reproduce.

The following variations are ok however​:
$ perl6

2.PARROT
Int
(1..2).PARROT
Range
1..Int

Got same results.

The following returns almost immediately without any output​:
$ perl6 -e '1..2.PARROT'

Got same results.

Whereas the following causes a stream of semi-repeating numbers to
spew onto
the screen, for about 30 seconds, until a Segfault occurs​:
$ perl6 -e 'say 1..2.PARROT'

I got, in effect, a newline -- but no segfault.

$ uname -a
Linux li11-226 2.6.18.8-linode22 #​1 SMP Tue Nov 10 16​:12​:12 UTC 2009
i686 GNU/Linux

Built from the August 2010 Rakudo Star distribution

$ perl6 --version

This is Rakudo Perl 6, version 2010.08 built on parrot 2.7.0

@p6rt
Copy link
Author

p6rt commented Sep 23, 2011

From @coke

On Fri Sep 24 12​:59​:41 2010, pat@​patspam.com wrote​:

The following code, entered into the Rakudo REPL, causes a ~30 second
delay,
followed by a Segmentation fault​:

$ perl6
1..2.PARROT
Segmentation fault

The following variations are ok however​:
$ perl6

2.PARROT
Int
(1..2).PARROT
Range
1..Int

The following returns almost immediately without any output​:
$ perl6 -e '1..2.PARROT'

Whereas the following causes a stream of semi-repeating numbers to
spew onto
the screen, for about 30 seconds, until a Segfault occurs​:
$ perl6 -e 'say 1..2.PARROT'

The bug seems to be at least partially reproducible via p6eval on
#perl6​:
(15​:55​:18) tadzik​: star​: say 1..2.PARROT
(15​:55​:30) p6eval​: star 2010.07​:
(15​:55​:31) p6eval​:

..OUTPUT«(timeout)101112131415161718192021222324252627282930313233343536
373839404142434445464748495051525354555657585960616263646566676869707172
737475767778798081828384858687888990919293949596979899100101102103104105
106107108109110111112113114115116117118119120121122123124125126127128129
130…

My system information​:

OS​: Ubuntu 10.04

$ uname -a
Linux pattop 2.6.32-24-generic #​43-Ubuntu SMP Thu Sep 16 14​:17​:33 UTC
2010
i686 GNU/Linux

$ git rev-parse HEAD
9fd5eaa6c8aa5f0cf22247e0def0929715e322ed # e.g. Star+0

$ perl6 --verison
This is Rakudo Perl 6, version 2010.07-47-g9fd5eaa built on parrot
2.6.0
r48152

With the advent of 6model, .PARROT is now gone, so now all you'll get
is​:

Method 'PARROT' not found for invocant

Regards.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Sep 23, 2011

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

@p6rt p6rt closed this as completed Sep 23, 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