[PATCH] D35085: Respect exitcode sanitizer option in UBSan
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 15:15:49 PDT 2017
eugenis added a comment.
ASan has a mode where it does not exit after the first error, -fsanitize-recover=address and ASAN_OPTIONS=halt_on_error=0. It appears that the errorcode flag is ignored in that mode.
I think TSan does the right thing here. How about this:
- intercept exit() in asan and ubsan
- put HasReportedError somewhere in sanitizer_common, and use it all sanitizers.
https://reviews.llvm.org/D35085
More information about the llvm-commits
mailing list