Bug 404633

Summary: Compatibility with ASAN
Product: [Applications] Heaptrack Reporter: alcinos <french.ebook.lover>
Component: generalAssignee: Milian Wolff <mail>
Status: RESOLVED UPSTREAM    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 1.1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description alcinos 2019-02-21 07:39:10 UTC
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
Comment 1 Milian Wolff 2019-03-21 15:59:31 UTC
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 :(