Skip to content
Snippets Groups Projects
Commit 5552ff69 authored by Julien Leduc's avatar Julien Leduc
Browse files

Adding script to generate backtrace for cta-taped

parent 99c19593
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
for COREFILE in $(ls /var/log/tmp/*cta-tpd-*.core); do
test -z ${COREFILE} && (echo "NO COREFILE FOUND, EXITING"; exit 1)
echo "PROCESSING COREFILE: ${COREFILE}"
yum install -y xrootd-debuginfo cta-debuginfo
cat <<EOF > /tmp/ctabt.gdb
file /usr/bin/cta-taped
core ${COREFILE}
thread apply all bt
quit
EOF
gdb -x /tmp/ctabt.gdb > ${COREFILE}.bt
echo "BACKTRACE AVAILABLE IN ${COREFILE}.bt"
done
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment