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 vstinner
Recipients eryksun, jeremy.kloth, jkloth, vstinner
Date 2022-02-21.11:49:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> It does seem that only the Windows Popen._wait() cannot handle negative timeout values, so the fix should be as simple as coercing the timeout values to >= 0.

Oh. This function should maybe raise an exception if the timeout is negative, and ther caller must replace negative timeout with zero.

> A judicious use of prints in, reveals that the timeout passed to wait() ends up being negative.  That value, once cast to a DWORD, ultimately causes a very long wait (0xfffffff2, in my testing).

This sounds dangerous and must be fixed. Python must not convert negative values to very large positive values.
Date User Action Args
2022-02-21 11:49:24vstinnersetrecipients: + vstinner, jkloth, jeremy.kloth, eryksun
2022-02-21 11:49:24vstinnersetmessageid: <>
2022-02-21 11:49:24vstinnerlinkissue46716 messages
2022-02-21 11:49:23vstinnercreate