-
Notifications
You must be signed in to change notification settings - Fork 18
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
load-yaml not threadsafe #19
Comments
After a look through the module, it's not immediately obvious to me that it's doing anything wrong; it may be a compilation bug with code blocks inside of a |
My installed perl6 is somewhat old (2017.08-79-g4b02b8aad), I can't reproduce it there. This may be a regression. |
Is this still an issue? |
The Grammar reenters the Grammar engine at some places, I would guess that to be the root of the issue. |
I think it may be a problem with |
Behavior recreated with current(ish) Rakudo; line numbers have changed though (and again, no errors without race): $ perl6 -v $ perl6 -e 'use YAMLish; my $yaml = "foo:\n -bar: 42"; race for ^1000 { load-yaml $yaml }' Died at: |
Came here to report this. Can confirm this is still an issue. ❯❯❯ rakudo --version |
Unless @jnthn has a better idea, I guess I'll do that |
I am still hitting this with Rakudo 2022.07. |
@lizmat Given this is actually a compile time bug of code blocks in |
We've had a test or two that occasionally fails in the
cro
distribution's test suite. Today I finally got around to hunting it down, and it boiled down to theload-yaml
sometimes blowing up if called from two threads at the same time. Thankfully, it's easy to reproduce reliably with a one-liner that users this module (note the second example that crashes addsrace
):The text was updated successfully, but these errors were encountered: