-
Notifications
You must be signed in to change notification settings - Fork 182
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
The regex package isn't thread safe (tracking issue) #7026
Comments
I've forked the In the meantime, in PR #7074, I've proposed changing requirements.txt to use the Charcoal-SE version of the package. |
I've taken a deeper look at the I thought I had accounted for that possibility in the changes I made, which are mentioned above, by always using |
This issue has been closed because it has had no recent activity. If this is still important, please add another comment and find someone with write permissions to reopen the issue. Thank you for your contributions. |
I'm not certain at this point that there's actually a thread safety issue within the C code for the What I have seen is that there are substantial errors when running the CI test using a large number of different processes. Those errors go away if workarounds are in place to be quite careful not to use the Basically, I still need to perform more investigation. |
would it help to use tools like valgrind/afl/asan, or are you already using some of these?, (maybe perhaps you haven't taken a look at this in about a year or so :) |
I ended up taking a look at the code for the
regex
package. There are some issues in it which make it not thread safe. I've created the issue Thread safety: need lock for both read and write (_cache and other global variables) in that repository. This issue is for tracking it here.The text was updated successfully, but these errors were encountered: