- set +e
- ./rspamd-test -p /rspamd/lua; EXIT_CODE=$?
- set -e
- # shell sets exit status of a process that terminated by a signal to '128 + signal-number'
+ # shell sets exit status of a process terminated by a signal to '128 + signal-number'
+ # if rspamd-test was terminated by a signal it should be SIGSEGV or SIGABRT, try to examine core
- >
if [ $EXIT_CODE -gt 128 ];
then gdb -c /var/tmp/*.rspamd-test.core ./rspamd-test -ex "set pagination 0" -ex "thread apply all bt full" --batch;