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 xxm
Recipients asvetlov, xxm, yselivanov
Date 2021-11-16.08:44:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637052252.29.0.850993765277.issue45813@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-11-16 08:44:12xxmsetrecipients: + xxm, asvetlov, yselivanov
2021-11-16 08:44:12xxmsetmessageid: <1637052252.29.0.850993765277.issue45813@roundup.psfhosted.org>
2021-11-16 08:44:12xxmlinkissue45813 messages
2021-11-16 08:44:11xxmcreate