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
test_threading: ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash with Python 3.8 on AIX #84249
Comments
https://buildbot.python.org/all/#/builders/73/builds/208 1 test altered the execution environment: The bug can be reproduced with: $ ./configure --with-pydebug CC=gcc CFLAGS=-O0
$ make
(...
$ ./python -m test test_threading --fail-env-changed -m test.test_threading.ThreadJoinOnShutdown.test_reinit_tls_after_fork -F -j 20
0:00:00 Run tests in parallel using 20 child processes
0:00:01 [ 1] test_threading passed
0:00:01 [ 2] test_threading passed
(...)
0:00:03 [ 17] test_threading passed
0:00:03 [ 18/1] test_threading failed (env changed)
Warning -- files was modified by test_threading
Before: []
After: ['core']
Kill <TestWorkerProcess #1 running test=test_threading pid=14156142 time=1.6 sec>
(...)
Tests result: ENV CHANGED |
The master branch is also affected. |
Example of crash in master in a child process after os.fork(). The crash occurred in logging._releaseLock() called by logging._after_at_fork_child_reinit_locks(). Old issues about logging + fork
-- (gdb) where (gdb) frame 10 (gdb) frame 14 (gdb) info threads |
I worked around the logging crash. Then I got a second crash in _PyThreadState_DeleteExcept() called in the child process after a fork. PyThreadState_Clear() calls tstate->on_delete() which is release_sentinel() of Modules/_threadmodule.c. Problem: lock objects are left in an inconsistent state after a fork: bpo-6721. This lock object should be replaced with a new lock object, or release_sentinel() should not be called. (gdb) where |
Fixed by a9f9687 |
I don't have access to AIX. Nobody is working on this issue. AIX is not supported by PEP 11. I just close this old issue. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: