python / python/cpython

Data races with frame objects

未關閉
#144,446 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.16 interpreter-core topic-free-threading type-bug
主要語言
Python
星號
77.2k
分支
35.9k
PR 合併指標
PR 指標待擷取

描述

Bug report

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

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-144479
  • gh-144546
  • gh-145183
  • gh-156037
  • gh-156893
  • gh-156973

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從未勾選的 frame.f_locals 項目開始,查看與 frame-object race 工作相關的已連結 PRs。該 issue 沒有指明檔案或測試;完成表示解決剩餘的變數存取 race,並加入所要求的 free-threading frame 測試。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
compilers
Issue 類型
缺陷
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
15/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。