python / python/cpython

Various data races in subinterpreter tests under TSAN

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

還沒有人認領這個 Issue。

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

描述

Bug report

Thread sanitizer reports a number of data races when running subinterpreter tests

InterpreterPoolMixin (test_concurrent_futures)

I think for now it would make sense to skip the InterpreterPoolMixin tests when running with TSAN.

test__interpchannels
test__interpreters and test_interpreters
test_capi.test_misc.assign_version_tag
  • race on NEXT_GLOBAL_VERSION_TAG in assign_version_tag (see above)
Linked PRs
  • gh-129826
  • gh-129829
  • gh-135794
  • gh-136266
  • gh-143446
  • gh-143530

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

先從 test_concurrent_futures、test__interpchannels 和 test__interpreters 中尚未檢查的競態開始,然後閱讀 Modules/posixmodule.c、Objects/typeobject.c、Modules/_interpchannelsmodule.c 和 Modules/_struct.c 中連結的位置。在 TSAN 下執行受影響的子直譯器測試;當每個已回報的競態都有經過審查的解決方案或已記錄的處置,並且已考量連結的 PR 時,即視為完成。

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

評估

技術堆疊
c, python
領域
backend, testing-qa
Issue 類型
缺陷
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
20/100

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

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