I like to program using gcc and g++ on Cygwin on Windows 10. But although man gcc presents the "-fsanitize=address" option, it doesn't seem to actually work. I get "cannot find -lasan". And searching Cygwin's package repository for "lasan", "libasan", "asan" or "sanit" returns nothing relevant. Is "Address Sanitizer", then, a Linux-only thing, with no equivalent in Cygwin? And if it is, what other tools are available on Cygwin for achieving the same or similar goals?
Asked
Active
Viewed 1,037 times
3
-
1libasan is not supported on\for windows – Swift - Friday Pie Sep 26 '18 at 06:02
-
https://stackoverflow.com/questions/11806469/clang-with-faddress-sanitizer-on-windows – Jean-François Fabre Sep 26 '18 at 06:04
-
1"Cygwin on Windows 10" Might I ask why you don't just use WSL? – Swordfish Sep 26 '18 at 06:16
-
1@Swordfish Might I ask why you use WSL? – yugr Sep 26 '18 at 07:31
-
1I don't. But I do not use cygwin either. Its just that gccs address sanitizer should be working under WSL. – Swordfish Sep 26 '18 at 07:36