Skip Menu |
Report information
Id: 128357
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: elizabeth <liz [at] dijkmat.nl>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Thu, 9 Jun 2016 23:04:20 +0200
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Subject: Segfault after count-only iterator opt
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 436b
Commit https://github.com/rakudo/rakudo/commit/65e1b54 causes the following code to segfault: my $sum = 10082800;for (4601...4900) -> $term { $sum += $term; my $sq = floor(sqrt($sum)); my $factors = (1..$sq).grep(-> $x { $sum % $x == 0} ).elems * 2; }; say ‘hi’ This seems to be related to the use of nqp::eqaddr instead of =:= in count-only. See discussion starting at http://irclog.perlgeek.de/perl6/2016-06-09#i_12637583
Download (untitled) / with headers
text/plain 208b
A workaround has been added in https://github.com/rakudo/rakudo/commit/41736009bf , so if somebody want to reproduce it you'll have to go back a little bit. The underlying moarvm issue still has to be fixed.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org