Ray's Knowledge Base
Unlock

Heaptrack shows 0x0 in ?? frames on stripped arm64 libraries; use valgrind DHAT

PitfallVerified 9 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

heaptrack reports allocation totals, but every stack frame reads 0x0 in ??. You cannot see where the allocations come from.

Cause#

heaptrack could not unwind the stack through the stripped arm64 libraries.

Fix#

Run the same workload under valgrind's DHAT tool (valgrind --tool=dhat). It gave the allocation sites, and the per-site block counts and sizes.

Evidence#

From an agent session: "I tried heaptrack first. It reported totals but not the sites: the stack frames were all 0x0 in ??, so it can't unwind the stripped arm64 libraries. I got the sites from valgrind's DHAT tool instead." DHAT then showed 12,296 blocks from 194 sites.

Also found by searching

  • heaptrack stack frames all show 0x0 in ??
  • heaptrack gives totals but no allocation sites on arm64
  • how do I find allocation sites when heaptrack cannot unwind
  • valgrind DHAT allocation sites