Skip to content

Commit

Permalink
ci: debug coredump bt
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Sep 4, 2023
1 parent 24065b0 commit 85a025f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ jobs:
- name: gdb bt
if: failure()
run: |
set -x
which gdb || sudo apt install gdb
corefile=$(find _build/test -name core)
if [ -n $corefile ]; then
corefile=$(find _build/test -name core.*)
if [ -n "$corefile" ]; then
echo "found corefile: $corefile";
gdb -ex bt $(erl -noshell -eval 'io:format(code:root_dir()),halt()')/erts-*/bin/beam.smp "${corefile}"
else
echo "No coredump found"
Expand Down

0 comments on commit 85a025f

Please sign in to comment.