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

.tail with large negative arguments (say (4,5,6).tail(-9999999999999999999)) #6606

Closed
p6rt opened this issue Oct 14, 2017 · 3 comments
Closed
Labels
9999 regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented Oct 14, 2017

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

Searchable as RT132288$

@p6rt
Copy link
Author

p6rt commented Oct 14, 2017

From @AlexDaniel

Code​:
say (4,5,6).tail(-9999999999999999999)

¦«2015.12»​:
()

¦«2016.06»​:
()

¦«2016.12»​:
MoarVM panic​: Memory allocation failed; could not allocate 12233720368547758088 bytes «exit code = 1»

¦«2017.06»​:
Cannot unbox 64 bit wide bigint into native integer
  in block <unit> at /home/bisectable/git/whateverable/data/regressionable/15219088/snippet line 1
«exit code = 1»

¦«f72be0f130cf»​:
Cannot unbox 64 bit wide bigint into native integer
  in block <unit> at /home/bisectable/git/whateverable/data/regressionable/15219088/snippet line 1
«exit code = 1»

Possible IRC discussion​: https://irclog.perlgeek.de/perl6-dev/2017-09-26#i_15219088

Output on all releases​: https://gist.github.com/e2dcff80e1517153e8a6b8b401c9da46

No useful output from Bisectable.

I think that the behavior on 2015.12 is right. It should not throw an exception just because your negative number is slightly larger. So the right output would be “()” no matter how large or small your negative value is.

@p6rt
Copy link
Author

p6rt commented Oct 15, 2017

From @zoffixznet

lizmat++ fixed in rakudo/rakudo@43e7b893b1
Tests​: Raku/roast@76ed46049a

@p6rt p6rt closed this as completed Oct 15, 2017
@p6rt
Copy link
Author

p6rt commented Oct 15, 2017

@zoffixznet - Status changed from 'new' to 'resolved'

@p6rt p6rt added 9999 regression Issue did not exist previously labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9999 regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

1 participant