Skip to content

Commit bb6da94

Browse files
committed
Update fuzzer action to print stack traces and upload crash files.
1 parent b44777a commit bb6da94

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,26 @@ jobs:
7171
run: cmake --build build --parallel
7272

7373
- name: Run fuzzer (60s)
74-
run: ./build/fuzz/${{ matrix.harness }} -max_total_time=60 -print_final_stats=1
74+
env:
75+
# Hand SIGABRT (asserts) to ASan so it prints a backtrace instead of
76+
# libFuzzer's "rudimentary signal handlers" minimal output.
77+
ASAN_OPTIONS: abort_on_error=1:print_stacktrace=1:symbolize=1:halt_on_error=1
78+
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
79+
run: |
80+
./build/fuzz/${{ matrix.harness }} \
81+
-max_total_time=60 \
82+
-print_final_stats=1 \
83+
-handle_abrt=0
84+
85+
- name: Upload crash artifacts
86+
if: failure()
87+
uses: actions/upload-artifact@v4
88+
with:
89+
name: fuzz-crash-${{ matrix.harness }}
90+
path: |
91+
crash-*
92+
leak-*
93+
slow-unit-*
94+
oom-*
95+
timeout-*
96+
if-no-files-found: ignore

0 commit comments

Comments
 (0)