I am trying to detect the memory leakage/Heap Over flow error using Address sanitizer in "gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf" toolchain. There is error "cannot find libasan_preinit.o: No such file or directory". I found this file in toolchain and copied in standard toolchain path. After compiling successfully I am not able to get Heap Over flow or Memmory leakage summary on target board(ARMv7, cortex A8). Someone guide me to get the heap overflow summary and Memory leakage summary after running the executable. I have tried with Address sanitizer on host machine(x86) and it is working fine and throwing a nice heap over flow and memory leakage summary but I'm not able to get exactly same output on my target board. PLease suugest me. Thanks.
Ronan Synnott Stam Markianos-Wright Application has lot of dependency so I can't change the compiler. I found similar issue in the community address sanitizer in ARM GNU-A 8.2-2018.11 arm-linux-gnueabihf Based on the discussion this should be fixed in toolchain release gcc-arm-8.2-2019.01 onwards. I'm using toolchain gcc-arm-8.3.0 so there should not be any issue. Can you share with me the exact steps for implementing Address Sanitizer and get the heap overflow or memory leak error summary on our target board(ARMv7-Cortex A8)?
Thanks.