Title: ASan Interception Error: “unhandled instruction” with MSVC 19.50 / Odin dev-2026-04
Problem: I am encountering an AddressSanitizer interception error on Windows when running a basic “Hello World” program. While the program completes, ASan reports an unhandled instruction. This suggests the ASan runtime is failing to properly hook a function within the Windows CRT/UCRT.
Environment:
- Odin Version:
dev-2026-04 - OS: Windows 11 (25H2)
- MSVC Build Tools:
19.50.35726(VS 2026) - Bundled Clang/ASan:
18.1.8 - Command:
odin run . -debug -sanitize:address
Error Output:
==7708==interception_win: unhandled instruction at 0x7ff79bad445b: 84 d2 75 3f 41 83 e0 0f Hello World
Context: This occurs even with a bare-bones main function. The hex sequence 84 d2 75 3f 41 83 e0 0f appears to be an instruction sequence that the bundled Clang 18.1.8 ASan library doesn’t recognize or know how to patch safely. Given that I’m on MSVC 19.50, I suspect a recent change in the Windows CRT assembly is tripping up the interceptor.
Questions:
- Is Clang 18.1.8 known to have issues with the latest MSVC 19.50 toolset?
- Is there a recommended way to update the bundled
clang_rt.asan-x86_64.libto a version compatible with newer Windows updates? - Are there any
ASAN_OPTIONS(likeintercept_tls_get_addr=0or similar) that might stabilize this on Windows?