[New-bugs-announce] [issue39060] asyncio.Task.print_stack doesn't print the full stack

Amit Itzkovitch report at bugs.python.org
Mon Dec 16 04:51:58 EST 2019

New submission from Amit Itzkovitch <amit7itz at gmail.com>:

I think I found some issue in the "print_stack()" function of asyncio.Task.
When I try to print the stack of some task, I only see the first few lines of the stack. 
Attached an example file, that contains a recursive function that after 10 calls prints the stack of the task. 
You can see that the stack that it prints only shows the first call of the recursive function, although you would expect to see it 10 times.

Tested on python3.7 and 3.8 on both MacOS and CentOS, the result is the same. 

Your help will be appreciated very much! :)

components: asyncio
files: example.py
messages: 358468
nosy: amit7itz, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.Task.print_stack doesn't print the full stack
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48779/example.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list