diff options
author | Dan Willemsen <dwillemsen@google.com> | 2017-10-09 16:08:30 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2017-10-10 01:31:21 +0000 |
commit | 89479facb9d8dbd7fb2838128b08a9fc5e74fe57 (patch) | |
tree | 581ca5762e8716b9701c1355d430d22ebe4389e1 | |
parent | 2675f5648b8089dca5543b9086ecbacf113508f7 (diff) | |
download | build_soong-89479facb9d8dbd7fb2838128b08a9fc5e74fe57.tar.gz build_soong-89479facb9d8dbd7fb2838128b08a9fc5e74fe57.tar.bz2 build_soong-89479facb9d8dbd7fb2838128b08a9fc5e74fe57.zip |
Get some more debugging for ckati crashes
The crash we're following is likely a stack overflow. Use an alternate
stack to actually get the backtraces.
Also write out ulimit to reference what the stack size should be.
Bug: 36182021
Test: ulimit -s 768; build/soong/build_test.bash
Change-Id: I8826e5e53f38af552c8b80a1a8a490fde55f2d4b
-rwxr-xr-x | build_test.bash | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build_test.bash b/build_test.bash index 6edaa660..4c43224c 100755 --- a/build_test.bash +++ b/build_test.bash @@ -34,6 +34,8 @@ 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 + ulimit -a ;; esac |