1
0
This commit is contained in:
sfan5
2023-09-18 17:13:32 +02:00
parent 4ca90e3dfd
commit 275e152523
5 changed files with 65 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
aflout=out/default
myout=out_rep
exe=./bin/Linux/LoadTexture
exe=./bin/Linux/LoadMesh
rm -rf "$myout" && mkdir -p "$myout"
find $aflout/crashes -name 'id:*' -print | \
while read file; do
@@ -14,7 +14,7 @@ while read file; do
if grep -Fq '==ERROR: AddressSanitizer: SEGV on unknown address' "$fout"; then
gdb -q --batch -iex 'set confirm off' -ex r -ex bt --args \
${exe}_noasan "$file" >"$fout" 2>&1
if grep -q '^Thread.*received signal'; then
if grep -Eq '^(Thread|Program).*received signal' "$fout"; then
cp "$file" "$myout/$short.bin"
echo "✔ Reproduced (gdb)"
else