-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
gh-140260: Fix data race in _struct module initialization with subinterpreters #140909
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
base: main
Are you sure you want to change the base?
Conversation
ZeroIntensity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test stressing this.
Silence compiler warning about the unused result; the init cannot fail.
Use an exec wrapper for subinterpreter execution and assert None results instead of calling support.run_in_subinterp
|
I think the failing job will be solved by a rebase. |
ZeroIntensity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
It did (now fixed thanks to Victor), but I don't think it broke mobile. Maybe it's sequential tests, or cross-compilation? |
|
Seems like Android and iOS do not support subinterpreters so the test should be skipped on those platforms. |
|
Good catch, I disabled auto-merge for the time being. |
Uh oh!
There was an error while loading. Please reload this page.