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
Block.assuming method apparently not reentrant #5264
Comments
From @smlsThe following works fine: for (^100).race(batch=>1) { {1 + $^a}(10) } But the following pretty reliably crashes: for (^100).race(batch=>1) { {1 + $^a}.assuming(10)() } If even crashes when EVAL is used to make sure each thread has a completely different closure: for (^100).race(batch=>1) { EVAL(q[ ({1 + $^a}) ]).assuming(10)() } It doesn't always crash with the same error message. But it always seems to be a variation of one of the following four: P6opaque: no such attribute '$!named' Parameter '$a' requires a type object of type Int, but an object instance was passed. Cannot call postfix:<++>(Int); none of these signatures match: No such symbol 'primers' The code fragment that the last one quotes, is from src/core/Block.pm. This is Rakudo version 2016.04-33-gf05c77b built on MoarVM version 2016.04 implementing Perl 6.c. |
From @jnthnOn Mon Apr 25 06:10:50 2016, smls75@gmail.com wrote:
I believe `assuming` uses `EVAL` under the hood, and that it's `EVAL` having reentrancy issues that is at the heart of it. So adding an extra `EVAL` is only making it worse. (And yes, this is fairly high on my list of stuff to hunt down and fix.) /jnthn |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetStill present on This is Rakudo version 2016.06-154-g55c359e built on MoarVM version 2016.06-9-g8fc21d5 |
Migrated from rt.perl.org#127987 (status was 'open')
Searchable as RT127987$
The text was updated successfully, but these errors were encountered: