Skip to content

Time64 std::exception on bad insert #80729

@PedroTadim

Description

@PedroTadim

Describe the bug

Easy to reproduce.

How to reproduce

Run Fiddle: https://fiddle.clickhouse.com/35471b70-4932-4ea9-9182-3bbe8d42c554 When running on a debug build a logical error is thrown.

Error message and/or stacktrace

Stack trace:

Logical error: 'std::exception. Code: 1001, type: std::length_error, e.what() = basic_string (version 25.6.1.1), Stack trace:

0. contrib/llvm-project/libcxx/include/__exception/exception.h:113: std::exception::exception[abi:se190107]() @ 0x000000001b230b74
1. contrib/llvm-project/libcxx/src/support/runtime/stdexcept_default.ipp:23: std::logic_error::logic_error(char const*) @ 0x000000003e4ebe7e
2. contrib/llvm-project/libcxx/include/stdexcept:151: std::length_error::length_error[abi:se190107](char const*) @ 0x000000001b21d896
3. contrib/llvm-project/libcxx/include/stdexcept:240: std::__throw_length_error[abi:se190107](char const*) @ 0x000000001b21d837
4. contrib/llvm-project/libcxx/include/string:2233: String::__throw_length_error[abi:se190107]() const @ 0x000000001b21d7f0
5. contrib/llvm-project/libcxx/include/string:2330: String::__init(char const*, unsigned long) @ 0x000000003e4f0277
6. contrib/llvm-project/libcxx/include/string:1078: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x00000000275911d9
7. src/IO/ReadHelpers.h:205: DB::SerializationTime64::deserializeTextQuoted(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000002fbb8dbb
8. src/DataTypes/Serializations/SerializationNullable.cpp:559: DB::SerializationNullable::deserializeNullAsDefaultOrNestedTextQuoted(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, std::shared_ptr<DB::ISerialization const> const&) @ 0x000000002fb228d9
9. src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:307: DB::ValuesBlockInputFormat::readRow(std::vector<COW<DB::IColumn>::mutable_ptr<DB::IColumn>, std::allocator<COW<DB::IColumn>::mutable_ptr<DB::IColumn>>>&, unsigned long) @ 0x0000000035033d94
10. src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:130: DB::ValuesBlockInputFormat::read() @ 0x0000000035031d29
11. src/Processors/Formats/IInputFormat.cpp:19: DB::IInputFormat::generate() @ 0x0000000034b46104
12. src/Processors/ISource.cpp:139: DB::ISource::tryGenerate() @ 0x0000000034b03839
13. src/Processors/ISource.cpp:108: DB::ISource::work() @ 0x0000000034b03104
14. src/Processors/Executors/ExecutionThreadContext.cpp:53: DB::ExecutionThreadContext::executeTask() @ 0x0000000034b3284d
15. src/Processors/Executors/PipelineExecutor.cpp:305: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x0000000034b1d665
16. src/Processors/Executors/PipelineExecutor.cpp:275: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x0000000034b1da81
17. src/Processors/Executors/PipelineExecutor.cpp:500: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x0000000034b1b204
18. src/Processors/Executors/PipelineExecutor.cpp:134: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000034b1a500
19. 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*) @ 0x0000000034b3b478
20. contrib/llvm-project/libcxx/include/__functional/function.h:716: ? @ 0x000000002761ed9a
21. 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*) @ 0x0000000027626cbf
22. start_thread @ 0x00000000000a2ef1
23. __GI___clone3 @ 0x000000000013445c

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