Commit cae8a85b authored by Julien Leduc's avatar Julien Leduc
Browse files

Adding script to generate backtrace for cta-taped

parent 2e0330fb
#!/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
Supports Markdown
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