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 basnijholt
Recipients asvetlov, basnijholt, yselivanov
Date 2020-04-10.10:58:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586516289.91.0.119336557864.issue36281@roundup.psfhosted.org>
In-reply-to
Content
Using `git bisect` I've discovered the commit (b713adf27a) (https://github.com/python/cpython/commit/b713adf27a) that broke the code.

I've used one script:
```test.py
import sys
sys.path.append("/Users/basnijholt/Downloads/cpython/Lib/concurrent/futures/")
from random import random
from process import ProcessPoolExecutor
import asyncio

ioloop = asyncio.get_event_loop()

async def func(ioloop, executor):
    result = await ioloop.run_in_executor(executor, random)
    executor.shutdown(wait=False)  # bug doesn't occur when `wait=True`

if __name__ == "__main__":
    executor = ProcessPoolExecutor()
    task = ioloop.run_until_complete(func(ioloop, executor))
```
and `test2.py`
```
import pexpect
import sys

child = pexpect.spawn("python /Users/basnijholt/Downloads/cpython/test.py")
try:
    child.expect(["OSError", "AssertionError"], timeout=1)
    raise Exception
except pexpect.EOF as e:
    sys.exit(0)
```

Then did
```
git checkout master
git reset --hard 9b6c60cbce  # bad commit
git bisect start
git bisect bad
git bisect good ad2c2d380e  # good commit
git bisect run python test2.py
```

I will see if I can fix it.
History
Date User Action Args
2020-04-10 10:58:09basnijholtsetrecipients: + basnijholt, asvetlov, yselivanov
2020-04-10 10:58:09basnijholtsetmessageid: <1586516289.91.0.119336557864.issue36281@roundup.psfhosted.org>
2020-04-10 10:58:09basnijholtlinkissue36281 messages
2020-04-10 10:58:09basnijholtcreate