Skip to content

Commit

Permalink
If opensips -C fails with a signal, run it with gdb and display backt…
Browse files Browse the repository at this point in the history
…race.
  • Loading branch information
sobomax committed Oct 9, 2024
1 parent 419fc63 commit 079f542
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,16 @@ start_mm() {
-DOPENSIPS_VER_FULL=${MM_VER_FULL} -DNRET=${nret}
done
set +e
${MM_BIN} -f "${MM_CFG}" -C
if ! ${MM_BIN} -f "${MM_CFG}" -C
then
status=${?}
if [ ${status} -gt 127 ]
then
apt install -y gdb
gdb --batch -ex "run" -ex "bt" --args ${MM_BIN} -f "${MM_CFG}" -C
fi
exit ${status}
fi
MM_DRUN_RC="${?}"
report_rc_log "${MM_DRUN_RC}" "${MM_CFG}" "Checking ${MM_TYPE} config"
set -e
Expand Down

0 comments on commit 079f542

Please sign in to comment.