https://s3.amazonaws.com/clickhouse-test-reports/58902/dd396b678a60d4bc3fec8566c1212a3f3a098d95/fuzzer_astfuzzerubsan/report.html
2024.01.18 15:00:28.471639 [ 1307 ] {451cc67a-d5b6-4818-93d7-8e8da89920d0} <Fatal> : Logical error: 'Expected single dictionary argument for function.'.
2024.01.18 15:00:28.472040 [ 1309 ] {} <Fatal> BaseDaemon: ########## Short fault info ############
2024.01.18 15:00:28.472068 [ 1309 ] {} <Fatal> BaseDaemon: (version 24.1.1.1, build id: C545F47006DE98F6CC99002E2772E0FD0A227DDF, git hash: e6f8a02b193913993e6bec9180605b9ca0a93167) (from thread 1307) Received signal 6
2024.01.18 15:00:28.472075 [ 1309 ] {} <Fatal> BaseDaemon: Signal description: Aborted
2024.01.18 15:00:28.472079 [ 1309 ] {} <Fatal> BaseDaemon:
2024.01.18 15:00:28.472087 [ 1309 ] {} <Fatal> BaseDaemon: Stack trace: 0x00007f735cf989fc 0x00007f735cf44476 0x00007f735cf2a7f3 0x000055cc05d549c8 0x000055cc05d55915 0x000055cbf9801ece 0x000055cc10756c5d 0x000055cc10757828 0x000055cc11f4e0d0 0x000055cc11f4c140 0x000055cc154254f3 0x000055cc1576fedc 0x000055cc12d6507b 0x000055cc12d5dd38 0x000055cc12d51c44 0x000055cc12d4f8af 0x000055cc1338f653 0x000055cc13388de7 0x000055cc14d859c6 0x000055cc14db6092 0x000055cc16a4f71e 0x000055cc16a5085a 0x000055cc16cba510 0x000055cc16cb5611 0x00007f735cf96ac3 0x00007f735d028660
2024.01.18 15:00:28.472095 [ 1309 ] {} <Fatal> BaseDaemon: ########################################
2024.01.18 15:00:28.472116 [ 1309 ] {} <Fatal> BaseDaemon: (version 24.1.1.1, build id: C545F47006DE98F6CC99002E2772E0FD0A227DDF, git hash: e6f8a02b193913993e6bec9180605b9ca0a93167) (from thread 1307) (query_id: 451cc67a-d5b6-4818-93d7-8e8da89920d0) (query: SELECT NULL, concat(concat(concat(concat('With With With With ', materialize(CAST('42\0242\0242\0242\02', 'LowCardinality(Nullable(UInt32))'))), CAST(NULL, 'LowCardinality(Nullable(UInt32))'), 'With\0With With\0With With\0With With\0With With\0With With\0With With\0With With\0With '), 'With\0With With\0With With\0With With\0With ', ''), '') GROUP BY CAST(NULL, 'LowCardinality(Nullable(UInt32))'), NULL, NULL WITH CUBE) Received signal Aborted (6)
2024.01.18 15:00:28.472128 [ 1309 ] {} <Fatal> BaseDaemon:
2024.01.18 15:00:28.472135 [ 1309 ] {} <Fatal> BaseDaemon: Stack trace: 0x00007f735cf989fc 0x00007f735cf44476 0x00007f735cf2a7f3 0x000055cc05d549c8 0x000055cc05d55915 0x000055cbf9801ece 0x000055cc10756c5d 0x000055cc10757828 0x000055cc11f4e0d0 0x000055cc11f4c140 0x000055cc154254f3 0x000055cc1576fedc 0x000055cc12d6507b 0x000055cc12d5dd38 0x000055cc12d51c44 0x000055cc12d4f8af 0x000055cc1338f653 0x000055cc13388de7 0x000055cc14d859c6 0x000055cc14db6092 0x000055cc16a4f71e 0x000055cc16a5085a 0x000055cc16cba510 0x000055cc16cb5611 0x00007f735cf96ac3 0x00007f735d028660
2024.01.18 15:00:28.472155 [ 1309 ] {} <Fatal> BaseDaemon: 3. ? @ 0x00007f735cf989fc
2024.01.18 15:00:28.472163 [ 1309 ] {} <Fatal> BaseDaemon: 4. ? @ 0x00007f735cf44476
2024.01.18 15:00:28.472171 [ 1309 ] {} <Fatal> BaseDaemon: 5. ? @ 0x00007f735cf2a7f3
2024.01.18 15:00:28.485241 [ 1309 ] {} <Fatal> BaseDaemon: 6. ./build_docker/./src/Common/Exception.cpp:43: DB::abortOnFailedAssertion(String const&) @ 0x0000000023b059c8 in /workspace/clickhouse
2024.01.18 15:00:28.497604 [ 1309 ] {} <Fatal> BaseDaemon: 7.0. inlined from ./build_docker/./src/Common/Exception.cpp:63: DB::handle_error_code(String const&, int, bool, std::vector<void*, std::allocator<void*>> const&)
2024.01.18 15:00:28.497624 [ 1309 ] {} <Fatal> BaseDaemon: 7. ./build_docker/./src/Common/Exception.cpp:100: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000023b06915 in /workspace/clickhouse
2024.01.18 15:00:29.233302 [ 1309 ] {} <Fatal> BaseDaemon: 8. ? @ 0x00000000175b2ece in /workspace/clickhouse
2024.01.18 15:00:29.240896 [ 1309 ] {} <Fatal> BaseDaemon: 9.0. inlined from ./build_docker/./src/Functions/IFunction.cpp:63: DB::(anonymous namespace)::replaceLowCardinalityColumnsByNestedAndGetDictionaryIndexes(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>>&, bool, unsigned long)
2024.01.18 15:00:29.240934 [ 1309 ] {} <Fatal> BaseDaemon: 9. ./build_docker/./src/Functions/IFunction.cpp:274: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x000000002e507c5d in /workspace/clickhouse
2024.01.18 15:00:29.248325 [ 1309 ] {} <Fatal> BaseDaemon: 10. ./build_docker/./src/Functions/IFunction.cpp:0: DB::IExecutableFunction::execute(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x000000002e508828 in /workspace/clickhouse
2024.01.18 15:00:29.286816 [ 1309 ] {} <Fatal> BaseDaemon: 11.0. inlined from ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: intrusive_ptr
2024.01.18 15:00:29.286867 [ 1309 ] {} <Fatal> BaseDaemon: 11.1. inlined from ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: boost::intrusive_ptr<DB::IColumn const>::operator=(boost::intrusive_ptr<DB::IColumn const>&&)
2024.01.18 15:00:29.286877 [ 1309 ] {} <Fatal> BaseDaemon: 11.2. inlined from ./src/Common/COW.h:136: COW<DB::IColumn>::immutable_ptr<DB::IColumn>::operator=(COW<DB::IColumn>::immutable_ptr<DB::IColumn>&&)
2024.01.18 15:00:29.286887 [ 1309 ] {} <Fatal> BaseDaemon: 11.3. inlined from ./build_docker/./src/Interpreters/ActionsDAG.cpp:611: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>>)
2024.01.18 15:00:29.286899 [ 1309 ] {} <Fatal> BaseDaemon: 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:764: DB::ActionsDAG::evaluatePartialResult(std::unordered_map<DB::ActionsDAG::Node const*, DB::ColumnWithTypeAndName, std::hash<DB::ActionsDAG::Node const*>, std::equal_to<DB::ActionsDAG::Node const*>, std::allocator<std::pair<DB::ActionsDAG::Node const* const, DB::ColumnWithTypeAndName>>>&, std::vector<DB::ActionsDAG::Node const*, std::allocator<DB::ActionsDAG::Node const*>> const&, bool) @ 0x000000002fcff0d0 in /workspace/clickhouse
2024.01.18 15:00:29.332824 [ 1309 ] {} <Fatal> BaseDaemon: 12.0. inlined from ./contrib/llvm-project/libcxx/include/vector:951: std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>>::__vdeallocate()
2024.01.18 15:00:29.332896 [ 1309 ] {} <Fatal> BaseDaemon: 12.1. inlined from ./contrib/llvm-project/libcxx/include/vector:1314: std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>>::__move_assign(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>>&, std::integral_constant<bool, true>)
2024.01.18 15:00:29.332908 [ 1309 ] {} <Fatal> BaseDaemon: 12.2. inlined from ./contrib/llvm-project/libcxx/include/vector:1288: std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>>::operator=[abi:v15000](std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>>&&)
2024.01.18 15:00:29.332919 [ 1309 ] {} <Fatal> BaseDaemon: 12. ./build_docker/./src/Interpreters/ActionsDAG.cpp:677: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000002fcfd140 in /workspace/clickhouse
2024.01.18 15:00:29.339453 [ 1309 ] {} <Fatal> BaseDaemon: 13.0. inlined from ./contrib/llvm-project/libcxx/include/unordered_map:1153: ~unordered_map
2024.01.18 15:00:29.339486 [ 1309 ] {} <Fatal> BaseDaemon: 13.1. inlined from ./src/Core/Block.h:25: ~Block
2024.01.18 15:00:29.339498 [ 1309 ] {} <Fatal> BaseDaemon: 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x00000000331d64f3 in /workspace/clickhouse
2024.01.18 15:00:29.351490 [ 1309 ] {} <Fatal> BaseDaemon: 14.0. inlined from ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: std::shared_ptr<DB::ActionsDAG>::operator->[abi:v15000]() const
2024.01.18 15:00:29.351521 [ 1309 ] {} <Fatal> BaseDaemon: 14.1. inlined from ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:20: DB::getTraits(std::shared_ptr<DB::ActionsDAG> const&, DB::Block const&, DB::SortDescription const&)
2024.01.18 15:00:29.351532 [ 1309 ] {} <Fatal> BaseDaemon: 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr<DB::ActionsDAG> const&) @ 0x0000000033520edc in /workspace/clickhouse
2024.01.18 15:00:29.400317 [ 1309 ] {} <Fatal> BaseDaemon: 15. ./build_docker/./src/Planner/Planner.cpp:315: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr<DB::ActionsDAG> const&, String const&, std::vector<std::shared_ptr<DB::ActionsDAG>, std::allocator<std::shared_ptr<DB::ActionsDAG>>>&) @ 0x0000000030b1607b in /workspace/clickhouse
2024.01.18 15:00:29.438054 [ 1309 ] {} <Fatal> BaseDaemon: 16.0. inlined from ./contrib/llvm-project/libcxx/include/string:1499: String::__is_long[abi:v15000]() const
2024.01.18 15:00:29.438087 [ 1309 ] {} <Fatal> BaseDaemon: 16.1. inlined from ./contrib/llvm-project/libcxx/include/string:2333: ~basic_string
2024.01.18 15:00:29.438098 [ 1309 ] {} <Fatal> BaseDaemon: 16. ./build_docker/./src/Planner/Planner.cpp:1582: DB::Planner::buildPlanForQueryNode() @ 0x0000000030b0ed38 in /workspace/clickhouse
2024.01.18 15:00:29.473088 [ 1309 ] {} <Fatal> BaseDaemon: 17.0. inlined from ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: std::shared_ptr<DB::PlannerContext>::operator->[abi:v15000]() const
2024.01.18 15:00:29.473121 [ 1309 ] {} <Fatal> BaseDaemon: 17.1. inlined from ./build_docker/./src/Planner/Planner.cpp:227: DB::(anonymous namespace)::extendQueryContextAndStoragesLifetime(DB::QueryPlan&, std::shared_ptr<DB::PlannerContext> const&)
2024.01.18 15:00:29.473132 [ 1309 ] {} <Fatal> BaseDaemon: 17. ./build_docker/./src/Planner/Planner.cpp:1208: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000030b02c44 in /workspace/clickhouse
2024.01.18 15:00:29.487655 [ 1309 ] {} <Fatal> BaseDaemon: 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:240: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000030b008af in /workspace/clickhouse
2024.01.18 15:00:29.525434 [ 1309 ] {} <Fatal> BaseDaemon: 19.0. inlined from ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: std::unique_ptr<DB::IInterpreter, std::default_delete<DB::IInterpreter>>::operator->[abi:v15000]() const
2024.01.18 15:00:29.525474 [ 1309 ] {} <Fatal> BaseDaemon: 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1061: DB::executeQueryImpl(char const*, char const*, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000031140653 in /workspace/clickhouse
2024.01.18 15:00:29.566776 [ 1309 ] {} <Fatal> BaseDaemon: 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1287: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000031139de7 in /workspace/clickhouse
2024.01.18 15:00:29.600917 [ 1309 ] {} <Fatal> BaseDaemon: 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x0000000032b369c6 in /workspace/clickhouse
2024.01.18 15:00:29.650494 [ 1309 ] {} <Fatal> BaseDaemon: 22. ./build_docker/./src/Server/TCPHandler.cpp:2298: DB::TCPHandler::run() @ 0x0000000032b67092 in /workspace/clickhouse
2024.01.18 15:00:29.653168 [ 1309 ] {} <Fatal> BaseDaemon: 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000003480071e in /workspace/clickhouse
2024.01.18 15:00:29.656788 [ 1309 ] {} <Fatal> BaseDaemon: 24.0. inlined from ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: std::unique_ptr<Poco::Net::TCPServerConnection, std::default_delete<Poco::Net::TCPServerConnection>>::reset[abi:v15000](Poco::Net::TCPServerConnection*)
2024.01.18 15:00:29.656809 [ 1309 ] {} <Fatal> BaseDaemon: 24.1. inlined from ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259: ~unique_ptr
2024.01.18 15:00:29.656817 [ 1309 ] {} <Fatal> BaseDaemon: 24. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:116: Poco::Net::TCPServerDispatcher::run() @ 0x000000003480185a in /workspace/clickhouse
2024.01.18 15:00:29.660625 [ 1309 ] {} <Fatal> BaseDaemon: 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:202: Poco::PooledThread::run() @ 0x0000000034a6b510 in /workspace/clickhouse
2024.01.18 15:00:29.664202 [ 1309 ] {} <Fatal> BaseDaemon: 26.0. inlined from ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::AutoPtr<Poco::ThreadImpl::ThreadData>::operator->()
2024.01.18 15:00:29.664221 [ 1309 ] {} <Fatal> BaseDaemon: 26. ./base/poco/Foundation/src/Thread_POSIX.cpp:350: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000034a66611 in /workspace/clickhouse
2024.01.18 15:00:29.664231 [ 1309 ] {} <Fatal> BaseDaemon: 27. ? @ 0x00007f735cf96ac3
2024.01.18 15:00:29.664237 [ 1309 ] {} <Fatal> BaseDaemon: 28. ? @ 0x00007f735d028660
Basically,
materialize
was marked as suitable for constant folding and it led to strange thingsFor example, the following query
throws this exception.