diff options
author | Dan Willemsen <dwillemsen@google.com> | 2017-06-20 23:27:45 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2017-06-20 23:27:45 -0700 |
commit | e7efcbe34e44fde735d17a0875349171a0578bcb (patch) | |
tree | abda0c6d21cf5ab2a490b4a27da1b2de4559b38b | |
parent | 83cf1cee583dc50c928ea27082e54aa815932ea4 (diff) | |
download | build_soong-e7efcbe34e44fde735d17a0875349171a0578bcb.tar.gz build_soong-e7efcbe34e44fde735d17a0875349171a0578bcb.tar.bz2 build_soong-e7efcbe34e44fde735d17a0875349171a0578bcb.zip |
Capture backtraces during build_test
We're seeing random ckati segfaults, and ASAN only hides the problem, so
attempt to capture more information.
Bug: 36182021
Test: build/soong/build_test.bash, kill -SIGSEGV <ckati>
Change-Id: I854ae846df0c47f69ec8d39b9a3d9e6f482e0854
-rwxr-xr-x | build_test.bash | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build_test.bash b/build_test.bash index f8333666..ab841cb0 100755 --- a/build_test.bash +++ b/build_test.bash @@ -30,5 +30,11 @@ export TRACE_BEGIN_SOONG=$(date +%s%N) export TOP=$(cd $(dirname ${BASH_SOURCE[0]})/../..; PWD= /bin/pwd) source "${TOP}/build/soong/cmd/microfactory/microfactory.bash" +case $(uname) in + Linux) + export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so + ;; +esac + build_go multiproduct_kati android/soong/cmd/multiproduct_kati exec "$(getoutdir)/multiproduct_kati" "$@" |