Skip to content

Fixes some tests/bugs, and adds a build with sanitizers, add ASAN CI run #182

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

Merged
merged 3 commits into from
Apr 3, 2025

Conversation

sterrettm2
Copy link
Contributor

@sterrettm2 sterrettm2 commented Feb 7, 2025

It seems most of the tests were not handling the case where the input size was zero; to be sure these don't misbehave, I've extended those tests to test arrays of size zero. In doing so, I found a few bugs in that handling which should be fixed by this patch.

In addition, this patch adds a new build option to the makefile test_asan, which enabled address sanitizer and undefined behavior sanitizer. This currently only works with clang; GCC seems to show a clearly invalid issue, whereas clang shows no issue there. I also resolved all of the issues found by the undefined behavior sanitizer in this patch.

I'm working on an experimental ASAN CI pipeline, so this is not ready to be merged yet.

@sterrettm2 sterrettm2 changed the title Fixes some tests/bugs, and adds a build with sanitizers [DRAFT] Fixes some tests/bugs, and adds a build with sanitizers Mar 24, 2025
@sterrettm2 sterrettm2 changed the title [DRAFT] Fixes some tests/bugs, and adds a build with sanitizers [DRAFT] Fixes some tests/bugs, and adds a build with sanitizers, add ASAN CI run Mar 24, 2025
@sterrettm2 sterrettm2 marked this pull request as draft March 24, 2025 18:18
@sterrettm2 sterrettm2 force-pushed the asan_ci branch 4 times, most recently from fcac143 to eda53a4 Compare March 24, 2025 23:47
@sterrettm2
Copy link
Contributor Author

So to make the ASAN CI run in a reasonable amount of time in the SDE, I made it so the ASAN CI run doesn't actually check the results, only running the simd sorting code. This should be enough for UBSAN and ASAN to validate the simd sorting logic, and the tests results are still verified by all the other test suite runs, so I think should be fine.

@sterrettm2 sterrettm2 changed the title [DRAFT] Fixes some tests/bugs, and adds a build with sanitizers, add ASAN CI run Fixes some tests/bugs, and adds a build with sanitizers, add ASAN CI run Mar 25, 2025
@sterrettm2 sterrettm2 marked this pull request as ready for review March 25, 2025 17:07
Copy link
Contributor

@r-devulap r-devulap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@r-devulap r-devulap merged commit 357c5e3 into intel:main Apr 3, 2025
31 of 33 checks passed
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.

2 participants