Skip to content

TypedPython: TSan test ignores new_threadstate block reuse - #361

Merged
b-re-w merged 1 commit into
developfrom
feat/tsan-new-threadstate
Oct 31, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/tsan-new-threadstate

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 31, 2026

Copy link
Copy Markdown
Member

Follow-up to #347. Linux CI run 41212647289 (after #360) failed test_threadsanitizer_reports_nothing_on_the_extension with one report: tp_traced reading an exited thread's PyThreadState vs libpython's new_threadstate memcpy into the same reused mimalloc block. Same uninstrumented-allocator ordering as #347; the filter now also skips a report whose access is in new_threadstate. Checked against the CI report text: filtered; with the frame renamed: still counted.

…a freed block

Linux CI (run 41212647289) reported tp_traced's read of an exited thread's PyThreadState racing with libpython's new_threadstate memcpy into the same reused mimalloc block; free and reuse are ordered inside the uninstrumented allocator, as in #347.
@b-re-w
b-re-w merged commit 5d81106 into develop Oct 31, 2026
@b-re-w
b-re-w deleted the feat/tsan-new-threadstate branch October 31, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant