Skip to content

Logical error: 'Column __text_index_i0_hasToken_0 with type LowCardinality(UInt8) should not be filled by text index reader' #87887

@PedroTadim

Description

@PedroTadim

Describe the bug

Found during this CI run: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=87696&sha=beb293141a641c25930dbe1caefa2160c20dc951&name_0=PR&name_1=AST+fuzzer+%28arm_asan%29 cc @ahmadov and @rschu1ze

How to reproduce

Run Fiddle: https://fiddle.clickhouse.com/040d2e38-a49d-4e6f-b5d1-72bbed350474

Error message and/or stacktrace

Stack trace:

<Fatal> : Logical error: 'Column __text_index_i0_hasToken_0 with type LowCardinality(UInt8) should not be filled by text index reader'.
<Fatal> : Stack trace (when copying this message, always include the lines below):

0. contrib/llvm-project/libcxx/include/__exception/exception.h:113: Poco::Exception::Exception(String const&, int) @ 0x00000000276bf432
1. src/Common/Exception.cpp:128: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000149f80a9
2. src/Common/Exception.h:123: DB::Exception::Exception(String&&, int, String, bool) @ 0x000000000d2ff30e
3. src/Common/Exception.h:58: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000d2fed11
4. src/Common/Exception.h:141: DB::Exception::Exception<String const&, String>(int, FormatStringHelperImpl<std::type_identity<String const&>::type, std::type_identity<String>::type>, String const&, String&&) @ 0x000000000e1dfaf6
5. src/Storages/MergeTree/MergeTreeReaderTextIndex.cpp:46: DB::MergeTreeReaderTextIndex::MergeTreeReaderTextIndex(DB::IMergeTreeReader const*, DB::MergeTreeIndexWithCondition, DB::NamesAndTypesList) @ 0x000000001f12c994
6. contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634: std::__unique_if<DB::MergeTreeReaderTextIndex>::__unique_single std::make_unique[abi:se190107]<DB::MergeTreeReaderTextIndex, DB::IMergeTreeReader const*&, DB::MergeTreeIndexWithCondition const&, DB::NamesAndTypesList const&>(DB::IMergeTreeReader const*&, DB::MergeTreeIndexWithCondition const&, DB::NamesAndTypesList const&) @ 0x000000001f12fb87
7. src/Storages/MergeTree/MergeTreeReaderTextIndex.cpp:405: DB::createMergeTreeReaderTextIndex(DB::IMergeTreeReader const*, DB::MergeTreeIndexWithCondition const&, DB::NamesAndTypesList const&) @ 0x000000001f12ee4d
8. src/Storages/MergeTree/MergeTreeReadTask.cpp:158: DB::MergeTreeReadTask::createReaders(std::shared_ptr<DB::MergeTreeReadTaskInfo const> const&, DB::MergeTreeReadTask::Extras const&, DB::MarkRanges const&, std::vector<DB::MarkRanges, std::allocator<DB::MarkRanges>> const&) @ 0x000000001f144499
9. src/Storages/MergeTree/MergeTreeReadPoolBase.cpp:319: DB::MergeTreeReadPoolBase::createTask(std::shared_ptr<DB::MergeTreeReadTaskInfo const>, DB::MarkRanges, std::vector<DB::MarkRanges, std::allocator<DB::MarkRanges>>, DB::MergeTreeReadTask*) const @ 0x000000001fcffc92
10. src/Storages/MergeTree/MergeTreeReadPoolBase.cpp:341: DB::MergeTreeReadPoolBase::createTask(std::shared_ptr<DB::MergeTreeReadTaskInfo const>, DB::MarkRanges, DB::MergeTreeReadTask*) const @ 0x000000001fd00e5b
11. src/Storages/MergeTree/MergeTreeReadPoolInOrder.cpp:76: DB::MergeTreeReadPoolInOrder::getTask(unsigned long, DB::MergeTreeReadTask*) @ 0x000000001fd2e5ed
12. src/Storages/MergeTree/MergeTreeSelectProcessor.cpp:262: DB::MergeTreeSelectProcessor::read() @ 0x000000001f1542ca
13. src/Storages/MergeTree/MergeTreeSource.cpp:229: DB::MergeTreeSource::tryGenerate() @ 0x000000001fcef4a9
14. src/Processors/ISource.cpp:110: DB::ISource::work() @ 0x000000001f730802
15. src/Processors/Executors/ExecutionThreadContext.cpp:53: DB::ExecutionThreadContext::executeTask() @ 0x000000001f74df90
16. src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::atomic<bool>*) @ 0x000000001f73fd18
17. src/Processors/Executors/PipelineExecutor.cpp:279: DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*) @ 0x000000001f740329
18. src/Processors/Executors/PipelineExecutor.cpp:602: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001f73ec21
19. src/Processors/Executors/PipelineExecutor.cpp:136: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001f73e33f
20. src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:76: void std::__function::__policy_invoker<void ()>::__call_impl[abi:se190107]<std::__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::__function::__policy_storage const*) @ 0x000000001f7564a4
21. contrib/llvm-project/libcxx/include/__functional/function.h:716: ? @ 0x0000000014b387a6
22. contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117: void* std::__thread_proxy[abi:se190107]<std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>>(void*) @ 0x0000000014b3f1c0
23. start_thread @ 0x00000000000a27f1
24. __GI___clone3 @ 0x0000000000133b5c

Metadata

Metadata

Assignees

Labels

bugConfirmed user-visible misbehaviour in official releasefuzzProblem found by one of the fuzzers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions