Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tsan] Data race detection in mutex_init_and_lock #94

Open
mgouicem opened this issue Jul 18, 2023 · 1 comment
Open

[Tsan] Data race detection in mutex_init_and_lock #94

mgouicem opened this issue Jul 18, 2023 · 1 comment

Comments

@mgouicem
Copy link

Because the global __itt__global is initialized in a critical section (here), Clang Thread Sanitizer flags it as a race condition.
We stumbled upon it by calling itt_string_create in a parallel section.

It is not critical, but it forces users to suppress those warnings. Maybe separating the initialization from the lock, and statically initializing the mutex would avoid this issue.

@abrown
Copy link
Contributor

abrown commented Jul 20, 2023

cc: @ekovanova

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

No branches or pull requests

2 participants