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 mhobbs
Recipients mhobbs
Date 2012-04-19.20:49:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This issue is very similar to the issue original reported in issue1722344, except that it occurs in daemon threads. Here's a sample exception:

Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/", line 552, in __bootstrap_inner
  File "/usr/local/lib/python2.7/", line 505, in run
  File "/opt/8b/libr8/eb/util/", line 86, in run
  File "/usr/local/lib/python2.7/", line 168, in get
  File "/usr/local/lib/python2.7/", line 237, in wait
<type 'exceptions.TypeError'>: 'NoneType' object is not callable

Investigating line 237 in shows that RuntimeError must have been set to None. The issue appears to be that Py_Finalize wipes all globals while there are still daemon threads running. Would it be correct to terminate daemon threads prior to wiping the globals, since the threads won't be able to accomplish much anyway?
Date User Action Args
2012-04-19 20:49:29mhobbssetrecipients: + mhobbs
2012-04-19 20:49:29mhobbssetmessageid: <>
2012-04-19 20:49:28mhobbslinkissue14623 messages
2012-04-19 20:49:28mhobbscreate