| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
sanitizer_flags.cc
llvm-svn: 204342
|
|
|
|
|
|
|
|
|
| |
Extend ParseFlag to accept the |description| parameter, add dummy values for all existing flags.
As the flags are parsed their descriptions are stored in a global linked list.
The tool can later call __sanitizer::PrintFlagDescriptions() to dump all the flag names and their descriptions.
Add the 'help' flag and make ASan, TSan and MSan print the flags if 'help' is set to 1.
llvm-svn: 204339
|
|
|
|
|
|
|
|
|
|
|
| |
Make behavior introduced in r202820 conditional (under legacy_pthread_cond flag).
The new issue that we've hit with the satellite pthread_cond_t struct is
that pthread_condattr_getpshared does not work (satellite data is not shared between processes).
The idea is that most processes do not use pthread 2.2.5.
The rare ones that use (2.2.5 is dated by 2002) must specify legacy_pthread_cond=1
on their own risk.
llvm-svn: 204032
|
|
|
|
| |
llvm-svn: 202249
|
|
|
|
|
|
| |
little stack; add common flag 'detect_deadlocks'
llvm-svn: 201405
|
|
|
|
|
|
|
|
|
|
| |
This is covered by existing ASan test.
This does not change anything for TSan by default (but provides a flag to
change the threshold size).
Based on a patch by florent.bruneau here:
https://code.google.com/p/address-sanitizer/issues/detail?id=256
llvm-svn: 201400
|
|
|
|
|
|
| |
llvm-symbolizer is unavailable. Allow this mode in TSan.
llvm-svn: 201218
|
|
|
|
|
|
| |
Go linker does not like function-static objects.
llvm-svn: 200534
|
|
|
|
|
|
| |
This change is a part of refactoring intended to have common signal handling behavior in all tools.
llvm-svn: 200295
|
|
|
|
|
|
|
|
|
|
| |
Intercept and sanitize arguments passed to printf functions in ASan and TSan
(don't do this in MSan for now). The checks are controlled by runtime flag
(off by default for now).
Patch http://llvm-reviews.chandlerc.com/D2480 by Yuri Gribov!
llvm-svn: 199729
|
|
|
|
|
|
|
|
|
| |
If 'symbolize' flag is not set, we still want to transform virtual address
to module+offset pair in the call to Symbolizer::SymbolizeCode().
See https://code.google.com/p/address-sanitizer/issues/detail?id=251 for
more details.
llvm-svn: 197491
|
|
|
|
|
|
|
|
| |
- running_on_valgrind was not parsed in some contexts
- refactor code a bit
- add comprehensive tests for flags parsing
llvm-svn: 195831
|
|
|
|
|
|
|
|
|
| |
1) Don't start external symbolizer subprocess until we actually try to
symbolize anything.
2) Allow to turn off external symbolizer by providing empty ?SAN_SYMBOLIZER_PATH
environment variable.
llvm-svn: 195771
|
|
|
|
|
|
| |
doesn't need them)
llvm-svn: 194685
|
|
|
|
| |
llvm-svn: 194479
|
|
|
|
| |
llvm-svn: 193236
|
|
|
|
| |
llvm-svn: 192704
|
|
|
|
| |
llvm-svn: 192692
|
|
|
|
|
|
| |
with one-frame stack traces
llvm-svn: 192428
|
|
|
|
|
|
| |
(controlled by the allocator_may_return_null flag)
llvm-svn: 190127
|
|
|
|
|
|
|
|
| |
We needed a way to tell LSan to invoke leak checking only if __do_leak_check()
is called explicitly. This can now be achieved by setting
leak_check_at_exit=false.
llvm-svn: 187578
|
|
|
|
|
|
| |
Also move detect_leaks to common flags.
llvm-svn: 186821
|
|
|
|
| |
llvm-svn: 184836
|
|
|
|
|
|
|
| |
ASan: disabled by default
MSan: enabled by default
TSan: disabled
llvm-svn: 183517
|
|
|
|
| |
llvm-svn: 182857
|
|
|
|
|
|
|
| |
Some flags that are common to ASan/MSan/TSan/LSan have been moved to
sanitizer_common.
llvm-svn: 181193
|
|
|
|
|
|
| |
(e.g. suppressions and print_suppressions)
llvm-svn: 178158
|
|
|
|
| |
llvm-svn: 175511
|
|
|
|
| |
llvm-svn: 162676
|
|
|
|
|
|
| |
malloc() before ASan/TSan initialization is done
llvm-svn: 162673
|
|
common runtime.
llvm-svn: 159928
|