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 — Data races with frame objects · Issue #144446 · python/cpython

Data races with frame objects #144446

New issue
Copy link
New issue
Copy link
Open
Open
Data races with frame objects#144446
Copy link
Labels
3.16new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@colesbury
colesbury
opened on Feb 3, 2026
Issue body actions

Bug report

We've fixed most of the data races with Python frame objects in:

  • data races in frame inspection and tracebacks #128421

But I think we missed a few places, such as:

  • repr(frame) on an frame that is executing or in the process of getting cleared
  • frame.f_lasti
  • Accessing variables through frame.f_locals

Additionally, I'd like to add more free threading tests for frames.

Linked PRs

  • gh-144446: Fix some frame object thread-safety issues #144479
  • [3.14] gh-144446: Fix some frame object thread-safety issues (gh-144479) #144546
  • gh-144446: Fix thread-safety of FrameLocalsProxy on executing frames #145183
  • gh-144446: Fix thread safety of gi_frame, cr_frame and ag_frame in free-threading #156037
  • gh-144446: Fix _PyFrame_GetFrameObject() for test_cppext (C++) #156893
  • gh-144446: Fix thread-safety of FrameLocalsProxy on executing frames #156973

Activity

Next
  1. colesbury
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    topic-free-threading
    3.14bugs and security fixesbugs and security fixes
    3.15bugs and security fixesbugs and security fixes
    on Feb 3, 2026
  2. colesbury
    added 2 commits that reference this issue on Feb 4, 2026

    pythongh-144446: Fix some frame object thread-safety issues

    25f9328

    gh-144446: Fix some frame object thread-safety issues (gh-144479)

    5bb3bbb
  3. miss-islington
    added a commit that references this issue on Feb 6, 2026

    pythongh-144446: Fix some frame object thread-safety issues (pythongh…

    d92a7fb
  4. colesbury
    added a commit that references this issue on Feb 6, 2026

    [3.14] gh-144446: Fix some frame object thread-safety issues (gh-144479…

    6006005
  5. thunder-coding
    added a commit that references this issue on Feb 15, 2026

    pythongh-144446: Fix some frame object thread-safety issues (pythongh…

    5f30178
  6. LindaSummer commented on Feb 24, 2026

    @LindaSummer
    LindaSummer
    on Feb 24, 2026
    Contributor
    More actions

    Hi @colesbury ,
    I want to work on the Accessing variables through frame.f_locals sub issue.
    Could I try this sub-task? 😊

  7. colesbury commented on Feb 24, 2026

    @colesbury
    colesbury
    on Feb 24, 2026
    ContributorAuthor
    More actions

    Thanks @LindaSummer, but I've already started on it. I'll open a draft PR with the changes. Still thinking about if this is the way I want to implement it.

    Reacted by Edward Xu
  8. colesbury
    added 2 commits that reference this issue on Feb 24, 2026

    pythongh-144446: Fix thread-safety of FrameLocalsProxy on executing f…

    2f3e916

    pythongh-144446: Fix thread-safety of FrameLocalsProxy on executing f…

    a243a4b
  9. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-144446: Fix some frame object thread-safety issues (pythongh…

    773fb83
  10. kumaraditya303
    added a commit that references this issue on Aug 19, 2026

    pythongh-144446: Fix thread safety of gi_frame, cr_frame and ag_frame…

    b7c16bb
  11. 1 remaining item

  12. kumaraditya303
    added a commit that references this issue on Sep 2, 2026

    gh-144446: Fix thread safety of gi_frame, cr_frame and ag_frame in fr…

    db92901
  13. vstinner
    added 2 commits that reference this issue on Sep 3, 2026

    pythongh-144446: Fix _PyFrame_GetFrameObject() for test_cppext (C++)

    633171b

    gh-144446: Fix _PyFrame_GetFrameObject() for test_cppext (C++) (#156893)

    4dd225e
  14. kumaraditya303
    added 5 commits that reference this issue on Sep 5, 2026

    pythongh-144446: Fix thread safety of gi_frame, cr_frame and ag_frame…

    5111a63

    pythongh-144446: Fix thread-safety of FrameLocalsProxy on executing f…

    9edbfb1

    pythongh-144446: Fix thread-safety of FrameLocalsProxy on executing f…

    9b16c6e

    pythongh-144446: Fix thread-safety of FrameLocalsProxy on executing f…

    cc281e3

    pythongh-144446: Fix thread-safety of FrameLocalsProxy on executing f…

    44c1536
  15. kumaraditya303
    added
    3.16new features, bugs and security fixesnew features, bugs and security fixes
    and removed
    3.14bugs and security fixesbugs and security fixes
    3.15bugs and security fixesbugs and security fixes
    on Sep 5, 2026
  16. picnixz
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Sep 6, 2026
  17. clin1234
    added 2 commits that reference this issue on Sep 12, 2026

    pythongh-144446: Fix thread safety of gi_frame, cr_frame and ag_frame…

    b13e00b

    pythongh-144446: Fix _PyFrame_GetFrameObject() for test_cppext (C++) (p…

    0bcdddd
  18. kumaraditya303
    added a commit that references this issue on Nov 9, 2026

    Merge branch 'main' of https://github.com/python/cpython into pythong…

    e94a203
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

    3.16new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-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.