-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Py_DECREF() in interpreter doesn't call _PyReftracerTrack(op, PyRefTracer_DESTROY)
#130382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Comments
There is a super-basic reftracer test in Example: import tracemalloc
tracemalloc.start()
refs = tracemalloc.get_traced_refs()
print(refs)
tracemalloc.reset_peak()
i = []
refs = tracemalloc.get_traced_refs()
print(refs)
tracemalloc.reset_peak()
j = [], []
del j
refs = tracemalloc.get_traced_refs()
print(refs)
import ssl
refs = tracemalloc.get_traced_refs()
print(refs)
tracemalloc.stop() Run:
|
tom-pytel
added a commit
to tom-pytel/cpython
that referenced
this issue
Feb 28, 2025
This was referenced Feb 28, 2025
colesbury
added a commit
to colesbury/cpython
that referenced
this issue
Feb 28, 2025
colesbury
pushed a commit
that referenced
this issue
Mar 13, 2025
colesbury
pushed a commit
to colesbury/cpython
that referenced
this issue
Mar 13, 2025
…DECREF` (pythonGH-130689) (cherry picked from commit c5abded) Co-authored-by: Tomasz Pytel <[email protected]>
colesbury
added a commit
that referenced
this issue
Mar 14, 2025
GH-130689) (#131195) (cherry picked from commit c5abded) Co-authored-by: Tomasz Pytel <[email protected]>
plashchynski
pushed a commit
to plashchynski/cpython
that referenced
this issue
Mar 17, 2025
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
cpython/Python/ceval.c
Lines 72 to 85 in 6c450f4
Tracemalloc only handles
PyRefTracer_CREATE
events and we don't have any tests forPyRefTracer_DESTROY
events.EDIT:
_testcapimodule.c
testsPyRefTracer_DESTROY
events, but only through the C API and not the Python interpreter.Linked PRs
_PyReftracerTrack
to cevalPy_DECREF
(GH-130689) #131195The text was updated successfully, but these errors were encountered: