[llvm-dev] Using Multiple Sanitizers on one program
Alexander Potapenko via llvm-dev
llvm-dev at lists.llvm.org
Mon Mar 21 06:08:48 PDT 2016
On Mon, Mar 21, 2016 at 1:22 PM, Yury Gribov via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> On 03/21/2016 01:48 PM, Nathan Schagen via llvm-dev wrote:
>> Hi LLVM people,
>> Not sure whether this is the best place to ask this.
>> Given the source of a program, I would like to detect both uninitialized
>> reads and out-of-bounds memory accesses. The latter can be done with the
>> Address Sanitizer (ASan) and the first using the Memory Sanitizer (MSan).
>> Is there a way to use both at the same time? The --fsanitize option only
>> seems support one of these. What is the reason for this restriction?
> Hi Nathan,
> This has been raised several times and conclusion is that this is unlikely
> to happen due to design limitations. The only possible combination is
To elaborate, the slowdowns imposed by both tools will add up, making
time-sensitive code even more fragile.
The combination of ASan and TSan or MSan will require substantially
more memory (ASan bloats heap and stack by adding redzones, other
tools multiply the memory footprint by a constant factor), which will
also slow everything down.
>> Kind regards,
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
More information about the llvm-dev