summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2019-11-15 11:30:14 -0800
committerEvgenii Stepanov <eugenis@google.com>2019-11-20 14:12:51 -0800
commit4f0b0bf5c6731e3d370558be08c9261801263b09 (patch)
tree49fb461c63c2d9452e2a72799b9dbc81f512e455 /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
parent4a801170f36a2eed13a42730c83cd7bc57729f55 (diff)
downloadbcm5719-llvm-4f0b0bf5c6731e3d370558be08c9261801263b09.tar.gz
bcm5719-llvm-4f0b0bf5c6731e3d370558be08c9261801263b09.zip
Cherry-pick gtest fix for asan tests.
Summary: https://github.com/google/googletest/commit/681454dae48f109abf68c424c9d2e6db9a092238 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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud