Can't run VS address sanitizer on GitHub runners #77047
Replies: 1 comment 1 reply
-
I actually have the same problem. @Reedbeta did you manage to find a solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
I'm having trouble running an executable compiled with Visual Studio with Address Sanitizer enabled, on the Windows runners.
Here's a minimal repro: https://github.com/Reedbeta/gha-asan-test
This is VS's canned hello-world app, which I've modified by enabling ASan in the Debug configuration.
Now, running ASan requires
clang_rt.asan_dynamic-x86_64.dll
to be on the PATH. This will be the case when running through a VS developer command prompt, so in my GHA setup I've used thesetup-msvc-dev
action to do this.I've verified that the clang ASan DLL is present in the expected directory on the runner, i.e.
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64
, and I've verified that directory is on the PATH, e.g. I can invokecl.exe
and it's found.However, running my hello-world app with ASan on the Windows runner fails immediately with no output and an exit code
-1073741502
, which maps to0xc0000142
which isSTATUS_DLL_INIT_FAILED
.I cannot reproduce this on my own machine (Windows 11 10.0.22621.2715, VS Community 17.7.3, same toolchain version 14.37.32822). For me, the app runs without error.
I've spent days trying to debug this and am completely stuck. I suspect something about the configuration of the Windows runner is causing this but I cannot diagnose further on my own.
Beta Was this translation helpful? Give feedback.
All reactions