Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for thread sanitizer (TSAN) via--with-thread-sanitizer #112536

Closed
Assignees
samety
Labels
3.13bugs and security fixesbuildThe build process and cross-buildtopic-free-threadingtype-featureA feature request or enhancement
@colesbury

Description

@colesbury

Feature or enhancement

GCC and Clang provide ThreadSanitizer, a tool that detects data races. We should add support for thread sanitizer to CPython. Note that Python already supports the memory and address sanitizers.

  • Add--with-thread-sanitizer as a configure option
  • Define_Py_THREAD_SANITIZER if thread-sanitizer is enabled (see, e.g.,_Py_ADDRESS_SANITIZER inpyport.h)
  • Move the definition of_Py_NO_SANITIZE_THREAD fromobmalloc.c to a place that's more widely available (likepyport.h). We're going to need this in a few places

Eventually, it would be helpful to have a continuous build for the combination of--disable-gil --with-thread-sanitizer. Note that we probably won't want to run all the tests. ThreadSanitizer is slow and also not very useful for single-threaded tests. We should collect a subset of our tests that use threading for the ThreadSanitizer continuous build.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixesbuildThe build process and cross-buildtopic-free-threadingtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp