STINNER Victor added the comment:

Oh, my change on PyThread_set_key_value() has an unexpected effect on 
_testcapi.run_in_subinterp(): it now fixes the Python thread state. 
Py_NewInterpreter() creates a second Python thread state for the current 
thread, but PyThread_set_key_value() ignored the second call setting the new 
thread state.

It's a little bit strange that nobody noticed this bug before. It doesn't fix 
issue #10915: test_threading still hangs when tracemalloc is enabled (I 
modified manually test.support.run_in_subinterp() for a manual test).

This issue should now be fixed.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19787>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to