Issue 143856
Summary [clang-cl][Windows] When ASAN is enabled, the app starts crashing and the crash occurs in the runtime library
Labels new issue
Assignees
Reporter jiangxinhaha
    clang-cl version: 20.1.0;
1,  vs2022, C/C++ properties (Use /MD):

![Image](https://github.com/user-attachments/assets/57799f67-6896-4e96-999e-163a80c307a9)

2,Linker properties(Use clang_rt.asan_dynamic-x86_64.dll):

![Image](https://github.com/user-attachments/assets/96ebdf79-215a-404c-b884-19c624573f00)

3, Crash stack :

![Image](https://github.com/user-attachments/assets/df009b93-510d-4850-934c-fa0e02742717)


Exception thrown at 0x00007FFEC96D0EA9 (ucrtbase.dll) in TestTemplate.exe: 0xC0000005: Access violation writing to location 0x0000036598534000.


It seems that clang uses asan with these steps and configurations, but why does the crash occur on the runtime library when the app starts?


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

Reply via email to