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
sprintf() not threadsafe/reentrant if the format tokens use explicit indices #5261
Comments
From @smlsThe following works fine: say sprintf '%1$s %2$s', 5, 42; But the following fails: await do for ^100 { ## Camelia-friendly version: It prints a few successful iterations, but at some point dies with «Your printf-style directives specify 0 arguments, but 2 arguments were supplied». The error only occurs if the format directives specify explicit argument indices. If the '%1$s %2$s' format is replaced with '%s %s' in the example above, it completes without error. |
From @zoffixznetStill present in 959cd3 <Zoffix> m: for (^100).race(batch=>1) { sprintf '%1$s %2$s', 5, 42 } |
From @smlsStill present in Rakudo version 2017.05-272-gfa7aa1c36 built on MoarVM version 2017.05-25-g62bc54e9 |
From @dogbert17On Sun, 28 May 2017 02:34:13 -0700, smls75@gmail.com wrote:
Fixed, probably by one or more of the following commits: |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#127974 (status was 'open')
Searchable as RT127974$
The text was updated successfully, but these errors were encountered: