get_all_awaited_by()
shows incorrect call stacks in awaited_by relationships
#135371
Labels
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
The
get_all_awaited_by()
function in the remote debugging module was returning incorrect call stack information in the awaited_by relationships. Instead of showing each task's own call stack, it was showing the awaiter's call stack, making the output confusing and misleading.Expected Behavior
Each task should show:
Actual Behavior
Each task was showing:
Example
For this code:
Wrong output:
Correct output:
In process_single_task_node(), the code is calling parse_task_awaited_by() which traverses to the awaiter and gets the awaiter's call stack instead of the current task's call stack.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: