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 pitrou
Recipients asvetlov, pitrou, tim.peters
Date 2017-09-19.11:33:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Attaching reproducer.  During interpreter shutdown, threading.main_thread() gets marked "stopped" (while it's obviously still running), while threading.current_thread() returns a DummyThread instance with the same ident as the main thread.

$ ./python 
-- before shutdown --
GC in thread <_MainThread(MainThread, started 140359122872064)>
main thread is <_MainThread(MainThread, started 140359122872064)>
-- during shutdown --
GC in thread <_DummyThread(Dummy-1, started daemon 140359122872064)>
main thread is <_MainThread(MainThread, stopped 140359122872064)>
Date User Action Args
2017-09-19 11:33:54pitrousetrecipients: + pitrou, tim.peters, asvetlov
2017-09-19 11:33:54pitrousetmessageid: <>
2017-09-19 11:33:54pitroulinkissue31516 messages
2017-09-19 11:33:54pitroucreate