Skip to content

Logical error: 'ReadBuffer is canceled. Can't read from it.' (STID: 2508-2b71) #99258

@Algunenano

Description

@Algunenano

Important: This issue was automatically generated and is used by CI for matching failures. DO NOT modify the body content. DO NOT remove labels.

Test name: Logical error: 'ReadBuffer is canceled. Can't read from it.' (STID: 2508-2b71)
CI report: BuzzHouse (amd_msan)
Failing test history: cidb

Test output:

Error:
Logical error: 'ReadBuffer is canceled. Can't read from it.'.
Logical error: 'ReadBuffer is canceled. Can't read from it.'.
Logical error: 'ReadBuffer is canceled. Can't read from it.'.
Logical error: 'ReadBuffer is canceled. Can't read from it.'.
---

Stack trace:
pthread_kill@@GLIBC_2.34 @ 0x00000000000969fd
raise @ 0x0000000000042476
__ieee754_lgamma_r @ 0x00000000000287f3
./ci/tmp/build/./src/Common/Exception.cpp:60:5: DB::abortOnFailedAssertion(String const&, std::basic_string_view<char, std::char_traits<char>>, void* const*, unsigned long, unsigned long) @ 0x000000002afb5ca1
./ci/tmp/build/./src/Common/Exception.cpp:66:5: DB::abortOnFailedAssertion(String const&) @ 0x000000002afb6c3f
./ci/tmp/build/./src/IO/ReadBuffer.cpp:90:5: DB::ReadBuffer::next() @ 0x000000002b3c6533
inlined from ./src/IO/ReadBuffer.h:81: DB::ReadBuffer::eof()
inlined from ./src/IO/VarInt.h:82: void DB::varint_impl::readVarUInt<true>(unsigned long&, DB::ReadBuffer&)
inlined from ./src/IO/VarInt.h:118: DB::readVarUInt(unsigned long&, DB::ReadBuffer&)
./ci/tmp/build/./src/Server/TCPHandler.cpp:2089:38: DB::TCPHandler::receiveClusterFunctionReadTaskResponse(DB::QueryState&) @ 0x000000005401112e
inlined from ./ci/tmp/build/./src/Server/TCPHandler.cpp:713: operator()
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87: std::__invoke_result_impl<void, DB::TCPHandler::runImpl()::$_5&>::type std::__invoke[abi:fe210105]<DB::TCPHandler::runImpl()::$_5&>(DB::TCPHandler::runImpl()::$_5&)
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:334: std::shared_ptr<DB::ClusterFunctionReadTaskResponse> std::__invoke_void_return_wrapper<std::shared_ptr<DB::ClusterFunctionReadTaskResponse>, false>::__call[abi:fe210105]<DB::TCPHandler::runImpl()::$_5&>(DB::TCPHandler::runImpl()::$_5&)
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348: std::shared_ptr<DB::ClusterFunctionReadTaskResponse> std::__invoke_r[abi:fe210105]<std::shared_ptr<DB::ClusterFunctionReadTaskResponse>, DB::TCPHandler::runImpl()::$_5&>(DB::TCPHandler::runImpl()::$_5&)
./contrib/llvm-project/libcxx/include/__functional/function.h:450:28: ? @ 0x000000005401eccf
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
inlined from ./ci/tmp/build/./src/Storages/StorageURL.cpp:1264: operator()
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87: std::__invoke_result_impl<void, DB::ReadFromURL::createIterator(DB::ActionsDAG::Node const*)::$_1&>::type std::__invoke[abi:fe210105]<DB::ReadFromURL::createIterator(DB::ActionsDAG::Node const*)::$_1&>(DB::ReadFromURL::createIterator(DB::ActionsDAG::Node const*)::$_1&)
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:334: std::vector<String, std::allocator<String>> std::__invoke_void_return_wrapper<std::vector<String, std::allocator<String>>, false>::__call[abi:fe210105]<DB::ReadFromURL::createIterator(DB::ActionsDAG::Node const*)::$_1&>(DB::ReadFromURL::createIterator(DB::ActionsDAG::Node const*)::$_1&)
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348: std::vector<String, std::allocator<String>> std::__invoke_r[abi:fe210105]<std::vector<String, std::allocator<String>>, DB::ReadFromURL::createIterator(DB::ActionsDAG::Node const*)::$_1&>(DB::ReadFromURL::createIterator(DB::ActionsDAG::Node const*)::$_1&)
./contrib/llvm-project/libcxx/include/__functional/function.h:450:12: ? @ 0x00000000518af063
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
inlined from ./ci/tmp/build/./src/Storages/StorageURL.cpp:361: operator()
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87: std::__invoke_result_impl<void, DB::StorageURLSource::StorageURLSource(DB::ReadFromFormatInfo const&, std::shared_ptr<std::function<std::vector<String, std::allocator<String>> ()>>, String const&, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>, String const&, std::optional<DB::FormatSettings> const&, String, std::shared_ptr<DB::Context const> const&, unsigned long, DB::ConnectionTimeouts const&, DB::CompressionMethod, std::shared_ptr<DB::FormatParserSharedResources>, std::shared_ptr<DB::FormatFilterInfo>, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>> const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&, bool, bool)::$_0&>::type std::__invoke[abi:fe210105]<DB::StorageURLSource::StorageURLSource(DB::ReadFromFormatInfo const&, std::shared_ptr<std::function<std::vector<String, std::allocator<String>> ()>>, String const&, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>, String const&, std::optional<DB::FormatSettings> const&, String, std::shared_ptr<DB::Context const> const&, unsigned long, DB::ConnectionTimeouts const&, DB::CompressionMethod, std::shared_ptr<DB::FormatParserSharedResources>, std::shared_ptr<DB::FormatFilterInfo>, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>> const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&, bool, bool)::$_0&>(DB::StorageURLSource::StorageURLSource(DB::ReadFromFormatInfo const&, std::shared_ptr<std::function<std::vector<String, std::allocator<String>> ()>>, String const&, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>, String const&, std::optional<DB::FormatSettings> const&, String, std::shared_ptr<DB::Context const> const&, unsigned long, DB::ConnectionTimeouts const&, DB::CompressionMethod, std::shared_ptr<DB::FormatParserSharedResources>, std::shared_ptr<DB::FormatFilterInfo>, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>> const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&, bool, bool)::$_0&)
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:334: bool std::__invoke_void_return_wrapper<bool, false>::__call[abi:fe210105]<DB::StorageURLSource::StorageURLSource(DB::ReadFromFormatInfo const&, std::shared_ptr<std::function<std::vector<String, std::allocator<String>> ()>>, String const&, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>, String const&, std::optional<DB::FormatSettings> const&, String, std::shared_ptr<DB::Context const> const&, unsigned long, DB::ConnectionTimeouts const&, DB::CompressionMethod, std::shared_ptr<DB::FormatParserSharedResources>, std::shared_ptr<DB::FormatFilterInfo>, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>> const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&, bool, bool)::$_0&>(DB::StorageURLSource::StorageURLSource(DB::ReadFromFormatInfo const&, std::shared_ptr<std::function<std::vector<String, std::allocator<String>> ()>>, String const&, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>, String const&, std::optional<DB::FormatSettings> const&, String, std::shared_ptr<DB::Context const> const&, unsigned long, DB::ConnectionTimeouts const&, DB::CompressionMethod, std::shared_ptr<DB::FormatParserSharedResources>, std::shared_ptr<DB::FormatFilterInfo>, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>> const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&, bool, bool)::$_0&)
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348: bool std::__invoke_r[abi:fe210105]<bool, DB::StorageURLSource::StorageURLSource(DB::ReadFromFormatInfo const&, std::shared_ptr<std::function<std::vector<String, std::allocator<String>> ()>>, String const&, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>, String const&, std::optional<DB::FormatSettings> const&, String, std::shared_ptr<DB::Context const> const&, unsigned long, DB::ConnectionTimeouts const&, DB::CompressionMethod, std::shared_ptr<DB::FormatParserSharedResources>, std::shared_ptr<DB::FormatFilterInfo>, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>> const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&, bool, bool)::$_0&>(DB::StorageURLSource::StorageURLSource(DB::ReadFromFormatInfo const&, std::shared_ptr<std::function<std::vector<String, std::allocator<String>> ()>>, String const&, std::function<void (std::basic_ostream<char, std::char_traits<char>>&)>, String const&, std::optional<DB::FormatSettings> const&, String, std::shared_ptr<DB::Context const> const&, unsigned long, DB::ConnectionTimeouts const&, DB::CompressionMethod, std::shared_ptr<DB::FormatParserSharedResources>, std::shared_ptr<DB::FormatFilterInfo>, std::vector<DB::HTTPHeaderEntry, std::allocator<DB::HTTPHeaderEntry>> const&, std::vector<std::pair<String, String>, std::allocator<std::pair<String, String>>> const&, bool, bool)::$_0&)
./contrib/llvm-project/libcxx/include/__functional/function.h:450:12: ? @ 0x00000000518aa345
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
./ci/tmp/build/./src/Storages/StorageURL.cpp:466:12: DB::StorageURLSource::generate() @ 0x000000005188082c
./ci/tmp/build/./src/Processors/ISource.cpp:144:18: DB::ISource::tryGenerate() @ 0x000000005439c3ae
./ci/tmp/build/./src/Processors/ISource.cpp:110:26: DB::ISource::work() @ 0x000000005439bb64
inlined from ./ci/tmp/build/./src/Processors/Executors/ExecutionThreadContext.cpp:53: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*)
./ci/tmp/build/./src/Processors/Executors/ExecutionThreadContext.cpp:102:26: DB::ExecutionThreadContext::executeTask() @ 0x000000005440b4e3
./ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:351:26: DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::atomic<bool>*) @ 0x00000000543d1355
inlined from ./ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:279: DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*)
inlined from ./ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:565: operator()
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87: std::__invoke_result_impl<void, DB::PipelineExecutor::spawnThreads(std::shared_ptr<DB::IAcquiredSlot>)::$_0&>::type std::__invoke[abi:fe210105]<DB::PipelineExecutor::spawnThreads(std::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::shared_ptr<DB::IAcquiredSlot>)::$_0&)
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:342: void std::__invoke_void_return_wrapper<void, true>::__call[abi:fe210105]<DB::PipelineExecutor::spawnThreads(std::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::shared_ptr<DB::IAcquiredSlot>)::$_0&)
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348: void std::__invoke_r[abi:fe210105]<void, DB::PipelineExecutor::spawnThreads(std::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::shared_ptr<DB::IAcquiredSlot>)::$_0&)
./contrib/llvm-project/libcxx/include/__functional/function.h:450:5: ? @ 0x00000000543d76b5
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
./ci/tmp/build/./src/Common/ThreadPool.cpp:799:12: ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::worker() @ 0x000000002b5628e0
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:0: std::__invoke_result_impl<void, void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&>::type std::__invoke[abi:fe210105]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&)
inlined from ./contrib/llvm-project/libcxx/include/tuple:1380: decltype(auto) std::__apply_tuple_impl[abi:fe210105]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), std::tuple<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>&, 0ul>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), std::tuple<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>&, std::__tuple_indices<0ul>)
inlined from ./contrib/llvm-project/libcxx/include/tuple:1384: decltype(auto) std::apply[abi:fe210105]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), std::tuple<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>&>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), std::tuple<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>&)
./src/Common/ThreadPool.h:312: ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&)::'lambda'()::operator()() @ 0x000000002b576a21
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
./ci/tmp/build/./src/Common/ThreadPool.cpp:809:12: ThreadPoolImpl<std::thread>::ThreadFromThreadPool::worker() @ 0x000000002b55a663
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:0: std::__invoke_result_impl<void, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>::type std::__invoke[abi:fe210105]<void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>(void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*&&)
inlined from ./contrib/llvm-project/libcxx/include/__thread/thread.h:159: void std::__thread_execute[abi:fe210105]<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*, 2ul>(std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>&, std::__tuple_indices<2ul>)
./contrib/llvm-project/libcxx/include/__thread/thread.h:168: void* std::__thread_proxy[abi:fe210105]<std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>>(void*) @ 0x000000002b56f455
start_thread @ 0x0000000000094ac3
__clone3 @ 0x00000000001268d0

Metadata

Metadata

Assignees

Labels

fuzzProblem found by one of the fuzzerstestingSpecial issue with list of bugs found by CI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions