Skip to content

Commit 0a727b4

Browse files
authored
Merge pull request ClickHouse#79848 from ClickHouse/fuzzer-stack-traces
Preserve fuzzer fatal messages in raw logs
2 parents f5c40e7 + fc014a8 commit 0a727b4

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 '\s<Fatal>\s' 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)