Skip to content

Memory leak due to trace recorder value capturing #144688

@Fidget-Spinner

Description

@Fidget-Spinner

Bug report

Bug description:

Currently we Py_XDECREF((PyObject *)(uintptr_t)buffer[pc].operand0); only at the last part of uop_optimize, but we don't handle any of the error cases. This means if the JIT errors, it's possible to leak memory.

@markshannon assigning this to you.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Metadata

Metadata

Assignees

Labels

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions