RapidFuzz/tools/seg_wrapper.sh

9 lines
203 B
Bash
Executable File

#!/bin/bash
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 || exit ; pwd -P )"
ulimit -c unlimited
"$@"
if [[ $? -eq 139 ]]; then
coredumpctl gdb -1 -A "--batch -x $SCRIPTPATH/backtrace"
fi