llvm-project/llvm/utils
Evgenii Stepanov 4f0b0bf5c6 Cherry-pick gtest fix for asan tests.
Summary:
681454dae4

Clone+exec death test allocates a single page of stack to run chdir + exec on.
This is not enough when gtest is built with ASan and run on particular
hardware.

With ASan on x86_64, ExecDeathTestChildMain has frame size of 1728 bytes.

Call to chdir() in ExecDeathTestChildMain ends up in
_dl_runtime_resolve_xsavec, which attempts to save register state on the stack;
according to cpuid(0xd) XSAVE register save area size is 2568 on my machine.

This results in something like this in all death tests:
  Result: died but not with expected error.
  ...
  [  DEATH   ] AddressSanitizer:DEADLYSIGNAL
  [  DEATH   ] =================================================================
  [  DEATH   ] ==178637==ERROR: AddressSanitizer: stack-overflow on address ...

PiperOrigin-RevId: 278709790

Reviewers: pcc

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70332
2019-11-20 14:12:51 -08:00
..
FileCheck [FileCheck] Implement --ignore-case option. 2019-10-11 11:59:14 +00:00
KillTheDoctor
LLVMVisualizers Clean up MSVC visualization of LLVM pointer types 2019-06-30 21:54:34 +00:00
Misc
PerfectShuffle
Reviewing find_interesting_reviews.py: avoid crash on non-ascii data. 2019-11-08 14:51:36 +00:00
TableGen [SVE][CodeGen] Scalable vector MVT size queries 2019-11-18 12:30:59 +00:00
Target/ARM
UpdateTestChecks [UptestTestChecks][NFC] Share some common command line options code 2019-11-20 13:23:26 +00:00
benchmark [benchmark] Fix win32 link on case-sensitive fs 2019-07-30 20:47:59 +00:00
bugpoint
count
crosstool
docker
emacs [NFC][emacs] remove out-of-date comment from tablegen-mode.el 2019-09-26 19:36:01 +00:00
fpcmp
gdb-scripts Fix GDB pretty printer for Optional after r354246 2019-05-28 20:22:16 +00:00
git-svn git-llvm: Drop dependency on github module 2019-10-25 00:04:31 -07:00
gn gn build: Merge a03435ec8e 2019-11-20 15:28:09 +00:00
jedit
kate [kate] Add various missing keywords 2019-11-19 09:54:07 +00:00
lint
lit Fix up lit's tests to run in a multi-config build environment. 2019-11-14 11:24:41 -08:00
llvm-build Write the RequiredLibraries for 'all' in LibraryDependencies.inc in a deterministic order (PR42739) 2019-08-05 13:04:07 +00:00
llvm-lit
llvm-locstats [llvm-locstats] Fix 'only params' no entry value stats 2019-10-15 10:12:14 +00:00
not
release test-release.sh: Update to fetch source from GitHub 2019-11-19 11:13:05 -08:00
sanitizers
testgen
textmate
unittest Cherry-pick gtest fix for asan tests. 2019-11-20 14:12:51 -08:00
valgrind
vim [X86] Add new calling convention that guarantees tail call optimization 2019-10-07 22:28:58 +00:00
vscode
yaml-bench
DSAclean.py
DSAextract.py
GenLibDeps.pl [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00
GetRepositoryPath
GetSourceVersion
LLVMBuild.txt
UpdateCMakeLists.pl
abtest.py
add_argument_names.py IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
bisect [utils] Fix incompatibility of bisect[-skip-count] with Python 3 2019-10-04 16:44:18 +00:00
bisect-skip-count [utils] Fix incompatibility of bisect[-skip-count] with Python 3 2019-10-04 16:44:18 +00:00
bugpoint_gisel_reducer.py
check-each-file
chunk-print-before-all.py [Util] Add a helper script for converting -print-before-all output into a file based equivelent 2019-06-19 22:05:47 +00:00
clang-parse-diagnostics-file
codegen-diff
collect_and_build_with_pgo.py
countloc.sh
create_ladder_graph.py
demangle_tree.py
extract_symbols.py Use portable flag with nm in extract_symbols.py 2019-10-23 16:48:22 -04:00
extract_vplan.py
findmisopt
findoptdiff
findsym.pl
getsrcs.sh
indirect_calls.py
lldbDataFormatters.py Add LLDB dataformatters for llvm::StringRef and lldb_private::ConstString 2019-08-16 23:47:57 +00:00
llvm-compilers-check
llvm-gisel-cov.py
llvm-native-gxx
llvm.grm
llvmdo
llvmgrep
prepare-code-coverage-artifact.py svn propset svn:executable on utils/prepare-code-coverage-artifact.py 2019-06-04 23:35:07 +00:00
schedcover.py
shuffle_fuzz.py
shuffle_select_fuzz_tester.py
sort_includes.py
unicode-case-fold.py
update_analyze_test_checks.py [UptestTestChecks][NFC] Share some common command line options code 2019-11-20 13:23:26 +00:00
update_cc_test_checks.py [update_cc_test_checks.py] Add the --function-signature flag 2019-11-20 13:23:26 +00:00
update_llc_test_checks.py [UptestTestChecks][NFC] Share some common command line options code 2019-11-20 13:23:26 +00:00
update_mca_test_checks.py [UptestTestChecks][NFC] Share some common command line options code 2019-11-20 13:23:26 +00:00
update_mir_test_checks.py [UptestTestChecks][NFC] Share some common command line options code 2019-11-20 13:23:26 +00:00
update_test_checks.py [UptestTestChecks][NFC] Share some common command line options code 2019-11-20 13:23:26 +00:00
wciia.py