Issue 64319
Summary ASAN on arm64 windows builds but crashes because SANITIZER_WINDOWS64 is used to do x86_64 instruction parsing
Labels
Assignees
Reporter farzonl
    For context you can build asan for arm64 however it asserts in `GetInstructionSize` because it can't parse the arm instructions.

![asan_build](https://github.com/llvm/llvm-project/assets/1802579/2eed3481-efe1-4786-aee3-a04d9ef58191)

`SANITIZER_WINDOWS64` as defined should only be used to determine if we are working on a 32bit or 64bit operating system. 
https://github.com/llvm/llvm-project/blob/145a9290c2ecee0eb43964ec13bcc080d4db6030/compiler-rt/lib/sanitizer_common/sanitizer_platform.h#L114-L118

However, in practice it is being used to parse x86_64 instructions.
https://github.com/llvm/llvm-project/blob/145a9290c2ecee0eb43964ec13bcc080d4db6030/compiler-rt/lib/interception/interception_win.cpp#L459-L486


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to