GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Reference leak in capi_call_instrumentation() for non-LINE monitoring events · Issue #150379 · python/cpython

Reference leak in capi_call_instrumentation() for non-LINE monitoring events #150379

New issue
Copy link
New issue
Copy link
Closed
Closed
Reference leak in capi_call_instrumentation() for non-LINE monitoring events#150379
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@lpyu001
lpyu001
opened on May 25, 2026
Issue body actions

Bug report

Bug description:

#instrumentation.c: PyLong leaked per C API monitoring call

capi_call_instrumentation (line 2609) creates offset_obj = PyLong_FromLong(offset) stored in args[2] but never calls Py_DECREF. Affects ~16 _PyMonitoring_Fire*Event C API functions. Unbounded memory growth in long-running apps using C monitoring.

This is a sub-issue of #146102 with gist details

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

  • gh-150379:Fix PyLong ref leak in C API monitoring events #150381

Activity

  1. lpyu001
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 25, 2026
  2. kumaraditya303
    added a commit that references this issue on May 25, 2026

    gh-150379: fix ref leak in C API monitoring events (#150381)

    71cf313
  3. kumaraditya303
    closed this as completedon May 25, 2026
  4. aisk
    added a parent issue on Jul 13, 2026
    • Umbrella issue: bugs found using cpython-review-toolkit #146102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.