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 rosslagerwall
Recipients neologix, pitrou, rosslagerwall, vstinner
Date 2012-01-03.06:12:18
SpamBayes Score 4.5297017e-07
Marked as misclassified No
Message-id <1325571140.25.0.93506173628.issue12364@psf.upfronthosting.co.za>
In-reply-to
Content
Retrieving the result of a future after the executor has been shut down can cause a hang.

It seems like this regression was introduced in a76257a99636. This regression exists only for ProcessPoolExecutor.

The problem is that even if there are pending work items, the processes are still signaled to shut down leaving the pending work items permanently unfinished. The patch simply removes the call to shut down the processes when there are pending work items.

Attached is a patch.
History
Date User Action Args
2012-01-03 06:12:20rosslagerwallsetrecipients: + rosslagerwall, pitrou, vstinner, neologix
2012-01-03 06:12:20rosslagerwallsetmessageid: <1325571140.25.0.93506173628.issue12364@psf.upfronthosting.co.za>
2012-01-03 06:12:19rosslagerwalllinkissue12364 messages
2012-01-03 06:12:19rosslagerwallcreate