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.

classification
Title: OSError: handle closed, ProcessPoolExecutor shutdown(wait=False)
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, patbuxton
Priority: normal Keywords:

Created on 2019-12-19 13:19 by patbuxton, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg358679 - (view) Author: Patrick Buxton (patbuxton) * Date: 2019-12-19 13:19
When shutting down a ProcessPoolExecutor with wait=False, an `OSError: handle is closed` is raised.

The error can be replicated with a script as simple as:

```
from concurrent.futures import ProcessPoolExecutor

e = ProcessPoolExecutor()
e.submit(id)
e.shutdown(wait=False)
msg362127 - (view) Author: Patrick Buxton (patbuxton) * Date: 2020-02-17 09:28
This should be fixed with https://github.com/python/cpython/pull/17670 for https://bugs.python.org/issue39104, but only for version 3.9 as no backport!!
msg404242 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-10-18 23:07
3.7 and 3.8 are no longer receiving bugfixes.
Changing type because crash typically refers to segfaults and hangs, not exceptions.
History
Date User Action Args
2022-04-11 14:59:24adminsetgithub: 83279
2021-10-18 23:07:30iritkatrielsetstatus: open -> closed

type: crash -> behavior
versions: - Python 3.7, Python 3.8
nosy: + iritkatriel

messages: + msg404242
resolution: fixed
stage: resolved
2020-02-17 09:28:47patbuxtonsetmessages: + msg362127
2019-12-20 21:44:31terry.reedysettitle: OSError: handle is closed in ProcessPoolExecutor on shutdown(wait=False) -> OSError: handle closed, ProcessPoolExecutor shutdown(wait=False)
2019-12-19 13:19:43patbuxtoncreate