I wish to use ASan on msvc for cpp extensions of python. I’m on win10 and VS2022 17.9.3. Frist I tried microsoft’s tutorial and it works. Then I use cython to wrap my cpp code. My code is here.
When I use ubuntu, I can run my code well after export LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/{your gcc version}/libasan.so
. But on windows, it says “ImportError: DLL load failed while importing cydbg_cy: The specified module could not be found”. I think it raises because it couldn’t find ASan’s location, just as I need to export LD_PRELOAD
on linux. But I don’t know where it is. Any advice would be appreciated!