ClickHouse / ClickHouse/ClickHouse

The Ubsan AST fuzzer dies from time to time with `Trying create stream to read to mark`

Open
#93,445 0 comments 0 reactions 1 assignee Claimed by @novikd View on GitHub
comp-joins
Dominant language
C++
Stars
49.9k
Forks
9k
Avg merge
21h 32m
Merged PRs (30d)
515

Description

Example failure (from [here](https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=7a6195de4d035571ba1b4309bf376290d3ed772c&name_0=MasterCI&name_1=AST%20fuzzer%20%28amd_debug%29&name_1=AST%20fuzzer%20%28amd_debug%29)):

```
Error:
Logical error: 'Trying create stream to read to mark №384 but total marks count is 401'.
---

Failed query:
SELECT count() AS `count()` FROM `default`.`test_table_join_1` AS `__table1` ALL RIGHT JOIN `default`.`test_table_join_2__fuzz_32` AS `__table2` USING (`id`) ALL INNER JOIN `default`.`test_table_join_3__fuzz_0` AS `__table3` USING (`id`) ORDER BY count() DESC
---

Stack trace:
pthread_kill@@GLIBC_2.34 @ 0x00000000000969fd
raise @ 0x0000000000042476
__lgamma_r_finite @ 0x00000000000287f3
src/Common/Exception.cpp:57: DB::abortOnFailedAssertion(String const&, std::basic_string_view>, void* const*, unsigned long, unsigned long) @ 0x000000001629db7c
src/Common/Exception.cpp:90: DB::handle_error_code(String const&, std::basic_string_view>, int, bool, std::vector> const&) @ 0x000000001629ef8d
src/Common/Exception.cpp:143: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000001629f279
src/Common/Exception.h:172: DB::Exception::Exception(String&&, int, String, bool) @ 0x000000000d8724d4
src/Common/Exception.h:58: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000d871fd1
src/Common/Exception.h:190: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&, String&&) @ 0x000000001042619a
src/Interpreters/ExpressionActions.cpp:696: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool, bool, bool)
src/Interpreters/ExpressionActions.cpp:836: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x000000001c53d413
src/Processors/Transforms/ExpressionTransform.cpp:30: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000002062ba99
src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000018c43193
src/Processors/ISimpleTransform.cpp:98: DB::ISimpleTransform::work() @ 0x000000002035558a
src/Processors/Executors/ExecutionThreadContext.cpp:53: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*)
src/Processors/Executors/ExecutionThreadContext.cpp:102: DB::ExecutionThreadContext::executeTask() @ 0x0000000020373c30
src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::atomic*) @ 0x0000000020365e78
src/Processors/Executors/PipelineExecutor.cpp:279: DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*) @ 0x00000000203664ac
src/Processors/Executors/PipelineExecutor.cpp:565: operator()
contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87: std::__invoke_result_impl)::$_0&>::type std::__invoke[abi:se210105])::$_0&>(DB::PipelineExecutor::spawnThreads(std::shared_ptr)::$_0&)
contrib/llvm-project/libcxx/include/__type_traits/invoke.h:342: void std::__invoke_void_return_wrapper::__call[abi:se210105])::$_0&>(DB::PipelineExecutor::spawnThreads(std::shared_ptr)::$_0&)
contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348: void std::__invoke_r[abi:se210105])::$_0&>(DB::PipelineExecutor::spawnThreads(std::shared_ptr)::$_0&)
contrib/llvm-project/libcxx/include/__functional/function.h:450: ? @ 0x00000000203676ce
contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
src/Common/ThreadPool.cpp:801: ThreadPoolImpl>::ThreadFromThreadPool::worker() @ 0x00000000163ec2f9
contrib/llvm-project/libcxx/include/__type_traits/invoke.h:0: std::__invoke_result_impl>::ThreadFromThreadPool::*&)(), ThreadPoolImpl>::ThreadFromThreadPool*&>::type std::__invoke[abi:se210105]>::ThreadFromThreadPool::*&)(), ThreadPoolImpl>::ThreadFromThreadPool*&>(void (ThreadPoolImpl>::ThreadFromThreadPool::*&)(), ThreadPoolImpl>::ThreadFromThreadPool*&)
contrib/llvm-project/libcxx/include/tuple:1380: decltype(auto) std::__apply_tuple_impl[abi:se210105]>::ThreadFromThreadPool::*&)(), std::tuple>::ThreadFromThreadPool*>&, 0ul>(void (ThreadPoolImpl>::ThreadFromThreadPool::*&)(), std::tuple>::ThreadFromThreadPool*>&, std::__tuple_indices<0ul>)
contrib/llvm-project/libcxx/include/tuple:1384: decltype(auto) std::apply[abi:se210105]>::ThreadFromThreadPool::*&)(), std::tuple>::ThreadFromThreadPool*>&>(void (ThreadPoolImpl>::ThreadFromThreadPool::*&)(), std::tuple>::ThreadFromThreadPool*>&)
src/Common/ThreadPool.h:312: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::ThreadFromThreadPool::*)(), ThreadPoolImpl>::ThreadFromThreadPool*>(void (ThreadPoolImpl>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl>::ThreadFromThreadPool*&&)::'lambda'()::operator()() @ 0x00000000163f26e8
contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
src/Common/ThreadPool.cpp:811: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000163e9803
contrib/llvm-project/libcxx/include/__type_traits/invoke.h:0: std::__invoke_result_impl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>::type std::__invoke[abi:se210105]::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>(void (ThreadPoolImpl::ThreadFromThreadPool::*&&)(), ThreadPoolImpl::ThreadFromThreadPool*&&)
contrib/llvm-project/libcxx/include/__thread/thread.h:159: void std::__thread_execute[abi:se210105]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*, 2ul>(std::tuple>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>&, std::__tuple_indices<2ul>)
contrib/llvm-project/libcxx/include/__thread/thread.h:168: void* std::__thread_proxy[abi:se210105]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000163f038e
start_thread @ 0x0000000000094ac3
__GI___clone3 @ 0x00000000001268c0

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.