Valgrind and QEMU - Unable to detect memory leak
问题 I want to test my C++ code for memory leaks with Valgrind (memcheck) x86. But the software gets cross-compiled and is running on ARM. In order to do some automated testing I decided to emulate my ARM hardware via QEMU. And I also decided to use the cpputest unit test ARM binaries to ensure a deterministic behaviour and search for memory leaks within the scope the unit test covers. All in all, I have an ARM binary which should be emulated via QEMU user mode. My call looks like that: ./valgrind