Skip to content

Commit 7b7c124

Browse files
authored
ci: Show stack trace on crash (#3538)
1 parent 046217b commit 7b7c124

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/actions/setup-linux/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
echo "::group::Install common dependencies"
2828
sudo apt-get update
2929
sudo apt-get install -y --no-install-recommends \
30-
zip \
30+
gdb zip \
3131
libblas-dev liblapack-dev liblapacke-dev \
3232
openmpi-bin openmpi-common libopenmpi-dev
3333
echo "::endgroup::"

.github/actions/test-linux/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,15 @@ runs:
6767
echo "::group::CPP tests - GPU"
6868
./build/tests/tests -sfe="*linalg_tests.cpp"
6969
echo "::endgroup::"
70+
71+
- name: Show stack trace on crash
72+
if: failure()
73+
shell: bash
74+
run: |
75+
echo "::group::Show stack trace on crash"
76+
set +e
77+
sleep 10
78+
if coredumpctl list; then
79+
coredumpctl debug --debugger-arguments="-batch -ex 'thread apply all bt'"
80+
fi
81+
echo "::endgroup::"

0 commit comments

Comments
 (0)