SUMMARY It seems that it is impossible to use Heaptrack with asan linked. I get empty stats when I try (0 allocations), and I assume this is because of Asan's instrumentation of the alloc/dealloc primitives. Is there any known workaround to this? Thanks in advance
I would also love to be able to check the heaptrack internals with ASAN - which isn't possible due to the issue you mention. In the tests I have separated most of this, such that I can run most of the internal code with ASAN enabled. But the symbol overloading logic cannot be checked - I never made it work. If you figure out how to play nice with ASAN I'd be all ears. For now, there's nothing I can do. Sorry! I'd love to give you a different answer, but right now I don't see any alternative :(