-
Notifications
You must be signed in to change notification settings - Fork 402
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
ThreadSanitizer for iceoryx #692
Comments
It seems we cannot run tsan and asan in together and need separate builds for each sanitizer. @dkroenke what do you think, shall we add more CI builds or find another solution? |
Running the hoofs_moduletests with tsan results in 22 warnings. Most of them in |
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
…le instead Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
…master branch Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
…master branch Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
Signed-off-by: Ibrahim Kuru <[email protected]>
…b-to-pr-ci iox-#692 Move tsan jobs into build-test.yml
@FerdinandSpitzschnueffler you already did suppress some tsan warnings. May you share the suppression syntax you used to suppress the warnings in the code rather than the suppression file? |
@elBoberido For a particular function one can use |
@FerdinandSpitzschnueffler thanks. I guess that will result in warnings on windows so we might end up with #if defined __has_attribute
#if __has_attribute (no_sanitize)
__attribute__ ((no_sanitize("thread")))
#endif
#endif ... maybe wrapped in a macro. So this is then on function level and not file level or for a single expression? |
@elBoberido argh, yes on windows this will probably cause warnings. |
@FerdinandSpitzschnueffler thanks for for the detailed information. I think a suppression on function level is sufficient. If it is really needed one can move single expressions to functions. |
Brief feature description
Integrate the ThreadSanitizer in iceoryx to detect data races.
Detailed information
It seems Mozilla had good experience finding data races with the ThreadSanitizer https://hacks.mozilla.org/2021/04/eliminating-data-races-in-firefox-a-technical-report/.
I suggest to also integrate it into iceoryx since we are heavily using multi-threaded code.
Tasks
IceoryxPlatform.cmake
The text was updated successfully, but these errors were encountered: