This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, grahamd, kristjan.jonsson, neologix, pitrou, python-dev, tim.peters, vstinner
Date 2013-12-13.02:35:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386902129.56.0.139496860392.issue19787@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-12-13 02:35:29vstinnersetrecipients: + vstinner, tim.peters, pitrou, kristjan.jonsson, grahamd, Arfrever, neologix, python-dev
2013-12-13 02:35:29vstinnersetmessageid: <1386902129.56.0.139496860392.issue19787@psf.upfronthosting.co.za>
2013-12-13 02:35:29vstinnerlinkissue19787 messages
2013-12-13 02:35:28vstinnercreate