New submission from Gobot1234 <gobot123...@gmail.com>:

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))

asyncio.run(main())
```

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).

----------
components: asyncio
messages: 379837
nosy: Gobot1234, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Stack overflow error with asyncio.all_tasks and wait_for
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42183>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to