mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
17 lines
335 B
Bash
17 lines
335 B
Bash
#!/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
|