-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
Intermittent test failure on iOS during test_interpreters
stress test: RuntimeError: Failed to import encodings module
#131485
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-subinterpreters
type-bug
An unexpected behavior, bug, or error
Comments
test_interpreters
stress testtest_interpreters
stress test: RuntimeError: Failed to import encodings module
I'm able to reproduce the issue on Linux with the command
|
Thanks @vstinner - that seems to confirm it's not an iOS error, just something iOS is good at exposing for some reason. |
In which case, I'll close this in favor of #127108, and copy over the useful details. Thanks for letting me know about the other tickets. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-subinterpreters
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
We've seen intermittent failures on the iOS buildbot during the execution of the
test_interpreters
test:The test itself passes seems to pass; the failure that is reported is a change in environment. The test passes on a re-run.
There have been 6 examples of this in the last 2 months:
It has also been observed in 3.13
It's not clear to me if this is an iOS issue (falling apart under the stress), or an issue with the underlying subinterpreter setup that iOS is able to (intermittently) expose. The "Failed to import encodings module" is the bit that gives me pause - There's no diagnostics on why the import failed, but that sort of error would be consistent with a path not being fully configured. It clearly is configured (in the normal case at least), but I'm wondering if having multiple threads start simultaneously could be exposing a leak where one thread thinks something has been configured but another thread is still initialising.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
The text was updated successfully, but these errors were encountered: