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

Internal error caused by overflow when using too many digits after colon in colonpair in Rakudo #3113

Closed
p6rt opened this issue Apr 24, 2013 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 24, 2013

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

Searchable as RT117739$

@p6rt
Copy link
Author

p6rt commented Apr 24, 2013

From @masak

<diakopter> r​: say :99999999999999999999999('dd')
<camelia> rakudo ef73eb​: OUTPUT«Cannot convert string to number​: radix
(in decimal) expected after '​:' in '​:⏏-2147483648<dd>' (indicated by
⏏)␤ in method sink at src/gen/CORE.setting​:10837␤ in method BUILDALL
at src/gen/CORE.setting​:801␤ in method bless at
src/gen/CORE.setting​:743␤ in method …
<diakopter> 'nother genuine bug
<diakopter> where's masakbot when you need him
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Sep 1, 2016

From @MasterDuke17

On Wed Apr 24 03​:36​:59 2013, masak wrote​:

<diakopter> r​: say :99999999999999999999999('dd')
<camelia> rakudo ef73eb​: OUTPUT«Cannot convert string to number​: radix
(in decimal) expected after '​:' in '​:⏏-2147483648<dd>' (indicated by
⏏)␤ in method sink at src/gen/CORE.setting​:10837␤ in method BUILDALL
at src/gen/CORE.setting​:801␤ in method bless at
src/gen/CORE.setting​:743␤ in method …
<diakopter> 'nother genuine bug
<diakopter> where's masakbot when you need him
* masak submits rakudobug

perl6 -e "say class { has $.dd }.new(​:99999999999999999999999dd)"
<anon|67946368>.new(dd => 200376420520689664)

perl6 -e "say class { has $.dd }.new(​:9999999999999999999999dd)"
<anon|65816448>.new(dd => 1864712049423024128)

perl6 -e "say class { has $.dd }.new(​:999999999999999999999dd)"
<anon|60090240>.new(dd => 3875820019684212736)

perl6 -e "say class { has $.dd }.new(​:99999999999999999999dd)"
<anon|62506880>.new(dd => 7766279631452241920)

perl6 -e "say class { has $.dd }.new(​:9999999999999999999dd)"
<anon|74078064>.new(dd => -8446744073709551616)

perl6 -e "say class { has $.dd }.new(​:999999999999999999dd)"
<anon|61781872>.new(dd => 1000000000000000000)

perl6 -e "say class { has $.dd }.new(​:99999999999999999dd)"
<anon|66586480>.new(dd => 100000000000000000)

perl6 -e "say class { has $.dd }.new(​:9999999999999999dd)"
<anon|80590704>.new(dd => 10000000000000000)

perl6 -e "say class { has $.dd }.new(​:999999999999999dd)"
<anon|52934496>.new(dd => 999999999999999)

perl6 --version
This is Rakudo version 2016.08.1-59-gec9e814 built on MoarVM version 2016.08-23-gfa9528b
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Sep 1, 2016

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

@p6rt
Copy link
Author

p6rt commented Sep 1, 2016

From @MasterDuke17

On Wed Aug 31 19​:49​:01 2016, ddgreen@​gmail.com wrote​:

On Wed Apr 24 03​:36​:59 2013, masak wrote​:

<diakopter> r​: say :99999999999999999999999('dd')
<camelia> rakudo ef73eb​: OUTPUT«Cannot convert string to number​:
radix
(in decimal) expected after '​:' in '​:⏏-2147483648<dd>' (indicated by
⏏)␤ in method sink at src/gen/CORE.setting​:10837␤ in method
BUILDALL
at src/gen/CORE.setting​:801␤ in method bless at
src/gen/CORE.setting​:743␤ in method …
<diakopter> 'nother genuine bug
<diakopter> where's masakbot when you need him
* masak submits rakudobug

perl6 -e "say class { has $.dd }.new(​:99999999999999999999999dd)"
<anon|67946368>.new(dd => 200376420520689664)

perl6 -e "say class { has $.dd }.new(​:9999999999999999999999dd)"
<anon|65816448>.new(dd => 1864712049423024128)

perl6 -e "say class { has $.dd }.new(​:999999999999999999999dd)"
<anon|60090240>.new(dd => 3875820019684212736)

perl6 -e "say class { has $.dd }.new(​:99999999999999999999dd)"
<anon|62506880>.new(dd => 7766279631452241920)

perl6 -e "say class { has $.dd }.new(​:9999999999999999999dd)"
<anon|74078064>.new(dd => -8446744073709551616)

perl6 -e "say class { has $.dd }.new(​:999999999999999999dd)"
<anon|61781872>.new(dd => 1000000000000000000)

perl6 -e "say class { has $.dd }.new(​:99999999999999999dd)"
<anon|66586480>.new(dd => 100000000000000000)

perl6 -e "say class { has $.dd }.new(​:9999999999999999dd)"
<anon|80590704>.new(dd => 10000000000000000)

perl6 -e "say class { has $.dd }.new(​:999999999999999dd)"
<anon|52934496>.new(dd => 999999999999999)

perl6 --version
This is Rakudo version 2016.08.1-59-gec9e814 built on MoarVM version
2016.08-23-gfa9528b
implementing Perl 6.c.

Fixed in Rakudo PR #​855 (rakudo/rakudo#855).

Tested in Roast PR #​149 (Raku/roast#149).

@p6rt
Copy link
Author

p6rt commented Sep 1, 2016

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

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