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.
Moved to compiler specific forum
Ronan Synnott Thanks for moving to the specific forum.
Is it possible to detect memory leak, Heap Over flow in ARMv7(Cortex A8) processor?
If yes, Please help me to get the answer ASAP.
Can I use Hellgrind,Callgrind,Kcachegrind in the same proceesor?
Hi Manish,Are you able to try a newer compiler? GCC8.3 is very old these days!Download from here: https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads e.g. our GCC13.3 release.If that still doesn't work, then are you able to share your compiler invocation command-line? I believe that address sanitizer should work and you shouldn't need to copy any files around like you did for `libasan_preinit.o`
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.