Commit 546f65ff authored by Ondřej Surý's avatar Ondřej Surý Committed by Michał Kępień

Dump the backtrace to stdout when core is found in systest directory

(cherry picked from commit 512dadc8)
parent 89a3fcab
thread apply all bt full
......@@ -200,6 +200,18 @@ else
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
echoinfo "D:$systest:backtrace from $coredump start"
binary="`gdb --batch --core="$coredump" | sed -ne "s/Core was generated by .//;s/ .*'.$//p;"`"
"$TOP/libtool" --mode=execute gdb \
--batch \
--command=run.gdb \
--core="$coredump" \
-- \
echoinfo "D:$systest:backtrace from $coredump end"
elif [ $assertion_failures -ne 0 ]; then
echoinfo "I:$systest:Test claims success despite $assertion_failures assertion failure(s)"
echofail "R:$systest:FAIL"
......@@ -2193,6 +2193,7 @@
./bin/tests/system/rsabigexponent/ SH 2012,2014,2016,2018,2019,2020
./bin/tests/system/rsabigexponent/ SH 2012,2014,2016,2018,2019,2020
./bin/tests/system/rsabigexponent/ SH 2012,2016,2018,2019,2020
./bin/tests/system/run.gdb X 2019,2020
./bin/tests/system/ SH 2000,2001,2004,2007,2010,2012,2014,2015,2016,2017,2018,2019,2020
./bin/tests/system/ SH 2000,2001,2004,2007,2010,2011,2012,2014,2015,2016,2018,2019,2020
./bin/tests/system/ SH 2018,2019,2020
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment