Skip to content

ASan workflow fix #154

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 2 commits into from
Jan 19, 2024
Merged

ASan workflow fix #154

merged 2 commits into from
Jan 19, 2024

Conversation

kswiecicki
Copy link
Contributor

@kswiecicki kswiecicki commented Jan 17, 2024

Enabling ASan for MSVC is more complicated than other compilers and wasn't working correctly. The changes made in #121 were not properly tested by the GHA jobs. To test the changes in basic.yml workflow file on this PR, I've temporarily changed the .github/workflows/pr_push.yml to retrieve workflow file from my fork.

For the time being, enabling ASan workflows on MSVC requires further investigation. Currently, even though CMake positively tests MSVC for ASan support and compiles the UMF project without errors, the UMF tests return 0xc0000135 error code which is STATUS_DLL_NOT_FOUND. Appending the PATH env var with the directory containing ASan lib (eg. C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64) changes the error code to 0xc0000142 which is STATUS_DLL_INIT_FAILED. I've confirmed that the compiler used to build UMF comes from the same directory as ASan lib.

@kswiecicki kswiecicki requested a review from bratpiorka January 17, 2024 16:42
@kswiecicki kswiecicki marked this pull request as ready for review January 18, 2024 12:16
@kswiecicki kswiecicki requested a review from a team as a code owner January 18, 2024 12:16
@kswiecicki kswiecicki force-pushed the asan-workflow-fix branch 2 times, most recently from 6830888 to e64d0a4 Compare January 18, 2024 14:08
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk left a comment

Choose a reason for hiding this comment

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

👍

@ldorau
Copy link
Contributor

ldorau commented Jan 18, 2024

Rebase please

Due to the changes in running CI jobs in UMF, the sanitizer checks
added to the basic.yml workflow file were not tested properly and
are currently failing on Windows. For this reason, ASan checks are
temporarily disabled on Windows, enabling them requires further
investigation.
@bratpiorka
Copy link
Contributor

@ldorau @lukaszstolarczuk I need second approve :)

@bratpiorka bratpiorka merged commit 7872b23 into oneapi-src:main Jan 19, 2024
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.

4 participants