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 Jonathan Slenders
Recipients Jonathan Slenders, asvetlov, vstinner, yselivanov
Date 2019-12-10.21:18:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Even simpler, the following code will crash after so many iterations:

import asyncio
loop = asyncio.get_event_loop()

while True:

Adding a little sleep of 0.01s after `run_forever()` prevents the issue.

So, to me it looks like the cancellation of the `_OverlappedFuture` that wraps around the `_recv()` call from the self-pipe did not complete before we start `_recv()` again in the next `run_forever()` call. No idea if that makes sense...
Date User Action Args
2019-12-10 21:18:18Jonathan Slenderssetrecipients: + Jonathan Slenders, vstinner, asvetlov, yselivanov
2019-12-10 21:18:18Jonathan Slenderssetmessageid: <>
2019-12-10 21:18:18Jonathan Slenderslinkissue39010 messages
2019-12-10 21:18:18Jonathan Slenderscreate