Skip to content

Free-threaded function watchers race with modifications to the function #162529

Backlog

Description

@alexmalyshev

Bug report

Applies to the free-threaded build.

There's no synchronization for a function watcher receiving an event for field k on function F about to be modified and another thread modifying F.k in parallel. When the watcher goes to inspect the function, its fields might not be the same fields as they were before the corresponding MODIFY event.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Activity

  1. added
    type-bug
    on Nov 24, 2026
  2. added
    interpreter-core
    on Nov 24, 2026
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

    interpreter-coretopic-free-threadingtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions