Browse Source

Merge pull request #2596 from citrin/run-gdb-on-core-dump

Run gdb on core dump
tags/1.8.2
Vsevolod Stakhov 5 years ago
parent
commit
63d5a1d00e
No account linked to committer's email address
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      .drone.yml

+ 8
- 0
.drone.yml View File

@@ -42,12 +42,20 @@ pipeline:
group: tests
commands:
- test "$(id -un)" = nobody
- ulimit -c unlimited
# rspamd-test and functional test both use luacov.stats.out file and should be started from
# different directories (if started in parallel)
- cd /rspamd/build/test
- set +e
- ./rspamd-test -p /rspamd/lua; EXIT_CODE=$?
- set -e
# 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;
exit $EXIT_CODE;
fi
# luacov-coveralls reads luacov.stats.out written by rspamd-test using luacov module
# and writes json report for coveralls.io service
- luacov-coveralls -o /rspamd/build/unit_test_lua.json --dryrun

Loading…
Cancel
Save