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

Re-enable address sanitizer on VS2022 #2682

Open
CIPop opened this issue Nov 9, 2023 · 0 comments
Open

Re-enable address sanitizer on VS2022 #2682

CIPop opened this issue Nov 9, 2023 · 0 comments
Labels
needs-triage This is a new issue that needs to be triaged to the appropriate team.

Comments

@CIPop
Copy link
Member

CIPop commented Nov 9, 2023

ASAN was disabled because of #2675 (DLL not found error) via #2680 .

I have checked that the DLLs required are present on the VM:

C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\clang_rt.asan_dynamic-x86_64.dll
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\clang_rt.asan_dynamic-x86_64.pdb
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x86\clang_rt.asan_dynamic-i386.dll
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x86\clang_rt.asan_dynamic-i386.pdb
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx86\x64\clang_rt.asan_dynamic-x86_64.dll
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx86\x64\clang_rt.asan_dynamic-x86_64.pdb
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx86\x86\clang_rt.asan_dynamic-i386.dll
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx86\x86\clang_rt.asan_dynamic-i386.pdb
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\lib\x64\clang_rt.asan_dynamic-x86_64.lib
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\lib\x64\onecore\clang_rt.asan_dynamic-x86_64.lib
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\lib\x86\clang_rt.asan_dynamic-i386.lib
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\lib\x86\onecore\clang_rt.asan_dynamic-i386.lib

From my experiments, it looks like the DLLs required for ASAN-enabled tests require Visual Studio Command Prompt that prepends the following to the PATH environment variable:

Path=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\HostX86\x86;[...]

That can be enabled in CMD, (for amd64/amd64): call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64.

@github-actions github-actions bot added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage This is a new issue that needs to be triaged to the appropriate team.
Projects
None yet
Development

No branches or pull requests

1 participant