Content-Length: 292246 | pFad | https://github.com/python/cpython/issues/148208

ad object.c: recursion depth leak in `PyObject_Print` · Issue #148208 · python/cpython · GitHub
Skip to content

object.c: recursion depth leak in PyObject_Print #148208

Description

@Wulian233

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/148208

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy