]> git.proxmox.com Git - mirror_zfs.git/blobdiff - scripts/zloop.sh
Support -fsanitize=address with --enable-asan
[mirror_zfs.git] / scripts / zloop.sh
index afcd87f3626d85dfcb2e64507f6b57d5112e819c..b6f6fc994d59308741fc4421c19bb6511f16fe46 100755 (executable)
@@ -30,6 +30,7 @@ fi
 
 # shellcheck disable=SC2034
 PROG=zloop.sh
+GDB=${GDB:-gdb}
 
 DEFAULTWORKDIR=/var/tmp
 DEFAULTCOREDIR=/var/tmp/zloop
@@ -182,6 +183,7 @@ shift $((OPTIND - 1))
 
 # enable core dumps
 ulimit -c unlimited
+export ASAN_OPTIONS=abort_on_error=1:disable_coredump=0
 
 if [[ -f "$(core_file)" ]]; then
        echo -n "There's a core dump here you might want to look at first... "