[PATCH] D54905: [AddressSanitizer] Add flag to disable linking with CXX runtime

Kostya Serebryany via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 29 08:26:00 PST 2018


kcc added a comment.

In D54905#1312386 <https://reviews.llvm.org/D54905#1312386>, @evgeny777 wrote:

> Unfortunately, this is not an option. I have very custom heap implementation (in fact multiple heap types sharing contiguous memory block), so ASAN heap can't be a drop-in replacement. I'm using manual poisoning and it works pretty well,


It may appear to work well, but still be less powerful than what ASAN does for the regular malloc. 
Do you have readzones? quarantine? [de]allocation stack traces?

>   but have to disable C++ runtime each time I build with ASAN.

How do you do this now?

> Another problem is ASANing libcxx tests because of overridden new operator (count_new.hpp). I think it makes sense to have counterpart for `-fsanitize-link-c++-runtime`, no?

Is that related to https://github.com/google/sanitizers/issues/295 ?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54905/new/

https://reviews.llvm.org/D54905





More information about the cfe-commits mailing list