Skip to content

TypedPython: TSan test ignores mimalloc block reuse - #347

Merged
b-re-w merged 1 commit into
developfrom
feat/tsan-mimalloc-suppression
Oct 27, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/tsan-mimalloc-suppression

Conversation

@b-re-w

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

Copy link
Copy Markdown
Member

test_threadsanitizer_reports_nothing_on_the_extension failed intermittently on ubuntu (runs 40584823089, 40591670584): one access is _mi_malloc_generic memset in libpython, the other tp_traced reading a PyThreadState of a thread that has since exited. Free and reuse are both inside the uninstrumented allocator, so TSan cannot order them. The filter now drops reports whose access is mimalloc initialising a block; reports where both accesses are the extension's still count.

… block

The intermittent Linux failure pairs tp_traced reading a thread state with
_mi_malloc_generic's memset of the same memory after that thread exited; the
free and reuse happen in the uninstrumented allocator.
@b-re-w
b-re-w merged commit 6bf3cfd into develop Oct 27, 2026
@b-re-w
b-re-w deleted the feat/tsan-mimalloc-suppression branch October 27, 2026 22:19
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