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 eryksun
Recipients eryksun, paul.moore, steve.dower, sylikc, tim.golden, zach.ware
Date 2021-04-09.07:28:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617953329.01.0.712698519941.issue43784@roundup.psfhosted.org>
In-reply-to
Content
It's not a subprocess bug, per se. It's due to creating the stdout/stderr worker threads from the __del__ finalizer while the interpreter is shutting down. Minimal reproducer, confirmed in both Linux and Windows:

    import threading

    class C:
        def __del__(self):
            t = threading.Thread(target=print, args=('spam',), daemon=True)
            t.start()

    c = C()
    #del c # uncomment to prevent hanging
History
Date User Action Args
2021-04-09 07:28:49eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, sylikc
2021-04-09 07:28:49eryksunsetmessageid: <1617953329.01.0.712698519941.issue43784@roundup.psfhosted.org>
2021-04-09 07:28:48eryksunlinkissue43784 messages
2021-04-09 07:28:48eryksuncreate