Skip to content

Commit 4a30aad

Browse files
committed
Preserve fuzzer fatal messages in raw logs
1 parent ff0abcb commit 4a30aad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/test/fuzzer/run-fuzzer.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,11 @@ EOF
379379
elif [ "$server_died" == 1 ]
380380
then
381381
# The server has died.
382-
if ! rg --text -o 'Received signal.*|Logical error.*|Assertion.*failed|Failed assertion.*|.*runtime error: .*|.*is located.*|(SUMMARY|ERROR): [a-zA-Z]+Sanitizer:.*|.*_LIBCPP_ASSERT.*|.*Child process was terminated by signal 9.*' server.log > description.txt
382+
if rg --text -o 'Received signal.*|Logical error.*|Assertion.*failed|Failed assertion.*|.*runtime error: .*|.*is located.*|(SUMMARY|ERROR): [a-zA-Z]+Sanitizer:.*|.*_LIBCPP_ASSERT.*|.*Child process was terminated by signal 9.*' server.log > description.txt
383383
then
384+
# Save the stack trace of the server to the description file and preserve in raw text output.
385+
rg --text '<Fatal>' server.log >> description.txt ||:
386+
else
384387
echo "Lost connection to server. See the logs." > description.txt
385388
fi
386389

0 commit comments

Comments
 (0)