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
This commit is contained in:
@@ -48,8 +48,10 @@ source "${TOP}/build/soong/scripts/microfactory.bash"
|
|||||||
|
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
Linux)
|
Linux)
|
||||||
export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
|
if [[ -f /lib/x86_64-linux-gnu/libSegFault.so ]]; then
|
||||||
export SEGFAULT_USE_ALTSTACK=1
|
export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
|
||||||
|
export SEGFAULT_USE_ALTSTACK=1
|
||||||
|
fi
|
||||||
ulimit -a
|
ulimit -a
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user