#!/bin/bash # Take a core dump and try to analyze it with ABRT . <(ffoom init) ffoo import core usage() { usage_is "exename" } while true; do case $1 in -d) FFOO_DEBUG=true ;; "") break ;; *) cmd=$1; shift; ;; esac done test -n "$cmd" || usage exe=$(which $cmd) cmp=$(rpm --queryformat "%{NAME}" -qf $exe) dirname=crash-$cmd debug -v exe cmp mkdir $dirname cp core.* $dirname/coredump cd $dirname # make ABRT feel like home date +%s > time echo CCpp > type echo $cmp > component echo $exe > executable abrt-action-analyze-ccpp-local