Bug 404633 - Compatibility with ASAN
Summary: Compatibility with ASAN
Status: RESOLVED UPSTREAM
Alias: None
Product: Heaptrack
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.1.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Milian Wolff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-21 07:39 UTC by alcinos
Modified: 2019-03-21 15:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 :(