I'm trying to trace a huge memory leak in my application that only occurs on Linux Arm64.
Valgrind shows me I have a clean app (no leaks or invalid writes) on both Linux Intel and Linux Arm64.
However the valgrind output shows a lot of functions in a system library that has invalid writes (only on the Linux arm system).
==4094== Invalid write of size 8==4094== at 0x7C849AC: ??? (in /usr/lib/aarch64-linux-gnu/libLLVM-9.so.1)==4094== Address 0x1ffeffe820 is on thread 1's stack==4094== 64 bytes below stack pointer
These libraries are all in /usr/lib/aarch64-linux-gnu/libLLVM-9.so.1.
I do have llvm 8.0 and gcc 7.5 installed (only the arm Linux system) but my application is built with gcc.
I'm not sure if this llvm library is causing my leak but I would like to eliminate the possibility by configuring gcc not to link against the llvm library.
I could just remove llvm altogether but I am using that for other projects.
I'm not sure if this a compile/link option I need to configure or a runtime library path configuration issue.
Any recommendations?