Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

_Py_DECREF_SPECIALIZED doesn't respect pymalloc tracking #125703

Closed
Labels
3.13bugs and security fixes3.14bugs and security fixesperformancePerformance or resource usage
@pablogsal

Description

@pablogsal

PR#30872 added_Py_DECREF_SPECIALIZED which callsdestruct over the object. Whendestruct isPyObject_Free this skipstracemalloc counting reporting that the memory is alive. This also makes debuggers segfault because they think that the object is alive because they did not get a notification. This is the code that's not getting called:

cpython/Objects/object.c

Lines 2924 to 2928 in2e950e3

struct_reftracer_runtime_state*tracer=&_PyRuntime.ref_tracer;
if (tracer->tracer_func!=NULL) {
void*data=tracer->tracer_data;
tracer->tracer_func(op,PyRefTracer_DESTROY,data);
}

This may also qualify a regression as makes tracemalloc detect incorrect memory usage for these objects

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixesperformancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp