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 stestagg
Recipients stestagg, xxm
Date 2020-12-22.19:49:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608666555.1.0.884406845558.issue42717@roundup.psfhosted.org>
In-reply-to
Content
Minimal test case:

====
import sys, threading

def run():
    for i in range(10000000):
        sys.stderr.write(' =.= ')

if __name__ == '__main__':
    threading.Thread(target=run, daemon=True).start()
===

I think this is expected behaviour.  My knowledge isn't complete here, but something similar to:

* During shutdown, the daemon threads are aborted
* In your example, the thread is very likely to be busy doing IO, so holding the io lock.
* The abort you're seeing is an explicit check/abort to avoid a deadlock (https://bugs.python.org/issue23309).
History
Date User Action Args
2020-12-22 19:49:15stestaggsetrecipients: + stestagg, xxm
2020-12-22 19:49:15stestaggsetmessageid: <1608666555.1.0.884406845558.issue42717@roundup.psfhosted.org>
2020-12-22 19:49:15stestagglinkissue42717 messages
2020-12-22 19:49:14stestaggcreate