[issue7544] Fatal error on thread creation in low memory condition
report at bugs.python.org
Mon Jan 11 02:41:42 CET 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> I'm not sure about autoTLSkey value (...)
After some tests (printf fun), it looks ok.
There is another problem in _testcapi: test_thread_state() calls directly PyThread_start_new_thread() and the thread function calls PyGILState_Ensure(). PyGILState_Ensure() would then require to create a new thread state (call PyThreadState_New()) because it was not done by PyThread_start_new_thread(). On low memory condition, we hit the same bug here.
Only thread and _testcapi modules calls directly PyThread_start_new_thread(). _*test*capi is reserved to tests, so I consider that we don't care about bugs under low memory condition in this module.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list