18 lines
557 B
Bash
18 lines
557 B
Bash
|
|
#!/bin/bash
|
||
|
|
for seed in $(seq 10000 10200); do
|
||
|
|
./bench_random_mixed_hakmem 100000 512 $seed >/tmp/bench_out.log 2>&1
|
||
|
|
exit_code=$?
|
||
|
|
if [ $exit_code -eq 139 ]; then
|
||
|
|
echo "=== CRASH DETECTED on seed $seed ==="
|
||
|
|
echo "Last 30 lines of output:"
|
||
|
|
tail -30 /tmp/bench_out.log
|
||
|
|
echo "=== Saved to crash_output.log ==="
|
||
|
|
cp /tmp/bench_out.log crash_output.log
|
||
|
|
exit 0
|
||
|
|
fi
|
||
|
|
if [ $((seed % 20)) -eq 0 ]; then
|
||
|
|
echo "Tested $((seed - 10000)) seeds..."
|
||
|
|
fi
|
||
|
|
done
|
||
|
|
echo "No crash found in 200 attempts"
|