diff options
| author | 2017-07-31 10:30:16 -0700 | |
|---|---|---|
| committer | 2017-07-31 22:14:45 +0000 | |
| commit | e79ca19f6df6d24bd0e48a572602118a6b45ee3a (patch) | |
| tree | 10f1ca19f58ac9e2a334ed663ea0ff1fa80fb234 | |
| parent | 7f14c2ec37c70010d99cab6806d85018df56c555 (diff) | |
ART: Add symbolization on SANITIZE_HOST failures
Add a call to development/scripts/stack on failures for SANITIZE_HOST,
as AddressSanitizer does not symbolize its output by itself.
Bug: 31098551
Bug: 64221719
Bug: 64125492
Test: m test-art-host
Test: manual test with failure introduced
Change-Id: Ic66059d2bb7a40da1b5d03d52b30579d39bd9d98
| -rwxr-xr-x | test/run-test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/run-test b/test/run-test index 486b465a89..bd8b9e88ca 100755 --- a/test/run-test +++ b/test/run-test @@ -926,6 +926,11 @@ fi tail -n 3000 "$tmp_dir/$strace_output" echo '####################' fi + if [ "x$target_mode" = "xno" -a "x$SANITIZE_HOST" = "xaddress" ]; then + # Run the stack script to symbolize any ASAN aborts on the host for SANITIZE_HOST. The + # tools used by the given ABI work for both x86 and x86-64. + echo "ABI: 'x86_64'" | cat - "$output" | $ANDROID_BUILD_TOP/development/scripts/stack | tail -n 3000 + fi echo ' ' fi |