Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 10, 2018

The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.

The fix is to start the identical frame counter at 1.
(cherry picked from commit d545869)

Co-authored-by: Benjamin Peterson [email protected]

https://bugs.python.org/issue34588

…-9077)

The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.

The fix is to start the identical frame counter at 1.
(cherry picked from commit d545869)

Co-authored-by: Benjamin Peterson <[email protected]>
@miss-islington
Copy link
Contributor Author

@benjaminp: Backport status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit afb25bc into python:3.6 Sep 10, 2018
@miss-islington miss-islington deleted the backport-d545869-3.6 branch September 10, 2018 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants