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 Gobot1234
Recipients Gobot1234, asvetlov, yselivanov
Date 2020-10-28.16:59:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Using asyncio.wait_for and asyncio.all_tasks in combination causes a stack overflow error. 

Code to reproduce issue:
import asyncio

async def func():
    return asyncio.all_tasks()

async def main():
    print(await asyncio.wait_for(func(), timeout=10))

I'm not too sure how far back this goes but I've managed to reproduce it on sys.version_info(major=3, minor=8, micro=0, releaselevel='final', serial=0) and sys.version_info(major=3, minor=9, micro=0, releaselevel='final', serial=0).
Date User Action Args
2020-10-28 16:59:24Gobot1234setrecipients: + Gobot1234, asvetlov, yselivanov
2020-10-28 16:59:24Gobot1234setmessageid: <>
2020-10-28 16:59:24Gobot1234linkissue42183 messages
2020-10-28 16:59:24Gobot1234create