Data race of `should_auto_add_history` in file `Modules/readline.c`
未關閉
還沒有人認領這個 Issue。
extension-modules
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
Read and write of variable should_auto_add_history in file Modules/readline.c is not atomic, thus could be data race in free thread build. For detailed report please see TSAN-0025 from the parent issue #153852.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- gh-154531
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 Modules/readline.c 中對 should_auto_add_history 的讀取和寫入開始,然後閱讀從父 issue #153852 連結的 TSAN-0025 報告。檢視連結的 PR gh-154531,並驗證回報的競爭條件已在 free-threaded build 中獲得修正。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- c, python
- 領域
- backend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100