Message406388
The following crashing can only reproduce on Python3.11. In this case, we import "asyncio" after deleting a coroutine object and before cleaning it up, leading to crashing.
test.py
=======================
async def f():
pass
f = f()
frame = f.cr_frame
del f
import asyncio
frame.clear()
======================
>>>Python3.11 -Werror test.py
Exception ignored in: <coroutine object f at 0x7f860ad9cdd0>
Traceback (most recent call last):
File "python311/Lib/warnings.py", line 506, in _warn_unawaited_coroutine
warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeWarning: coroutine 'f' was never awaited
Segmentation fault (core dumped)
Version: Python 3.11.0a2+ on Ubuntu 16.04 |
|
Date |
User |
Action |
Args |
2021-11-16 08:44:12 | xxm | set | recipients:
+ xxm, asvetlov, yselivanov |
2021-11-16 08:44:12 | xxm | set | messageid: <1637052252.29.0.850993765277.issue45813@roundup.psfhosted.org> |
2021-11-16 08:44:12 | xxm | link | issue45813 messages |
2021-11-16 08:44:11 | xxm | create | |
|