# New Ticket Created by  curtis_ovid_...@yahoo.com 
# Please include the string:  [perl #127208]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127208 >


This code sometimes segfaults, sometimes tells me it's a malloc error:
    my @primes = grep { .is-prime }, 1 .. *; my @p = gather for 4000, 5, 100, 
2000 -> $n { take start { @primes[$n] }; }; .say for await @p; Yes, I know the 
code is stupid (since one promise might be trying to access data that's not yet 
been calculated), but I would hope for something other than random error 
messages :)
Best,Ovid-- IT consulting, training, specializing in Perl, databases, and agile 
developmenthttp://www.allaroundtheworld.fr/. 
Buy my book! - http://bit.ly/beginning_perl

Reply via email to