The test test_4_daemon_threads() does crash randomly on the buildbot "x86 Windows Server 2003 [SB] 3.x". It may be an old bug which was not seen before because it was hidden by another bug (#19424 which is now fixed).
Charles-François Natali repeated that daemons threads can crash randomly at exit if they are waiting for a blocking call with the GIL released, and still use memory that is being freed by the main thread at exit.
http://buildbot.python.org/all/builders/x86%20Windows%20Server%202003%20%5BSB%5D%203.x/builds/2166/steps/test/logs/stdio
======================================================================
FAIL: test_4_daemon_threads (test.test_threading.ThreadJoinOnShutdown)
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\Data\buildslave\cpython\3.x.snakebite-win2k3r2sp2-x86\build\lib\test\test_threading.py", line 773, in test_4_daemon_threads
rc, out, err = assert_python_ok('-c', script)
File "E:\Data\buildslave\cpython\3.x.snakebite-win2k3r2sp2-x86\build\lib\test\script_helper.py", line 69, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "E:\Data\buildslave\cpython\3.x.snakebite-win2k3r2sp2-x86\build\lib\test\script_helper.py", line 55, in _assert_python
"stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))
AssertionError: Process return code is 3221225477, stderr follows:
Related issues:
- #19424: _warnings: patch to avoid conversions from/to UTF-8
- #19442: Python crashes when a warning is emitted during shutdown
- #19466: Clear state of threads earlier in Python shutdown => my changes from this issue have been reverted
|