-
Notifications
You must be signed in to change notification settings - Fork 82
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
FileIO is not threadsafe #336
Comments
I see the @IanButterworth is this the exact reason that we have |
Yes, the fact that the crash happens during a call to Perhaps this indicates that |
Calls to |
For the record, #339 fixes this for Julia >= 1.3. For old Julia versions, it's still broken. |
Debugging some concurrency issues, I ended up inside the source of
FileIO
and saw that it maintains global state insym2loader
andsym2safer
(and maybe other places) which is not protected by locks.Presumably this can cause problems when these dictionaries are mutated during
load
, etc.I don't have time to make an MWE right now, but I thought I'd leave a note about this nevertheless.
Here's a sample stacktrace from a loop which essentially does the following for a bunch of JPEG files:
The text was updated successfully, but these errors were encountered: