-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
object.c: recursion depth leak in PyObject_Print #148208
Copy link
Copy link
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
Parent: #146102
https://gist.github.com/devdanzin/196f041a81611b2fbff22684b2f7166e
PyObject_Print calls _Py_EnterRecursiveCall at line 639 but never calls _Py_LeaveRecursiveCall on the normal return path (line 691). Every successful call permanently increments the recursion depth counter. C API only — not directly callable from Python.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error