On Wed, Aug 31, 2016 at 02:58:50AM -0700, jn...@jnthn.net via RT wrote: > On Sun Aug 28 20:09:29 2016, c...@zoffix.com wrote: > > On occasion, I get this error when trying to run the bellow program on > > a 32-core box: > > > > $ time RAKUDO_MAX_THREADS=40 perl6 foo.p6 > > Cannot invoke this object (REPR: Null; VMNull) > > in block <unit> at foo.p6 line 9
> I've fiddled with it a bit, but had trouble getting this to blow on my > much-less-core-endowed box. Guess I can leave it running in a loop while I > take lunch or something... :-) "my" machine has almost as many cores. I can get it to bomb at times. (ASAN makes no comment) > Any chance you could: > > 1) Run it with `--ll-exception` > 2) Stick a CATCH block in the sub that does `.backtrace.full.say` or similar, > to see if we get any more details output there You mean like this? sub what-is { CATCH { .backtrace.full.say } return $^num.is-prime ?? "$num is prime" !! "$num is not prime"; } my @results; for 3¹²³⁴⁵ … 3¹²³⁴⁵+127 -> $n { @results.push: start what-is $n; } print await @results; I got this: Cannot invoke this object (REPR: Null; VMNull) in block <unit> at 129120.pl line 9 Line 9 is `print await @results;` What do I need to do better, to get actual useful details? Nicholas Clark