Skip to content

Logical error: Bad cast from type A to B (STID: 1499-2c39) #92359

@Blargian

Description

@Blargian

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: Bad cast from type A to B (STID: 1499-2c39)
CI report: BuzzHouse (amd_tsan)
CIDB statistics: cidb

Test output:

Error:
Logical error: 'Bad cast from type DB::ColumnNullable to DB::ColumnVector<short>'.
---

Failed query:
SELECT (+15776037174773808368::Int16), argMin(0.209, 15776037174773808368::Int16) OVER (PARTITION BY 15776037174773808368::Int16, 67872809178771328807874014005019343009::Int256), -4175922609227425490:...
---

Stack trace:
__GI___pthread_kill @ 0x00000000000969fd
gsignal @ 0x0000000000042476
__ieee754_lgamma_r @ 0x00000000000287f3
contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:0: __interceptor_abort @ 0x0000000009b31de0
src/Common/Exception.cpp:54: DB::abortOnFailedAssertion(String const&, std::basic_string_view<char, std::char_traits<char>>, void* const*, unsigned long, unsigned long) @ 0x00000000160372cf
src/Common/Exception.cpp:87: DB::handle_error_code(String const&, std::basic_string_view<char, std::char_traits<char>>, int, bool, std::vector<void*, std::allocator<void*>> const&) @ 0x00000000160388f...
src/Common/Exception.cpp:138: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000016038dbf
DB::Exception::Exception(String&&, int, String, bool) @ 0x0000000009bc042e
DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000009bbfcc9
DB::Exception::Exception<String, String>(int, FormatStringHelperImpl<std::type_identity<String>::type, std::type_identity<String>::type>, String&&, String&&) @ 0x0000000009bbee86
DB::ColumnVector<short> const& assert_cast<DB::ColumnVector<short> const&, DB::IColumn const&>(DB::IColumn const&) @ 0x0000000013a51e59
src/AggregateFunctions/SingleValueData.cpp:422: DB::SingleValueDataFixed<short>::getSmallestIndex(DB::IColumn const&, unsigned long, unsigned long) const @ 0x0000000017ca2c6d
src/AggregateFunctions/AggregateFunctionsArgMinArgMax.cpp:198: DB::(anonymous namespace)::AggregateFunctionArgMinMax<DB::(anonymous namespace)::AggregateFunctionArgMinMaxData<DB::SingleValueDataFixed<...
src/Processors/Transforms/WindowTransform.cpp:1034: DB::WindowTransform::updateAggregationState() @ 0x000000002693f10f
src/Processors/Transforms/WindowTransform.cpp:1234: DB::WindowTransform::appendChunk(DB::Chunk&) @ 0x000000002694051f
src/Processors/Transforms/WindowTransform.cpp:1462: DB::WindowTransform::work() @ 0x0000000026943743
src/Processors/Executors/ExecutionThreadContext.cpp:53: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*)
src/Processors/Executors/ExecutionThreadContext.cpp:102: DB::ExecutionThreadContext::executeTask() @ 0x00000000263e2889
src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::atomic<bool>*) @ 0x00000000263cec19
src/Processors/Executors/PipelineExecutor.cpp:279: DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*)
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::_...
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:342: void std::__invoke_void_return_wrapper<void, true>::__call[abi:ne210105]<DB::PipelineExecutor::spawnThreads(std::shared_p...
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348: void std::__invoke_r[abi:ne210105]<void, DB::PipelineExecutor::spawnThreads(std::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB...
./contrib/llvm-project/libcxx/include/__functional/function.h:450: ? @ 0x00000000263d1022
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
src/Common/ThreadPool.cpp:801: ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::worker() @ 0x0000000016209a65
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:0: std::__invoke_result_impl<void, void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), T...
inlined from ./contrib/llvm-project/libcxx/include/tuple:1380: decltype(auto) std::__apply_tuple_impl[abi:ne210105]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*...
inlined from ./contrib/llvm-project/libcxx/include/tuple:1384: decltype(auto) std::apply[abi:ne210105]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), std::tu...
./src/Common/ThreadPool.h:312: ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<T...
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87: std::__invoke_result_impl<void, ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<Threa...
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:342: void std::__invoke_void_return_wrapper<void, true>::__call[abi:ne210105]<ThreadFromGlobalPoolImpl<false, true>::ThreadFro...
inlined from ./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348: void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*std::__invoke_r[abi:ne210105]<void, T...
./contrib/llvm-project/libcxx/include/__functional/function.h:450: ? @ 0x0000000016212ea2
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
inlined from ./contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
src/Common/ThreadPool.cpp:811: ThreadPoolImpl<std::thread>::ThreadFromThreadPool::worker() @ 0x0000000016205971
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>:...
inlined from ./contrib/llvm-project/libcxx/include/__thread/thread.h:159: void std::__thread_execute[abi:ne210105]<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, voi...
./contrib/llvm-project/libcxx/include/__thread/thread.h:168: void* std::__thread_proxy[abi:ne210105]<std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void (...
contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1080: __tsan_thread_start_func @ 0x0000000009b2afb8
start_thread @ 0x0000000000094ac3
__clone3 @ 0x00000000001268c0

Metadata

Metadata

Assignees

No one assigned

    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