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
diff --git a/test/run-test b/test/run-test
index 486b465..bd8b9e8 100755
--- a/test/run-test
+++ b/test/run-test
@@ -926,6 +926,11 @@
             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