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

Sanitize #414

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Sanitize #414

merged 2 commits into from
Jan 4, 2024

Conversation

jmalkin
Copy link
Contributor

@jmalkin jmalkin commented Jan 3, 2024

Our cmake config has long supported an option to add a sanitizer but we'd never followed through with doing so. This won't catch quite everything that valgrind or the memory sanitizer will (in particular, read-before-init type errors) but it can check for leaks.

When testing the workflow I created an intentional leak to verify that it did correctly catch the error. See https://github.com/jmalkin/datasketches-cpp/actions/runs/7394385600 to view the output.

The thread sanitizer isn't relevant to us at this point. The memory sanitizer may need to run in docker since it needs a full toolchain compiled with the memory sanitizer enabled. This seems to be all we get for now.

EDIT: A comparison of memory tools can be found here.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7394598638

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.939%

Totals Coverage Status
Change from base Build 7283675343: 0.0%
Covered Lines: 16036
Relevant Lines: 16208

💛 - Coveralls

@jmalkin jmalkin merged commit 19a8b91 into apache:master Jan 4, 2024
5 checks passed
@jmalkin jmalkin deleted the sanitize branch January 4, 2024 19:26
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.

None yet

3 participants