[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

Xinmeng Xia report at bugs.python.org
Sat Nov 20 05:22:56 EST 2021


Xinmeng Xia <xiaxm at smail.nju.edu.cn> added the comment:

Thanks for testing it. Maybe it only crashes on Unix-like operating systems. I also try it on MacOS 11.6.1. with -i to ensure that python survives running the test code. On MacOS, it reports the following crashing information: 

------------------- 
xxm$ Python-3.11.0a2/python.exe -i test.py 
test.py:5: RuntimeWarning: coroutine 'f' was never awaited
  del f
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Segmentation fault: 11
--------------------

----------

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


More information about the Python-bugs-list mailing list