Skip to content

Include multiline logs in fuzzer fatal.log report - #60796

Merged
alexey-milovidov merged 2 commits into
ClickHouse:masterfrom
Algunenano:fatal_fuzz
Mar 5, 2024
Merged

alexey-milovidov merged 2 commits into
ClickHouse:masterfrom
Algunenano:fatal_fuzz

Conversation

@Algunenano

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

...

Documentation entry for user-facing changes

Before: Include all lines including <Fatal> from server.log
Now: Get the paragraphs having <Fatal>. Keep the lines that either contain <Fatal> or that don't start with 202 (logs look like 2024.03.03 22:51:24...)

Example from https://s3.amazonaws.com/clickhouse-test-reports/60724/b41b935a6a9d386c259e71d5ae5be530076fb89d/ast_fuzzer__debug_.html:

$ sed -n '/<Fatal>/,/^$/p' s.log | rg "(^[^202])|<Fatal>"
2024.03.03 22:51:24.296711 [ 301 ] {99a24b5e-5820-4467-86aa-08e1a2d90e76} <Fatal> : Logical error: 'Inconsistent AST formatting: the query:
SELECT ((('a', 10) AS x).1) = toFixedString('a', toNullable(1)) FROM remote('127.0.0.{1,2,3}') GROUP BY 'a'
Was parsed and formatted back as:
SELECT (tuple(('a', 10) AS x).1) = toFixedString('a', toNullable(1)) FROM remote('127.0.0.{1,2,3}') GROUP BY 'a''.
2024.03.03 22:51:24.298090 [ 1026 ] {} <Fatal> BaseDaemon: ########## Short fault info ############
2024.03.03 22:51:24.298182 [ 1026 ] {} <Fatal> BaseDaemon: (version 24.3.1.1 (official build), build id: 7BF5FD36AE86A6DCA9768742B3C9998EC194FE7E, git hash: 356e8cae39b4e61910cbd39500445620cad1c681) (from thread 301) Received signal 6
2024.03.03 22:51:24.298225 [ 1026 ] {} <Fatal> BaseDaemon: Signal description: Aborted
2024.03.03 22:51:24.298251 [ 1026 ] {} <Fatal> BaseDaemon: 
2024.03.03 22:51:24.298302 [ 1026 ] {} <Fatal> BaseDaemon: Stack trace: 0x00007fe3e13999fc 0x00007fe3e1345476 0x00007fe3e132b7f3 0x00000000136fea7f 0x00000000136feb15 0x00000000136ff051 0x000000000a9e0bca 0x0000000012024eec 0x000000001c64e7e3 0x000000001c64cf8a 0x000000001ddc9752 0x000000001ddde5c5 0x000000002317f9f9 0x000000002318025c 0x00000000233575d4 0x000000002335437a 0x00000000233530be 0x00007fe3e1397ac3 0x00007fe3e1429850
2024.03.03 22:51:24.298353 [ 1026 ] {} <Fatal> BaseDaemon: ########################################
2024.03.03 22:51:24.298492 [ 1026 ] {} <Fatal> BaseDaemon: (version 24.3.1.1 (official build), build id: 7BF5FD36AE86A6DCA9768742B3C9998EC194FE7E, git hash: 356e8cae39b4e61910cbd39500445620cad1c681) (from thread 301) (query_id: 99a24b5e-5820-4467-86aa-08e1a2d90e76) (query: ) Received signal Aborted (6)
2024.03.03 22:51:24.298644 [ 1026 ] {} <Fatal> BaseDaemon: 
2024.03.03 22:51:24.298746 [ 1026 ] {} <Fatal> BaseDaemon: Stack trace: 0x00007fe3e13999fc 0x00007fe3e1345476 0x00007fe3e132b7f3 0x00000000136fea7f 0x00000000136feb15 0x00000000136ff051 0x000000000a9e0bca 0x0000000012024eec 0x000000001c64e7e3 0x000000001c64cf8a 0x000000001ddc9752 0x000000001ddde5c5 0x000000002317f9f9 0x000000002318025c 0x00000000233575d4 0x000000002335437a 0x00000000233530be 0x00007fe3e1397ac3 0x00007fe3e1429850
2024.03.03 22:51:24.298871 [ 1026 ] {} <Fatal> BaseDaemon: 4. ? @ 0x00007fe3e13999fc
2024.03.03 22:51:24.298948 [ 1026 ] {} <Fatal> BaseDaemon: 5. ? @ 0x00007fe3e1345476
2024.03.03 22:51:24.299059 [ 1026 ] {} <Fatal> BaseDaemon: 6. ? @ 0x00007fe3e132b7f3
2024.03.03 22:51:24.367566 [ 1026 ] {} <Fatal> BaseDaemon: 7. /build/src/Common/Exception.cpp:0: DB::abortOnFailedAssertion(String const&) @ 0x00000000136fea7f
2024.03.03 22:51:24.435001 [ 1026 ] {} <Fatal> BaseDaemon: 8. /build/src/Common/Exception.cpp:63: DB::handle_error_code(String const&, int, bool, std::vector<void*, std::allocator<void*>> const&) @ 0x00000000136feb15
2024.03.03 22:51:24.491183 [ 1026 ] {} <Fatal> BaseDaemon: 9. /build/src/Common/Exception.cpp:100: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000136ff051
2024.03.03 22:51:24.549551 [ 1026 ] {} <Fatal> BaseDaemon: 10. /build/src/Common/Exception.h:90: DB::Exception::Exception(String&&, int, bool) @ 0x000000000a9e0bca
2024.03.03 22:51:24.633517 [ 1026 ] {} <Fatal> BaseDaemon: 11. /build/src/Common/Exception.h:109: DB::Exception::Exception<String&, String&>(int, FormatStringHelperImpl<std::type_identity<String&>::type, std::type_identity<String&>::type>, String&, String&) @ 0x0000000012024eec
2024.03.03 22:51:24.830907 [ 1026 ] {} <Fatal> BaseDaemon: 12. /build/src/Interpreters/executeQuery.cpp:762: DB::executeQueryImpl(char const*, char const*, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001c64e7e3
2024.03.03 22:51:25.038152 [ 1026 ] {} <Fatal> BaseDaemon: 13. /build/src/Interpreters/executeQuery.cpp:1326: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000001c64cf8a
2024.03.03 22:51:25.243706 [ 1026 ] {} <Fatal> BaseDaemon: 14. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001ddc9752
2024.03.03 22:51:25.472174 [ 1026 ] {} <Fatal> BaseDaemon: 15. /build/src/Server/TCPHandler.cpp:2312: DB::TCPHandler::run() @ 0x000000001ddde5c5
2024.03.03 22:51:25.490188 [ 1026 ] {} <Fatal> BaseDaemon: 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002317f9f9
2024.03.03 22:51:25.513286 [ 1026 ] {} <Fatal> BaseDaemon: 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002318025c
2024.03.03 22:51:25.537548 [ 1026 ] {} <Fatal> BaseDaemon: 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000233575d4
2024.03.03 22:51:25.561420 [ 1026 ] {} <Fatal> BaseDaemon: 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000002335437a
2024.03.03 22:51:25.584092 [ 1026 ] {} <Fatal> BaseDaemon: 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000233530be
2024.03.03 22:51:25.584252 [ 1026 ] {} <Fatal> BaseDaemon: 21. ? @ 0x00007fe3e1397ac3
2024.03.03 22:51:25.584368 [ 1026 ] {} <Fatal> BaseDaemon: 22. ? @ 0x00007fe3e1429850
2024.03.03 22:51:26.991939 [ 1026 ] {} <Fatal> BaseDaemon: Integrity check of the executable successfully passed (checksum: 9ED3E5877C20066680BCDC7A6966C0F4)
2024.03.03 22:51:28.289815 [ 1026 ] {} <Fatal> BaseDaemon: Report this error to https://github.com/ClickHouse/ClickHouse/issues
2024.03.03 22:51:28.290341 [ 1026 ] {} <Fatal> BaseDaemon: Changed settings: receive_timeout = 10., receive_data_timeout_ms = 10000, alter_sync = 2, allow_suspicious_low_cardinality_types = true, log_queries = true, distributed_product_mode = 'local', table_function_remote_max_addresses = 200, max_execution_time = 10., max_memory_usage = 10000000000, log_comment = '/workspace/ch/tests/queries/0_stateless/02887_tuple_element_distributed.sql', send_logs_level = 'fatal', allow_introspection_functions = true, optimize_on_insert = false, allow_deprecated_syntax_for_merge_tree = true
2024.03.03 22:51:35.917090 [ 164 ] {} <Fatal> Application: Child process was terminated by signal 6.

@robot-ch-test-poll robot-ch-test-poll added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 4, 2024
@robot-ch-test-poll

robot-ch-test-poll commented Mar 4, 2024 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit 6e579e6 with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Successful checks
Check nameDescriptionStatus
A SyncThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
ClickBenchRuns [ClickBench](https://github.com/ClickHouse/ClickBench/) with instant-attach table✅ success
ClickHouse build checkBuilds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process✅ success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help✅ success
Docker keeper imageThe check to build and optionally push the mentioned image to docker hub✅ success
Docker server imageThe check to build and optionally push the mentioned image to docker hub✅ success
Docs checkBuilds and tests the documentation✅ success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here✅ success
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integrational tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc✅ success
Install packagesChecks that the built packages are installable in a clear environment✅ success
Mergeable CheckChecks if all other necessary checks are successful✅ success
PR CheckThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Performance ComparisonMeasure changes in query performance. The performance test report is described in detail here. In square brackets are the optional part/total tests✅ success
Push to DockerhubThe check for building and pushing the CI related docker images to docker hub✅ success
SQLTestThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
SQLancerFuzzing tests that detect logical bugs with SQLancer tool✅ success
SqllogicRun clickhouse on the sqllogic test set against sqlite and checks that all statements are passed✅ success
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Stress testRuns stateless functional tests concurrently from several clients to detect concurrency-related errors✅ success
Style checkRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report✅ success
Unit testsRuns the unit tests for different release types✅ success
Check nameDescriptionStatus
AST fuzzerRuns randomly generated queries to catch program errors. The build type is optionally given in parenthesis. If it fails, ask a maintainer for help❌ failure
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR⏳ pending
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests❌ failure
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc❌ failure
Upgrade checkRuns stress tests on server version from last release and then tries to upgrade it to the version from the PR. It checks if the new server can successfully startup without any errors, crashes or sanitizer asserts❌ failure

Comment thread docker/test/fuzzer/run-fuzzer.sh Resolved
@alexey-milovidov alexey-milovidov self-assigned this Mar 4, 2024
@alexey-milovidov
alexey-milovidov merged commit 7604b38 into ClickHouse:master Mar 5, 2024
@alexey-milovidov

Copy link
Copy Markdown
Member

#60825

@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 5, 2024
@Algunenano Algunenano mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants