-
Notifications
You must be signed in to change notification settings - Fork 8.3k
MemorySanitizer: use-of-uninitialized-value in DB::getURLHost #86133
Copy link
Copy link
Closed
Labels
testingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI
Description
Describe the bug
Logging trace to /var/log/clickhouse-server/clickhouse-server.log
Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
==1609==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x55671e73e5ed in DB::getURLHost(char const*, unsigned long) (/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/tmp/clickhouse+0x1fe6c5ed) (BuildId: f1ade5dce3d9cc63c865714c7e09efcd8b549410)
#1 0x55671e774513 in DB::ExtractSubstringImpl<DB::ExtractDomain<false, false>>::vector(DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 63ul, 64ul> const&, DB::PODArray<unsigned long, 4096ul, Allocator<false, false>, 63ul, 64ul> const&, DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 63ul, 64ul>&, DB::PODArray<unsigned long, 4096ul, Allocator<false, false>, 63ul, 64ul>&, unsigned long) (/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/tmp/clickhouse+0x1fea2513) (BuildId: f1ade5dce3d9cc63c865714c7e09efcd8b549410)
#2 0x55671e7731ef in DB::FunctionStringToString<DB::ExtractSubstringImpl<DB::ExtractDomain<false, false>>, DB::NameDomain, false>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName>> const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const (/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/tmp/clickhouse+0x1fea11ef) (BuildId: f1ade5dce3d9cc63c865714c7e09efcd8b549410)
#3 0x556730f6d4da in DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName>> const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const ci/tmp/build/./src/Functions/IFunctionAdaptors.cpp:10:22
#4 0x556730f59586 in DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName>> const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const (/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/tmp/clickhouse+0x32687586) (BuildId: f1ade5dce3d9cc63c865714c7e09efcd8b549410)
#5 0x556730f5e53c in DB::IExecutableFunction::executeWithoutSparseColumns(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName>> const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const (/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/tmp/clickhouse+0x3268c53c) (BuildId: f1ade5dce3d9cc63c865714c7e09efcd8b549410)
#6 0x556730f637e5 in DB::IExecutableFunction::execute(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName>> const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const (/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/tmp/clickhouse+0x326917e5) (BuildId: f1ade5dce3d9cc63c865714c7e09efcd8b549410)
#7 0x556738896ce9 in DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool, bool) ci/tmp/build/./src/Interpreters/ExpressionActions.cpp:670:60
#8 0x556738896ce9 in DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const ci/tmp/build/./src/Interpreters/ExpressionActions.cpp:809:13
#9 0x556749969b8f in DB::ExpressionTransform::transform(DB::Chunk&) ci/tmp/build/./src/Processors/Transforms/ExpressionTransform.cpp:26:17
#10 0x55672bb09243 in DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) ci/tmp/build/./src/Processors/ISimpleTransform.h:33:9
#11 0x556748f3506f in DB::ISimpleTransform::work() ci/tmp/build/./src/Processors/ISimpleTransform.cpp:98:9
#12 0x556748fad0eb in DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) ci/tmp/build/./src/Processors/Executors/ExecutionThreadContext.cpp:53:26
#13 0x556748fad0eb in DB::ExecutionThreadContext::executeTask() ci/tmp/build/./src/Processors/Executors/ExecutionThreadContext.cpp:102:9
#14 0x556748f70b5b in DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::__1::atomic<bool>*) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:350:26
#15 0x556748f6d043 in DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:278:5
#16 0x556748f6d043 in DB::PipelineExecutor::executeImpl(unsigned long, bool) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:598:13
#17 0x556748f6c4f9 in DB::PipelineExecutor::execute(unsigned long, bool) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:136:9
#18 0x556748fc9225 in DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::__1::shared_ptr<DB::ThreadGroup>, unsigned long, bool) ci/tmp/build/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:76:24
#19 0x556748fc9225 in DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const ci/tmp/build/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:102:13
#20 0x556748fc9225 in decltype(std::declval<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>()()) std::__1::__invoke[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
#21 0x556748fc9225 in decltype(auto) std::__1::__apply_tuple_impl[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<...>) ci/tmp/build/./contrib/llvm-project/libcxx/include/tuple:1354:5
#22 0x556748fc9225 in decltype(auto) std::__1::apply[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&) ci/tmp/build/./contrib/llvm-project/libcxx/include/tuple:1358:5
#23 0x556748fc9225 in ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() ci/tmp/build/./src/Common/ThreadPool.h:312:13
#24 0x556748fc9225 in decltype(std::declval<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>()()) std::__1::__invoke[abi:ne190107]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
#25 0x556748fc9225 in void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:ne190107]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:224:5
#26 0x556748fc9225 in std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:ne190107]() ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:210:12
#27 0x556748fc9225 in void std::__1::__function::__policy_invoker<void ()>::__call_impl[abi:ne190107]<std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:610:12
#28 0x55672396eb26 in std::__1::__function::__policy_func<void ()>::operator()[abi:ne190107]() const ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:716:12
#29 0x55672396eb26 in std::__1::function<void ()>::operator()() const ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:989:10
#30 0x55672396eb26 in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::worker() ci/tmp/build/./src/Common/ThreadPool.cpp:812:17
#31 0x556723982b63 in decltype(*std::declval<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>().*std::declval<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)()>()()) std::__1::__invoke[abi:ne190107]<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, void>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117:25
#32 0x556723982b63 in void std::__1::__thread_execute[abi:ne190107]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, 2ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>&, std::__1::__tuple_indices<2ul>) ci/tmp/build/./contrib/llvm-project/libcxx/include/__thread/thread.h:192:3
#33 0x556723982b63 in void* std::__1::__thread_proxy[abi:ne190107]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>>(void*) ci/tmp/build/./contrib/llvm-project/libcxx/include/__thread/thread.h:201:3
#34 0x7fd985df6ac2 (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2) (BuildId: d5197096f709801829b118af1b7cf6631efa2dcd)
#35 0x7fd985e8884f (/lib/x86_64-linux-gnu/libc.so.6+0x12684f) (BuildId: d5197096f709801829b118af1b7cf6631efa2dcd)
Uninitialized value was created by a heap allocation
#0 0x5567082fabaa in realloc (/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/tmp/clickhouse+0x9a28baa) (BuildId: f1ade5dce3d9cc63c865714c7e09efcd8b549410)
#1 0x556723461a3d in Allocator<false, false>::realloc(void*, unsigned long, unsigned long, unsigned long) ci/tmp/build/./src/Common/Allocator.cpp:178:26
#2 0x55670e26960c in void DB::PODArrayBase<1ul, 4096ul, Allocator<false, false>, 63ul, 64ul>::resize_exact<>(unsigned long) (/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/tmp/clickhouse+0xf99760c) (BuildId: f1ade5dce3d9cc63c865714c7e09efcd8b549410)
#3 0x556734db6fe9 in void DB::deserializeBinaryImpl<16ul>(DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 63ul, 64ul>&, DB::PODArray<unsigned long, 4096ul, Allocator<false, false>, 63ul, 64ul>&, DB::ReadBuffer&, unsigned long) ci/tmp/build/./src/DataTypes/Serializations/SerializationString.cpp:163:18
#4 0x556734daf2e2 in DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, unsigned long, double) const ci/tmp/build/./src/DataTypes/Serializations/SerializationString.cpp:254:9
#5 0x556734a91d02 in DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW<DB::IColumn>::immutable_ptr<DB::IColumn>&, unsigned long, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::__1::shared_ptr<DB::ISerialization::DeserializeBinaryBulkState>&, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<DB::ISerialization::ISubstreamsCacheElement, std::__1::default_delete<DB::ISerialization::ISubstreamsCacheElement>>, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const, std::__1::unique_ptr<DB::ISerialization::ISubstreamsCacheElement, std::__1::default_delete<DB::ISerialization::ISubstreamsCacheElement>>>>>*) const ci/tmp/build/./src/DataTypes/Serializations/ISerialization.cpp:161:9
#6 0x556747a75e7b in DB::MergeTreeReaderWide::readData(DB::NameAndTypePair const&, std::__1::shared_ptr<DB::ISerialization const> const&, COW<DB::IColumn>::immutable_ptr<DB::IColumn>&, unsigned long, bool, unsigned long, unsigned long, unsigned long, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::unique_ptr<DB::ISerialization::ISubstreamsCacheElement, std::__1::default_delete<DB::ISerialization::ISubstreamsCacheElement>>, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const, std::__1::unique_ptr<DB::ISerialization::ISubstreamsCacheElement, std::__1::default_delete<DB::ISerialization::ISubstreamsCacheElement>>>>>&, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::shared_ptr<DB::ISerialization::DeserializeBinaryBulkState>, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const, std::__1::shared_ptr<DB::ISerialization::DeserializeBinaryBulkState>>>>&) ci/tmp/build/./src/Storages/MergeTree/MergeTreeReaderWide.cpp:550:20
#7 0x556747a74401 in DB::MergeTreeReaderWide::readRows(unsigned long, unsigned long, bool, unsigned long, unsigned long, std::__1::vector<COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::immutable_ptr<DB::IColumn>>>&) ci/tmp/build/./src/Storages/MergeTree/MergeTreeReaderWide.cpp:178:17
#8 0x556747a133b4 in DB::MergeTreeRangeReader::DelayedStream::readRows(std::__1::vector<COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::immutable_ptr<DB::IColumn>>>&, unsigned long) ci/tmp/build/./src/Storages/MergeTree/MergeTreeRangeReader.cpp:127:47
#9 0x556747a133b4 in DB::MergeTreeRangeReader::DelayedStream::finalize(std::__1::vector<COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::immutable_ptr<DB::IColumn>>>&) ci/tmp/build/./src/Storages/MergeTree/MergeTreeRangeReader.cpp:199:12
#10 0x556747a2eeb9 in DB::MergeTreeRangeReader::Stream::finalize(std::__1::vector<COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::immutable_ptr<DB::IColumn>>>&) ci/tmp/build/./src/Storages/MergeTree/MergeTreeRangeReader.cpp:309:31
#11 0x556747a2eeb9 in DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) ci/tmp/build/./src/Storages/MergeTree/MergeTreeRangeReader.cpp:994:27
#12 0x556747ab7125 in DB::MergeTreeReadersChain::read(unsigned long, DB::MarkRanges&, std::__1::vector<DB::MarkRanges, std::__1::allocator<DB::MarkRanges>>&) ci/tmp/build/./src/Storages/MergeTree/MergeTreeReadersChain.cpp:68:37
#13 0x556747aae09e in DB::MergeTreeReadTask::read() ci/tmp/build/./src/Storages/MergeTree/MergeTreeReadTask.cpp:229:38
#14 0x55674a37c750 in DB::MergeTreeThreadSelectAlgorithm::readFromTask(DB::MergeTreeReadTask&) ci/tmp/build/./src/Storages/MergeTree/MergeTreeSelectAlgorithms.h:38:84
#15 0x556747af0714 in DB::MergeTreeSelectProcessor::read() ci/tmp/build/./src/Storages/MergeTree/MergeTreeSelectProcessor.cpp:228:31
#16 0x55674a3a08a6 in DB::MergeTreeSource::tryGenerate() ci/tmp/build/./src/Storages/MergeTree/MergeTreeSource.cpp:229:41
#17 0x556748f3b6a3 in DB::ISource::work() ci/tmp/build/./src/Processors/ISource.cpp:110:26
#18 0x556748fad0eb in DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) ci/tmp/build/./src/Processors/Executors/ExecutionThreadContext.cpp:53:26
#19 0x556748fad0eb in DB::ExecutionThreadContext::executeTask() ci/tmp/build/./src/Processors/Executors/ExecutionThreadContext.cpp:102:9
#20 0x556748f70b5b in DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::__1::atomic<bool>*) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:350:26
#21 0x556748f6d043 in DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:278:5
#22 0x556748f6d043 in DB::PipelineExecutor::executeImpl(unsigned long, bool) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:598:13
#23 0x556748f6c4f9 in DB::PipelineExecutor::execute(unsigned long, bool) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:136:9
SUMMARY: MemorySanitizer: use-of-uninitialized-value (/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/ci/tmp/clickhouse+0x1fe6c5ed) (BuildId: f1ade5dce3d9cc63c865714c7e09efcd8b549410) in DB::getURLHost(char const*, unsigned long)
Exiting
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
testingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI