Author gregory.p.smith
Recipients gregory.p.smith, izbyshev, martin.panter, nitishch, pitrou, vstinner
Date 2018-03-25.19:01:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522004487.41.0.467229070634.issue32270@psf.upfronthosting.co.za>
In-reply-to
Content
This bug stems from:

 https://github.com/python/cpython/blob/master/Modules/_posixsubprocess.c#L454

When stdout=fd is passed, that results in c2pwrite=fd.  The stdin/stdout/stderr pipe fds are closed when > 2 without checking to see if they are listed in pass_fds.

https://github.com/python/cpython/blob/master/Lib/subprocess.py#L1306 maps the following:
 stdin -> p2cread
 stdout -> c2pwrite
 stderr -> errwrite
History
Date User Action Args
2018-03-25 19:01:27gregory.p.smithsetrecipients: + gregory.p.smith, pitrou, vstinner, martin.panter, izbyshev, nitishch
2018-03-25 19:01:27gregory.p.smithsetmessageid: <1522004487.41.0.467229070634.issue32270@psf.upfronthosting.co.za>
2018-03-25 19:01:27gregory.p.smithlinkissue32270 messages
2018-03-25 19:01:27gregory.p.smithcreate