You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add multiple worker configurations in docker-compose; update sync interval to 300 seconds; enhance scripts to filter FUZZILLI_CRASH test cases and dynamically handle multiple postgres-local containers.
local crash_hashes=$(docker exec"$container" psql -U fuzzilli -d "$database" -t -c "SELECT DISTINCT e.program_hash FROM execution e JOIN execution_outcome eo ON e.execution_outcome_id = eo.id WHERE eo.outcome = 'Crashed' ORDER BY e.program_hash;"2>/dev/null | grep -v '^$'| sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
60
+
# Exclude only signal_code = 3 (FUZZILLI_CRASH test cases)
61
+
# Show all other crashes including signal 11 and all other signals
62
+
local crash_hashes=$(docker exec"$container" psql -U fuzzilli -d "$database" -t -c "SELECT DISTINCT e.program_hash FROM execution e JOIN execution_outcome eo ON e.execution_outcome_id = eo.id WHERE eo.outcome = 'Crashed' AND (e.signal_code IS NULL OR e.signal_code != 3) ORDER BY e.program_hash;"2>/dev/null | grep -v '^$'| sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
31
63
32
64
if [ -z"$crash_hashes" ];then
33
65
echo -e "${YELLOW}No crashes found for Worker ${worker_num}${NC}"
# Get execution details first to check signal code
77
+
# Exclude only signal 3 (FUZZILLI_CRASH test cases), show all others including signal 11
78
+
local exec_details=$(docker exec"$container" psql -U fuzzilli -d "$database" -t -c "SELECT e.execution_id, e.signal_code, e.exit_code, eo.description, e.created_at FROM execution e JOIN execution_outcome eo ON e.execution_outcome_id = eo.id WHERE e.program_hash = '${hash}' AND eo.outcome = 'Crashed' AND (e.signal_code IS NULL OR e.signal_code != 3) ORDER BY e.created_at DESC LIMIT 1;"2>/dev/null)
45
79
46
-
# Get execution details
47
-
local exec_details=$(docker exec"$container" psql -U fuzzilli -d "$database" -t -c "SELECT e.execution_id, e.signal_code, e.exit_code, eo.description, e.created_at FROM execution e JOIN execution_outcome eo ON e.execution_outcome_id = eo.id WHERE e.program_hash = '${hash}' AND eo.outcome = 'Crashed' ORDER BY e.created_at DESC LIMIT 1;"2>/dev/null)
80
+
# Skip if no execution details found (shouldn't happen, but safety check)
81
+
if [ -z"$exec_details" ];then
82
+
continue
83
+
fi
84
+
85
+
# Get and decode the JavaScript to check for FUZZILLI_CRASH
86
+
local base64_program=$(docker exec"$container" psql -U fuzzilli -d "$database" -t -c "SELECT program_base64 FROM program WHERE program_hash = '${hash}';"2>/dev/null | tr -d ' \n\r')
87
+
88
+
# Check if program contains FUZZILLI_CRASH pattern
89
+
if [ -n"$base64_program" ];then
90
+
local decoded_program=$(echo "$base64_program"| base64 -d 2>/dev/null)
Copy file name to clipboardExpand all lines: Scripts/show-stats.sh
+47-20Lines changed: 47 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -58,36 +58,54 @@ get_db_stats() {
58
58
local execution_count=$(docker exec"$container" psql -U fuzzilli -d "$database" -t -c "SELECT COUNT(*) FROM execution;"2>/dev/null | tr -d ''||echo"0")
59
59
local program_table_count=$(docker exec"$container" psql -U fuzzilli -d "$database" -t -c "SELECT COUNT(*) FROM program;"2>/dev/null | tr -d ''||echo"0")
60
60
61
-
# Crash count
62
-
local crash_count=$(docker exec"$container" psql -U fuzzilli -d "$database" -t -c "SELECT COUNT(*) FROM execution e JOIN execution_outcome eo ON e.execution_outcome_id = eo.id WHERE eo.outcome = 'Crashed';"2>/dev/null | tr -d ''||echo"0")
61
+
# Crash count (excluding only FUZZILLI_CRASH test cases with signal 3)
62
+
# Show all other crashes including signal 11 and all other signals
63
+
local crash_count=$(docker exec"$container" psql -U fuzzilli -d "$database" -t -c "SELECT COUNT(*) FROM execution e JOIN execution_outcome eo ON e.execution_outcome_id = eo.id WHERE eo.outcome = 'Crashed' AND (e.signal_code IS NULL OR e.signal_code != 3);"2>/dev/null | tr -d ''||echo"0")
63
64
64
65
echo -e "${YELLOW}Statistics:${NC}"
65
66
echo" Programs (corpus): $program_count"
66
67
echo" Programs (executed): $program_table_count"
67
68
echo" Executions: $execution_count"
68
-
echo" Crashes: $crash_count"
69
+
echo" Crashes (excluding test cases - signal 3): $crash_count"
69
70
70
71
# Recent activity (last 5 programs)
71
72
echo -e "${YELLOW}Recent Programs (last 5):${NC}"
72
73
docker exec"$container" psql -U fuzzilli -d "$database" -c "SELECT program_hash, program_size, created_at FROM fuzzer ORDER BY created_at DESC LIMIT 5;"2>/dev/null ||echo" No programs found"
73
74
74
-
# Crash details
75
+
# Crash details (excluding only FUZZILLI_CRASH test cases - signal 3)
76
+
# Show all other crashes including signal 11 and all other signals
75
77
if [ "$crash_count"!="0" ] && [ "$crash_count"!="" ];then
76
-
echo -e "${YELLOW}Crashes (last 3):${NC}"
77
-
docker exec"$container" psql -U fuzzilli -d "$database" -c "SELECT e.execution_id, e.program_hash, e.execution_time_ms, e.signal_code, e.exit_code, eo.description, e.created_at FROM execution e JOIN execution_outcome eo ON e.execution_outcome_id = eo.id WHERE eo.outcome = 'Crashed' ORDER BY e.created_at DESC LIMIT 3;"2>/dev/null ||echo" No crash details available"
78
+
echo -e "${YELLOW}Crashes (last 3, excluding test cases - signal 3):${NC}"
79
+
docker exec"$container" psql -U fuzzilli -d "$database" -c "SELECT e.execution_id, e.program_hash, e.execution_time_ms, e.signal_code, e.exit_code, eo.description, e.created_at FROM execution e JOIN execution_outcome eo ON e.execution_outcome_id = eo.id WHERE eo.outcome = 'Crashed' AND (e.signal_code IS NULL OR e.signal_code != 3) ORDER BY e.created_at DESC LIMIT 3;"2>/dev/null ||echo" No crash details available"
0 commit comments