Author pitrou
Recipients asvetlov, pitrou, tim.peters
Date 2017-09-19.11:33:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505820834.6.0.00526419251789.issue31516@psf.upfronthosting.co.za>
In-reply-to
Content
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 mainthread.py 
-- 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)>
History
Date User Action Args
2017-09-19 11:33:54pitrousetrecipients: + pitrou, tim.peters, asvetlov
2017-09-19 11:33:54pitrousetmessageid: <1505820834.6.0.00526419251789.issue31516@psf.upfronthosting.co.za>
2017-09-19 11:33:54pitroulinkissue31516 messages
2017-09-19 11:33:54pitroucreate