#!/bin/bash # core.COMM.PID-TID sysctl kernel.core_pattern='core.%e.%p-%P' # ASAN doesn't work with suid_dumpable=2 sysctl fs.suid_dumpable=1 function collect_core_dumps() { find . -type f -maxdepth 1 -name 'core.*' | while read -r core; do zstd --threads=0 "$core" mv "$core.zst" /test_output/ done } # vi: ft=bash