[issue39232] asyncio crashes when tearing down the proactor event loop

Joe report at bugs.python.org
Tue Jun 22 10:16:37 EDT 2021


Joe <lawsonjl at ornl.gov> added the comment:

We are running into this all the time, ever since the Proactor became the default on Windows in 3.8. 

Usually it comes up when the program terminates due to an unhandled exception during a highly concurrent operation. The resulting cascade of RuntimeErrors often obscures the real reason for failure, which makes debugging more painful than it should be. But sometimes this cascade of RuntimeErrors will occur even when the program otherwise executes successfully. So it can be difficult to know if the program actually blew up or if it's just benign event loop vomit.

Converting this particular error to a warning would be great, but eliminating the call to the event loop in __del__ would be even better. I understand that's easier said than done, or else ProactorBasePipeTransport wouldn't be leaning on __del__ in the first place.

----------
nosy: +lawsonjl.ornl

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39232>
_______________________________________


More information about the Python-bugs-list mailing list