From e7efcbe34e44fde735d17a0875349171a0578bcb Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 20 Jun 2017 23:27:45 -0700 Subject: [PATCH] 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 Change-Id: I854ae846df0c47f69ec8d39b9a3d9e6f482e0854 --- build_test.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build_test.bash b/build_test.bash index f83336667..ab841cb0f 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" "$@"