RapidFuzz/tools/seg_wrapper.sh

9 lines
195 B
Bash
Raw Normal View History

2022-02-19 15:43:06 +00:00
#!/bin/bash
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
ulimit -c unlimited
"$@"
if [[ $? -eq 139 ]]; then
coredumpctl gdb -1 -A "--batch -x $SCRIPTPATH/backtrace"
fi