You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building the code with ASan, LSan gets linked into the resulting binary, but LSan options aren't printed:
$ cat t.cc
int main() {
return 0;
}
$ clang++ t.cc -o t -fsanitize=leak
# No output, ASAN_OPTIONS are ignored.
$ ASAN_OPTIONS=help=1 ./t
# LSan options are printed as expected.
$ LSAN_OPTIONS=help=1 ./t 2>&1 | grep use_globals
use_globals
$ clang++ t.cc -o t -fsanitize=address
# Only ASan options are printed, despite LSan is enabled.
$ ASAN_OPTIONS=help=1 ./t 2>&1 | grep use_globals
# Only ASan options are printed, despite LSan is enabled.
$ LSAN_OPTIONS=help=1 ./t 2>&1 | grep use_globals
$ clang++ t.cc -o t -fsanitize=address,leak
# Only ASan options are printed, despite LSan is enabled.
$ ASAN_OPTIONS=help=1 ./t 2>&1 | grep use_globals
# Only ASan options are printed, despite LSan is enabled.
$ LSAN_OPTIONS=help=1 ./t 2>&1 | grep use_globals
The text was updated successfully, but these errors were encountered:
When building the code with ASan, LSan gets linked into the resulting binary, but LSan options aren't printed:
The text was updated successfully, but these errors were encountered: