mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-27 17:17:22 -04:00
Detect cores on FreeBSD
This commit is contained in:
parent
eb524d27d9
commit
38277ddb0b
1 changed files with 2 additions and 2 deletions
|
|
@ -189,13 +189,13 @@ if [ $status != 0 ]; then
|
|||
echofail "R:$systest:FAIL"
|
||||
# Do not clean up - we need the evidence.
|
||||
else
|
||||
core_dumps="$(find $systest/ -name 'core*' | sort | tr '\n' ' ')"
|
||||
core_dumps="$(find $systest/ -name 'core*' -or -name '*.core' | sort | tr '\n' ' ')"
|
||||
assertion_failures=$(find $systest/ -name named.run | xargs grep "assertion failure" | wc -l)
|
||||
if [ -n "$core_dumps" ]; then
|
||||
echoinfo "I:$systest:Test claims success despite crashes: $core_dumps"
|
||||
echofail "R:$systest:FAIL"
|
||||
# Do not clean up - we need the evidence.
|
||||
find "$systest/" -name 'core*' | while read -r coredump; do
|
||||
find "$systest/" -name 'core*' -or -name '*.core' | while read -r coredump; do
|
||||
SYSTESTDIR="$systest"
|
||||
echoinfo "D:$systest:backtrace from $coredump start"
|
||||
binary=$(gdb --batch --core="$coredump" | sed -ne "s/Core was generated by \`//;s/ .*'.$//p;")
|
||||
|
|
|
|||
Loading…
Reference in a new issue