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 emanuel
Recipients efiop, emanuel, eryksun, gregory.p.smith, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-07-21.08:07:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563696451.37.0.517660463823.issue37380@roundup.psfhosted.org>
In-reply-to
Content
I believe this to be a bug in the standard library instead of solely being the result of an application error.

When a Popen instance is finalized by the garbage collector, the internal handle is also finalized and closed despite the instance being put on the active list. This results in _cleanup throwing because the handle can no longer be used.

I've attached a small reproduction.
History
Date User Action Args
2019-07-21 08:07:31emanuelsetrecipients: + emanuel, gregory.p.smith, paul.moore, vstinner, tim.golden, zach.ware, eryksun, steve.dower, efiop
2019-07-21 08:07:31emanuelsetmessageid: <1563696451.37.0.517660463823.issue37380@roundup.psfhosted.org>
2019-07-21 08:07:31emanuellinkissue37380 messages
2019-07-21 08:07:31emanuelcreate