Skip to content

Assertion getOperand(0)->getType() == getOperand(1)->getType() && "Both operands to ICmp instruction are not of the same type!"' failed` #72936

@kssenii

Description

@kssenii

https://s3.amazonaws.com/clickhouse-test-reports/72884/b154fa0d0bca8d3239256df72637590fdebd6984/ast_fuzzer__debug_.html

2024.12.06 16:05:58.619084 [ 1823 ] {} <Fatal> BaseDaemon: ########## Short fault info ############
2024.12.06 16:05:58.619124 [ 1823 ] {} <Fatal> BaseDaemon: (version 24.12.1.1123, build id: F4668C773DDD89F7000056AFB309D3CE88EF5F8E, git hash: d8f1e908ef9d15a37ca2ed192ffd87be7e107540, architecture: x86_64) (from thread 1813) Received signal 6
2024.12.06 16:05:58.619134 [ 1823 ] {} <Fatal> BaseDaemon: Signal description: Aborted
2024.12.06 16:05:58.619136 [ 1823 ] {} <Fatal> BaseDaemon: 
2024.12.06 16:05:58.619155 [ 1823 ] {} <Fatal> BaseDaemon: Stack trace: 0x000000000cdcba08 0x000000000d025534 0x00007f0380239520 0x00007f038028d9fd 0x00007f0380239476 0x00007f038021f7f3 0x00007f038021f71b 0x00007f0380230e96 0x0000000007d77b42 0x0000000007d77a49 0x0000000007d77906 0x0000000008cff005 0x0000000008cfebd4 0x0000000008cfe6e7 0x0000000008a532d9 0x0000000010ebae3b 0x0000000013328e80 0x000000001257b499 0x0000000013330f62 0x0000000013322417 0x000000001332f62b 0x000000001257643c 0x0000000011ee0829 0x00000000121f3ad4 0x0000000011f18915 0x0000000011f17913 0x0000000011f1715b 0x0000000011f16fc6 0x0000000011f130f2 0x0000000011f0d909 0x0000000011f1e1cd 0x00000000128cfd43 0x000000001288f333 0x000000001288b09c 0x000000001288912d 0x0000000012b6bc56 0x0000000012b67f61 0x00000000142c12b1 0x00000000142d8359 0x0000000017c0f347 0x0000000017c0f81e 0x0000000017bb7b12 0x0000000017bb5803 0x00007f038028bac3 0x00007f038031d850
2024.12.06 16:05:58.619164 [ 1823 ] {} <Fatal> BaseDaemon: ########################################
2024.12.06 16:05:58.619219 [ 1823 ] {} <Fatal> BaseDaemon: (version 24.12.1.1123, build id: F4668C773DDD89F7000056AFB309D3CE88EF5F8E, git hash: d8f1e908ef9d15a37ca2ed192ffd87be7e107540) (from thread 1813) (query_id: 9b81e63f-ec7b-43e4-88ee-eda16c395900) (query: SELECT arraySplit(x -> ((x % toNullable(2)) = 1), [2]), nn FROM (SELECT name AS nn, value AS vv FROM data2013 UNION ALL SELECT name AS nn, value AS vv FROM data2014) ORDER BY tuple('Nullable(String)', 16, toNullable(16), materialize(16)) DESC, tuple(toLowCardinality('9279104477'), toNullable(10), 10, 10, 10, 10, 10, toUInt128(10), 10, 10, 10, 10, 10, 10, 10, 10, 10, 10) DESC, nn ASC NULLS FIRST, vv ASC NULLS FIRST) Received signal Aborted (6)
2024.12.06 16:05:58.619236 [ 1823 ] {} <Fatal> BaseDaemon: 
2024.12.06 16:05:58.619246 [ 1823 ] {} <Fatal> BaseDaemon: Stack trace: 0x000000000cdcba08 0x000000000d025534 0x00007f0380239520 0x00007f038028d9fd 0x00007f0380239476 0x00007f038021f7f3 0x00007f038021f71b 0x00007f0380230e96 0x0000000007d77b42 0x0000000007d77a49 0x0000000007d77906 0x0000000008cff005 0x0000000008cfebd4 0x0000000008cfe6e7 0x0000000008a532d9 0x0000000010ebae3b 0x0000000013328e80 0x000000001257b499 0x0000000013330f62 0x0000000013322417 0x000000001332f62b 0x000000001257643c 0x0000000011ee0829 0x00000000121f3ad4 0x0000000011f18915 0x0000000011f17913 0x0000000011f1715b 0x0000000011f16fc6 0x0000000011f130f2 0x0000000011f0d909 0x0000000011f1e1cd 0x00000000128cfd43 0x000000001288f333 0x000000001288b09c 0x000000001288912d 0x0000000012b6bc56 0x0000000012b67f61 0x00000000142c12b1 0x00000000142d8359 0x0000000017c0f347 0x0000000017c0f81e 0x0000000017bb7b12 0x0000000017bb5803 0x00007f038028bac3 0x00007f038031d850

2024.12.06 16:05:58.634124 [ 1823 ] {} <Fatal> BaseDaemon: 0.0. inlined from /build/src/Common/StackTrace.cpp:380: StackTrace::tryCapture()
2024.12.06 16:05:58.634163 [ 1823 ] {} <Fatal> BaseDaemon: 0. /build/src/Common/StackTrace.cpp:349: StackTrace::StackTrace(ucontext_t const&) @ 0x000000000cdcba08
2024.12.06 16:05:58.648564 [ 1823 ] {} <Fatal> BaseDaemon: 1. /build/src/Common/SignalHandlers.cpp:100: signalHandler(int, siginfo_t*, void*) @ 0x000000000d025534
2024.12.06 16:05:58.648599 [ 1823 ] {} <Fatal> BaseDaemon: 2. ? @ 0x00007f0380239520
2024.12.06 16:05:58.648609 [ 1823 ] {} <Fatal> BaseDaemon: 3. ? @ 0x00007f038028d9fd
2024.12.06 16:05:58.648622 [ 1823 ] {} <Fatal> BaseDaemon: 4. ? @ 0x00007f0380239476
2024.12.06 16:05:58.648631 [ 1823 ] {} <Fatal> BaseDaemon: 5. ? @ 0x00007f038021f7f3
2024.12.06 16:05:58.648645 [ 1823 ] {} <Fatal> BaseDaemon: 6. ? @ 0x00007f038021f71b
2024.12.06 16:05:58.648654 [ 1823 ] {} <Fatal> BaseDaemon: 7. ? @ 0x00007f0380230e96

2024.12.06 16:05:58.668763 [ 1823 ] {} <Fatal> BaseDaemon: 8. /build/contrib/llvm-project/llvm/include/llvm/IR/Instructions.h:1190: llvm::ICmpInst::AssertOK() @ 0x0000000007d77b42
2024.12.06 16:05:58.689303 [ 1823 ] {} <Fatal> BaseDaemon: 9. /build/contrib/llvm-project/llvm/include/llvm/IR/Instructions.h:1245: llvm::ICmpInst::ICmpInst(llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, llvm::Twine const&) @ 0x0000000007d77a49
2024.12.06 16:05:58.708452 [ 1823 ] {} <Fatal> BaseDaemon: 10. /build/contrib/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2180: llvm::IRBuilderBase::CreateICmp(llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, llvm::Twine const&) @ 0x0000000007d77906
2024.12.06 16:05:58.950775 [ 1823 ] {} <Fatal> BaseDaemon: 11.0. inlined from /build/contrib/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2067: llvm::IRBuilderBase::CreateICmpEQ(llvm::Value*, llvm::Value*, llvm::Twine const&)
2024.12.06 16:05:58.950825 [ 1823 ] {} <Fatal> BaseDaemon: 11.1. inlined from /build/src/Functions/FunctionsComparison.h:647: DB::CompileOp<DB::EqualsOp>::compile(llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&, llvm::Value*, llvm::Value*, bool)
2024.12.06 16:05:58.950844 [ 1823 ] {} <Fatal> BaseDaemon: 11. /build/src/Functions/FunctionsComparison.h:1510: auto DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::compileImpl(llvm::IRBuilderBase&, std::vector<DB::ValueWithType, std::allocator<DB::ValueWithType>> const&, std::shared_ptr<DB::IDataType const> const&) const::'lambda'(auto const&, auto const&)::operator()<DB::DataTypeNumber<char8_t>, DB::DataTypeNumber<char8_t>>(auto const&, auto const&) const @ 0x0000000008cff005
2024.12.06 16:05:59.188550 [ 1823 ] {} <Fatal> BaseDaemon: 12.0. inlined from /build/src/Functions/FunctionsComparison.h:1444: operator()<DB::DataTypeNumber<char8_t> >
2024.12.06 16:05:59.188621 [ 1823 ] {} <Fatal> BaseDaemon: 12.1. inlined from /build/src/Functions/castTypeToEither.h:12: _ZN2DBL16castTypeToEitherIJNS_14DataTypeNumberIDuEENS1_ItEENS1_IjEENS1_ImEENS1_IDB8_EENS1_IsEENS1_IiEENS1_IlEENS1_IfEENS1_IdEEENS_9IDataTypeEZZNS_18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE13castBothTypesIZNKSH_11compileImplERN4llvm13IRBuilderBaseERKNSt3__16vectorINS_13ValueWithTypeENSM_9allocatorISO_EEEERKNSM_10shared_ptrIKSD_EEEUlRKT_RKT0_E_EEbPSV_S16_OSZ_ENKUlS11_E_clIS2_EEDaS11_EUlS11_E_EEbPS13_OT1_
2024.12.06 16:05:59.188640 [ 1823 ] {} <Fatal> BaseDaemon: 12. /build/src/Functions/FunctionsComparison.h:1424: bool DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::castType<auto bool DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::castBothTypes<DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::compileImpl(llvm::IRBuilderBase&, std::vector<DB::ValueWithType, std::allocator<DB::ValueWithType>> const&, std::shared_ptr<DB::IDataType const> const&) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()<DB::DataTypeNumber<char8_t>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000008cfebd4
2024.12.06 16:05:59.239803 [ 1823 ] {} <Fatal> BaseDaemon: 13.0. inlined from /build/src/Functions/FunctionsComparison.h:1442: operator()<DB::DataTypeNumber<char8_t> >
2024.12.06 16:05:59.239861 [ 1823 ] {} <Fatal> BaseDaemon: 13.1. inlined from /build/src/Functions/castTypeToEither.h:12: _ZN2DBL16castTypeToEitherIJNS_14DataTypeNumberIDuEENS1_ItEENS1_IjEENS1_ImEENS1_IDB8_EENS1_IsEENS1_IiEENS1_IlEENS1_IfEENS1_IdEEENS_9IDataTypeEZNS_18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE13castBothTypesIZNKSH_11compileImplERN4llvm13IRBuilderBaseERKNSt3__16vectorINS_13ValueWithTypeENSM_9allocatorISO_EEEERKNSM_10shared_ptrIKSD_EEEUlRKT_RKT0_E_EEbPSV_S16_OSZ_EUlS11_E_EEbPS13_OT1_
2024.12.06 16:05:59.239873 [ 1823 ] {} <Fatal> BaseDaemon: 13. /build/src/Functions/FunctionsComparison.h:1424: bool DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::castType<bool DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::castBothTypes<DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::compileImpl(llvm::IRBuilderBase&, std::vector<DB::ValueWithType, std::allocator<DB::ValueWithType>> const&, std::shared_ptr<DB::IDataType const> const&) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000008cfe6e7
2024.12.06 16:05:59.285020 [ 1823 ] {} <Fatal> BaseDaemon: 14.0. inlined from /build/src/Functions/FunctionsComparison.h:1440: bool DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::castBothTypes<DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::compileImpl(llvm::IRBuilderBase&, std::vector<DB::ValueWithType, std::allocator<DB::ValueWithType>> const&, std::shared_ptr<DB::IDataType const> const&) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)
2024.12.06 16:05:59.285074 [ 1823 ] {} <Fatal> BaseDaemon: 14. /build/src/Functions/FunctionsComparison.h:1489: DB::FunctionComparison<DB::EqualsOp, DB::NameEquals>::compileImpl(llvm::IRBuilderBase&, std::vector<DB::ValueWithType, std::allocator<DB::ValueWithType>> const&, std::shared_ptr<DB::IDataType const> const&) const @ 0x0000000008a532d9
2024.12.06 16:05:59.298199 [ 1823 ] {} <Fatal> BaseDaemon: 15. /build/src/Functions/IFunction.cpp:587: DB::IFunction::compile(llvm::IRBuilderBase&, std::vector<DB::ValueWithType, std::allocator<DB::ValueWithType>> const&, std::shared_ptr<DB::IDataType const> const&) const @ 0x0000000010ebae3b
2024.12.06 16:05:59.303672 [ 1823 ] {} <Fatal> BaseDaemon: 16. /build/src/Interpreters/JIT/CompileDAG.cpp:55: DB::CompileDAG::compile(llvm::IRBuilderBase&, std::vector<DB::ValueWithType, std::allocator<DB::ValueWithType>> const&) const @ 0x0000000013328e80
2024.12.06 16:05:59.327552 [ 1823 ] {} <Fatal> BaseDaemon: 17. /build/src/Interpreters/ExpressionJIT.cpp:164: DB::LLVMFunction::compile(llvm::IRBuilderBase&, std::vector<DB::ValueWithType, std::allocator<DB::ValueWithType>> const&) const @ 0x000000001257b499
2024.12.06 16:05:59.341088 [ 1823 ] {} <Fatal> BaseDaemon: 18.0. inlined from /build/src/Interpreters/JIT/compileFunction.cpp:139: DB::compileFunction(llvm::Module&, DB::IFunctionBase const&)
2024.12.06 16:05:59.341123 [ 1823 ] {} <Fatal> BaseDaemon: 18.1. inlined from /build/src/Interpreters/JIT/compileFunction.cpp:172: operator()
2024.12.06 16:05:59.341131 [ 1823 ] {} <Fatal> BaseDaemon: 18.2. inlined from /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: ?
2024.12.06 16:05:59.341137 [ 1823 ] {} <Fatal> BaseDaemon: 18.3. inlined from /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:479: ?
2024.12.06 16:05:59.341147 [ 1823 ] {} <Fatal> BaseDaemon: 18.4. inlined from /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: ?
2024.12.06 16:05:59.341155 [ 1823 ] {} <Fatal> BaseDaemon: 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: ? @ 0x0000000013330f62
2024.12.06 16:05:59.360046 [ 1823 ] {} <Fatal> BaseDaemon: 19.0. inlined from /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: ?
2024.12.06 16:05:59.360084 [ 1823 ] {} <Fatal> BaseDaemon: 19.1. inlined from /build/contrib/llvm-project/libcxx/include/__functional/function.h:1197: ?
2024.12.06 16:05:59.360097 [ 1823 ] {} <Fatal> BaseDaemon: 19. /build/src/Interpreters/JIT/CHJIT.cpp:386: DB::CHJIT::compileModule(std::function<void (llvm::Module&)>) @ 0x0000000013322417
2024.12.06 16:05:59.375308 [ 1823 ] {} <Fatal> BaseDaemon: 20. /build/src/Interpreters/JIT/compileFunction.cpp:170: DB::compileFunction(DB::CHJIT&, DB::IFunctionBase const&) @ 0x000000001332f62b
2024.12.06 16:05:59.393703 [ 1823 ] {} <Fatal> BaseDaemon: 21.0. inlined from /build/src/Interpreters/ExpressionJIT.cpp:302: operator()
2024.12.06 16:05:59.393761 [ 1823 ] {} <Fatal> BaseDaemon: 21.1. inlined from /build/src/Common/CacheBase.h:152: std::pair<std::shared_ptr<DB::CompiledExpressionCacheEntry>, bool> DB::CacheBase<wide::integer<128ul, unsigned int>, DB::CompiledExpressionCacheEntry, UInt128Hash, DB::CompiledFunctionWeightFunction>::getOrSet<DB::compile(DB::CompileDAG const&, unsigned long)::$_0>(wide::integer<128ul, unsigned int> const&, DB::compile(DB::CompileDAG const&, unsigned long)::$_0&&)
2024.12.06 16:05:59.393774 [ 1823 ] {} <Fatal> BaseDaemon: 21.2. inlined from /build/src/Interpreters/ExpressionJIT.cpp:299: DB::compile(DB::CompileDAG const&, unsigned long)
2024.12.06 16:05:59.393787 [ 1823 ] {} <Fatal> BaseDaemon: 21. /build/src/Interpreters/ExpressionJIT.cpp:592: DB::ActionsDAG::compileFunctions(unsigned long, std::unordered_set<DB::ActionsDAG::Node const*, std::hash<DB::ActionsDAG::Node const*>, std::equal_to<DB::ActionsDAG::Node const*>, std::allocator<DB::ActionsDAG::Node const*>> const&) @ 0x000000001257643c
2024.12.06 16:05:59.458055 [ 1823 ] {} <Fatal> BaseDaemon: 22. /build/src/Interpreters/ActionsDAG.cpp:1330: DB::ActionsDAG::compileExpressions(unsigned long, std::unordered_set<DB::ActionsDAG::Node const*, std::hash<DB::ActionsDAG::Node const*>, std::equal_to<DB::ActionsDAG::Node const*>, std::allocator<DB::ActionsDAG::Node const*>> const&) @ 0x0000000011ee0829
2024.12.06 16:05:59.484213 [ 1823 ] {} <Fatal> BaseDaemon: 23. /build/src/Interpreters/ExpressionActions.cpp:69: DB::ExpressionActions::ExpressionActions(DB::ActionsDAG, DB::ExpressionActionsSettings const&, bool) @ 0x00000000121f3ad4
2024.12.06 16:05:59.525986 [ 1823 ] {} <Fatal> BaseDaemon: 24. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::ExpressionActions* std::construct_at[abi:v15007]<DB::ExpressionActions, DB::ActionsDAG, DB::ExpressionActionsSettings const&, DB::ExpressionActions*>(DB::ExpressionActions*, DB::ActionsDAG&&, DB::ExpressionActionsSettings const&) @ 0x0000000011f18915

Metadata

Metadata

Assignees

No one assigned

    Labels

    fuzzProblem 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