Skip to content

concurrentqueue incompatible with -fsanitize=thread (TSan) #321

@mvillmow

Description

@mvillmow

When building with the new tsan preset (just test-tsan), the moodycamel::ConcurrentQueue library (used in work_stealing_queue.cpp) fails to compile with -Werror=tsan: atomic_thread_fence is not supported with '-fsanitize=thread'. This blocks running the full concurrency test suite under TSan. Options: (1) disable -Werror for the TSan build, (2) suppress the specific warning for that translation unit, or (3) replace concurrentqueue with a TSan-clean alternative. The ThreadPool itself is clean — only the work-stealing components are affected.

Follow-up from #145

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtestingTesting findingtier:hardArchitectural or complex multi-phase issue, deferred

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions