From 035600795480ad7b0785dc37b38bc56371b27ff1 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Tue, 25 Oct 2022 14:38:31 -0700 Subject: [PATCH] Don't try to load libSegFault.so if it doesn't exist glinux seems to have changed, and libsegfault.so isn't available (or at least at that location) anymore. Test: Presubmits Change-Id: Ic94621a2980200f24bf501e543fa6e72b0c71951 --- build_test.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build_test.bash b/build_test.bash index ae53c14e7..eda4bebe1 100755 --- a/build_test.bash +++ b/build_test.bash @@ -48,8 +48,10 @@ source "${TOP}/build/soong/scripts/microfactory.bash" case $(uname) in Linux) - export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so - export SEGFAULT_USE_ALTSTACK=1 + if [[ -f /lib/x86_64-linux-gnu/libSegFault.so ]]; then + export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so + export SEGFAULT_USE_ALTSTACK=1 + fi ulimit -a ;; esac