File backtrace of Package segv_handler

#!/bin/sh

# we want everything on stderr, so the program is not disturbed
exec 1>&2

PID=$1
TMPFILE=/tmp/gdb.$$
cat << EOF  > $TMPFILE
set height 0
bt full
quit
EOF
gdb -batch -x $TMPFILE /proc/$PID/exe $PID < /dev/null 
/bin/rm -f $TMPFILE
openSUSE Build Service is sponsored by