[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington


miss-islington  added the comment:


New changeset 109c17315af124b25853c248f4a9bf00f03036f6 by Miss Islington (bot) 
in branch '3.8':
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() 
(GH-23020)
https://github.com/python/cpython/commit/109c17315af124b25853c248f4a9bf00f03036f6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington


miss-islington  added the comment:


New changeset 90115a2cf7033c990a54d1ecb90ebd850b5f13cf by Miss Islington (bot) 
in branch '3.9':
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() 
(GH-23020)
https://github.com/python/cpython/commit/90115a2cf7033c990a54d1ecb90ebd850b5f13cf


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 42d873c63aa9d160c132be4a34599531574db12c by Andrew Svetlov in 
branch 'master':
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() 
(GH-23020)
https://github.com/python/cpython/commit/42d873c63aa9d160c132be4a34599531574db12c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +22119
pull_request: https://github.com/python/cpython/pull/23221

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22120
pull_request: https://github.com/python/cpython/pull/23222

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-11-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22121
pull_request: https://github.com/python/cpython/pull/23223

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-10-29 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

The fix is ready

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-10-29 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +21934
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23020

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-10-29 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
type:  -> crash
versions: +Python 3.10, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-10-29 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Update: the bug is present in all supported Python versions bug sometimes may 
be hidden by race conditions.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-10-29 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I cannot reproduce on 3.9 but 3.8.6 crashes on `repr`:

  File 
"/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/asyncio/base_futures.py", 
line 31 in format_cb
  File 
"/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/asyncio/base_futures.py", 
line 34 in _format_callbacks
  File 
"/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/asyncio/base_futures.py", 
line 57 in _future_repr_info
  File 
"/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/asyncio/base_tasks.py", line 
9 in _task_repr_info
  File "/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/reprlib.py", line 139 
in repr_instance
  File "/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/reprlib.py", line 62 
in repr1
  File "/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/reprlib.py", line 71 
in 
  File "/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/reprlib.py", line 71 
in _repr_iterable
  File "/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/reprlib.py", line 93 
in repr_set
  File "/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/reprlib.py", line 60 
in repr1
  File "/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/reprlib.py", line 52 
in repr
  File 
"/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/asyncio/base_futures.py", 
line 54 in _future_repr_info
  File 
"/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/asyncio/base_tasks.py", line 
9 in _task_repr_info
  File "/home/andrew/.pyenv/versions/3.8.6/lib/python3.8/reprlib.py", line 139 
in repr_instance
... the stack tail recursively repeats

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42183] Stack overflow error with asyncio.all_tasks and wait_for

2020-10-28 Thread Gobot1234


New submission from Gobot1234 :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com