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 — Fix refleak tracking in free-threaded build · Issue #115184 · python/cpython

Fix refleak tracking in free-threaded build #115184

New issue
Copy link
New issue
Copy link
Closed
Closed
Fix refleak tracking in free-threaded build#115184
Copy link
Assignees
colesbury
Labels
3.13only security fixesonly security fixestopic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@colesbury
colesbury
opened on Feb 8, 2024
Issue body actions

Bug report

There are a few bugs with refleak tracking in the free-threaded build uncovered in #114824:

  • We should account for blocks in abandoned segments
  • We should stop-the-world before traversing mimalloc heaps in case there are still other threads running
  • The mimalloc heap and segment traversal must call _mi_page_free_collect(page, true); to properly account for blocks that were deferred freed by other threads. We need to call this earlier than we currently do (before computing page stats).
  • _Py_DecRefSharedDebug was missing a _Py_IncRefTotal

Linked PRs

  • gh-115184: Fix refleak tracking issues in free-threaded build #115188

Activity

  1. colesbury
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    3.13only security fixesonly security fixes
    topic-free-threading
    on Feb 8, 2024
  2. colesbury
    self-assigned this
    on Feb 8, 2024
  3. colesbury
    added 2 commits that reference this issue on Feb 8, 2024

    pythongh-115184: Fix refleak tracking issues in free-threaded build

    1b17640

    gh-115184: Fix refleak tracking issues in free-threaded build (#115188)

    31633f4
  4. colesbury
    closed this as completedon Feb 9, 2024
  5. fsc-eriker
    added a commit that references this issue on Feb 14, 2024

    pythongh-115184: Fix refleak tracking issues in free-threaded build (p…

    000f444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @colesbury
    colesbury

Labels

3.13only security fixesonly security fixestopic-free-threadingtype-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.