Skip to content

Fix Valgrind and TSAN instrumentation #1138

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

Closed
wants to merge 1 commit into from

Conversation

vinser52
Copy link
Contributor

@vinser52 vinser52 commented Feb 25, 2025

Description

This PR fixes Valgrind and TSAN instrumentation.

Ref. #886

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

@bratpiorka
Copy link
Contributor

I see that TSAN passed .. maybe there annotation should be placed differently for TSAN and Valgrind?
Also, should we remove some suppressions with this PR?

@lplewa
Copy link
Contributor

lplewa commented Feb 26, 2025

I'm 99% sure that issue is that this two macros are "empty"

#define VALGRIND_ANNOTATE_NEW_MEMORY(p, s) DO_WHILE_EMPTY
#define VALGRIND_HG_DRD_DISABLE_CHECKING(p, s) DO_WHILE_EMPTY

While we should call ANNOTATE_NEW_MEMORY and VALGRIND_HG_DISABLE_CHECKING and ANNOTATE_NEW_MEMORY

@bratpiorka
Copy link
Contributor

@vinser52 I added this code to #1127 so you can close this PR

@vinser52 vinser52 closed this Feb 26, 2025
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.

3 participants