HeapTrack Query - Stripped Binary

sindhu krishnan sindhu.muthu25 at gmail.com
Tue Jun 13 06:59:17 BST 2023


Hi,
Recently, I started using heaptrack to detect memory leaks in my
application. However, I encountered a problem when running heaptrack
on my program. It crashed, and when I debugged it using gdb, I found
that it was failing in the resolveAddress function in
heaptrack_interpret.cpp.

I see that heaptrack requires an unstripped binary to properly print
the frames. Unfortunately, adding debug symbols would significantly
increase the size of the binary, which is not desirable. As a
workaround, I thought of copying the debug symbols to a USB drive and
mounting it, allowing heaptrack to fetch the debug symbols from there.
I am using the Yocto build system.

I would appreciate your guidance or suggestions on whether it is
possible to use heaptrack with a stripped binary. This would greatly
assist me in resolving the issue.

Thanks,
Sindhu


More information about the Heaptrack mailing list