Skip to content

Instantly share code, notes, and snippets.

@tavplubix
Created November 19, 2020 11:32
Show Gist options
  • Save tavplubix/2b536d81d23fc7412a2cf186efda236f to your computer and use it in GitHub Desktop.
Save tavplubix/2b536d81d23fc7412a2cf186efda236f to your computer and use it in GitHub Desktop.
node1_1 | =================================================================
node1_1 | ==1==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7fc39c61f3b0 at pc 0x00001c18bec9 bp 0x7fc39c61eb10 sp 0x7fc39c61eb08
node1_1 | READ of size 1 at 0x7fc39c61f3b0 thread T58 (MySQLDBSync)
node1_1 | #0 0x1c18bec8 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__is_long() const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/string:1426:39
node1_1 | #1 0x1c18bec8 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::size() const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/string:950:17
node1_1 | #2 0x1c18bec8 in bool std::__1::operator==<std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/string:3872:29
node1_1 | #3 0x1c18bec8 in DB::MaterializeMetadata::checkBinlogFileExists(mysqlxx::Pool::Entry&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const /build/obj-x86_64-linux-gnu/../src/Databases/MySQL/MaterializeMetadata.cpp:163:26
node1_1 | #4 0x1c190db8 in DB::MaterializeMetadata::MaterializeMetadata(mysqlxx::Pool::Entry&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /build/obj-x86_64-linux-gnu/../src/Databases/MySQL/MaterializeMetadata.cpp:231:13
node1_1 | #5 0x1c159265 in DB::MaterializeMySQLSyncThread::prepareSynchronized(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /build/obj-x86_64-linux-gnu/../src/Databases/MySQL/MaterializeMySQLSyncThread.cpp:339:33
node1_1 | #6 0x1c157c5c in DB::MaterializeMySQLSyncThread::synchronization(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /build/obj-x86_64-linux-gnu/../src/Databases/MySQL/MaterializeMySQLSyncThread.cpp:169:59
node1_1 | #7 0x1c17993a in DB::MaterializeMySQLSyncThread::startSynchronization()::$_0::operator()() const /build/obj-x86_64-linux-gnu/../src/Databases/MySQL/MaterializeMySQLSyncThread.cpp:223:69
node1_1 | #8 0x1c17993a in decltype(std::__1::forward<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&>(fp)()) std::__1::__invoke_constexpr<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3525:1
node1_1 | #9 0x1c17993a in decltype(auto) std::__1::__apply_tuple_impl<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&, std::__1::tuple<>&>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/tuple:1415:1
node1_1 | #10 0x1c17993a in decltype(auto) std::__1::apply<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&, std::__1::tuple<>&>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&, std::__1::tuple<>&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/tuple:1424:1
node1_1 | #11 0x1c17993a in ThreadFromGlobalPool::ThreadFromGlobalPool<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&&)::'lambda'()::operator()() /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.h:178:13
node1_1 | #12 0x1c17993a in decltype(std::__1::forward<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&&)::'lambda'()&>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3519:1
node1_1 | #13 0x1c17993a in void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&&)::'lambda'()&>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&&...) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/__functional_base:348:9
node1_1 | #14 0x1c17993a in std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&&)::'lambda'()>, void ()>::operator()() /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1540:16
node1_1 | #15 0x1c17993a in std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::MaterializeMySQLSyncThread::startSynchronization()::$_0>(DB::MaterializeMySQLSyncThread::startSynchronization()::$_0&&)::'lambda'()>, void ()>::operator()() /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1714:12
node1_1 | #16 0xa140fc6 in std::__1::__function::__value_func<void ()>::operator()() const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1867:16
node1_1 | #17 0xa140fc6 in std::__1::function<void ()>::operator()() const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2473:12
node1_1 | #18 0xa140fc6 in ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:236:17
node1_1 | #19 0xa14a1b3 in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:117:73
node1_1 | #20 0xa14a1b3 in decltype(std::__1::forward<void>(fp)(std::__1::forward<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(fp0)...)) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()&&...) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3519:1
node1_1 | #21 0xa14a1b3 in void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(std::__1::tuple<void, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>&, std::__1::__tuple_indices<>) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:273:5
node1_1 | #22 0xa14a1b3 in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()> >(void*) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:284:5
node1_1 | #23 0x7fc482012668 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9668)
node1_1 | #24 0x7fc481f292b2 in clone (/lib/x86_64-linux-gnu/libc.so.6+0x1222b2)
node1_1 |
node1_1 | Address 0x7fc39c61f3b0 is located in stack of thread T58 (MySQLDBSync) at offset 2192 in frame
node1_1 | #0 0x1c18961f in DB::MaterializeMetadata::checkBinlogFileExists(mysqlxx::Pool::Entry&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const /build/obj-x86_64-linux-gnu/../src/Databases/MySQL/MaterializeMetadata.cpp:155
node1_1 |
node1_1 | This frame has 22 object(s):
node1_1 | [32, 40) 'ref.tmp.i452.i'
node1_1 | [64, 72) 'ref.tmp.i381.i'
node1_1 | [96, 104) 'ref.tmp.i310.i'
node1_1 | [128, 136) 'ref.tmp.i177.i'
node1_1 | [160, 168) 'ref.tmp.i.i'
node1_1 | [192, 288) 'ref.tmp.i' (line 98)
node1_1 | [320, 336) 'ref.tmp2.i' (line 98)
node1_1 | [352, 376) 'ref.tmp4.i' (line 98)
node1_1 | [416, 432) 'ref.tmp10.i' (line 98)
node1_1 | [448, 472) 'ref.tmp15.i' (line 98)
node1_1 | [512, 656) 'ref.tmp48.i' (line 104)
node1_1 | [720, 736) 'ref.tmp52.i' (line 104)
node1_1 | [752, 776) 'ref.tmp57.i' (line 104)
node1_1 | [816, 832) 'ref.tmp64.i' (line 104)
node1_1 | [848, 872) 'ref.tmp69.i' (line 104)
node1_1 | [912, 928) 'ref.tmp76.i' (line 104)
node1_1 | [944, 968) 'ref.tmp81.i' (line 104)
node1_1 | [1008, 1776) 'input' (line 156)
node1_1 | [1904, 1928) 'ref.tmp' (line 156)
node1_1 | [1968, 2040) 'ref.tmp2' (line 156)
node1_1 | [2080, 2152) 'block' (line 158)
node1_1 | [2192, 2256) 'ref.tmp14' (line 162) <== Memory access at offset 2192 is inside this variable
node1_1 | HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
node1_1 | (longjmp and C++ exceptions *are* supported)
node1_1 | Thread T58 (MySQLDBSync) created by T42 (QueryPipelineEx) here:
node1_1 | #0 0xa015aca in pthread_create (/usr/bin/clickhouse+0xa015aca)
node1_1 | #1 0xa14826d in std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/__threading_support:394:10
node1_1 | #2 0xa14826d in std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()&&...) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:300:16
node1_1 | #3 0xa13e2bd in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:117:35
node1_1 | #4 0xa13f523 in ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:153:5
node1_1 | #5 0x1de8675d in ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.h:162:38
node1_1 | #6 0x1de8675d in void std::__1::allocator<ThreadFromGlobalPool>::construct<ThreadFromGlobalPool, DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(ThreadFromGlobalPool*, DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:1876:31
node1_1 | #7 0x1de8675d in void std::__1::allocator_traits<std::__1::allocator<ThreadFromGlobalPool> >::__construct<ThreadFromGlobalPool, DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(std::__1::integral_constant<bool, true>, std::__1::allocator<ThreadFromGlobalPool>&, ThreadFromGlobalPool*, DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:1768:18
node1_1 | #8 0x1de8675d in void std::__1::allocator_traits<std::__1::allocator<ThreadFromGlobalPool> >::construct<ThreadFromGlobalPool, DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(std::__1::allocator<ThreadFromGlobalPool>&, ThreadFromGlobalPool*, DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:1595:14
node1_1 | #9 0x1de7d50f in void std::__1::vector<ThreadFromGlobalPool, std::__1::allocator<ThreadFromGlobalPool> >::__construct_one_at_end<DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:924:5
node1_1 | #10 0x1de7d50f in ThreadFromGlobalPool& std::__1::vector<ThreadFromGlobalPool, std::__1::allocator<ThreadFromGlobalPool> >::emplace_back<DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:1683:9
node1_1 | #11 0x1de7d50f in DB::PipelineExecutor::executeImpl(unsigned long) /build/obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:720:21
node1_1 | #12 0x1de7cdbe in DB::PipelineExecutor::execute(unsigned long) /build/obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:399:9
node1_1 | #13 0x1de9cff2 in DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::__1::shared_ptr<DB::ThreadGroupStatus>, unsigned long) /build/obj-x86_64-linux-gnu/../src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:79:24
node1_1 | #14 0x1de9cff2 in DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const /build/obj-x86_64-linux-gnu/../src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:101:13
node1_1 | #15 0x1de9cff2 in decltype(std::__1::forward<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>(fp)()) std::__1::__invoke_constexpr<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3525:1
node1_1 | #16 0x1de9cff2 in decltype(auto) std::__1::__apply_tuple_impl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/tuple:1415:1
node1_1 | #17 0x1de9cff2 in decltype(auto) std::__1::apply<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/tuple:1424:1
node1_1 | #18 0x1de9cff2 in ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.h:178:13
node1_1 | #19 0x1de9cff2 in decltype(std::__1::forward<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3519:1
node1_1 | #20 0x1de9cff2 in void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&...) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/__functional_base:348:9
node1_1 | #21 0x1de9cff2 in std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()>, void ()>::operator()() /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1540:16
node1_1 | #22 0x1de9cff2 in std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()>, void ()>::operator()() /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1714:12
node1_1 | #23 0xa140fc6 in std::__1::__function::__value_func<void ()>::operator()() const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1867:16
node1_1 | #24 0xa140fc6 in std::__1::function<void ()>::operator()() const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2473:12
node1_1 | #25 0xa140fc6 in ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:236:17
node1_1 | #26 0xa14a1b3 in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:117:73
node1_1 | #27 0xa14a1b3 in decltype(std::__1::forward<void>(fp)(std::__1::forward<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(fp0)...)) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()&&...) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3519:1
node1_1 | #28 0xa14a1b3 in void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(std::__1::tuple<void, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>&, std::__1::__tuple_indices<>) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:273:5
node1_1 | #29 0xa14a1b3 in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()> >(void*) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:284:5
node1_1 | #30 0x7fc482012668 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9668)
node1_1 |
node1_1 | Thread T42 (QueryPipelineEx) created by T9 (SystemLogFlush) here:
node1_1 | #0 0xa015aca in pthread_create (/usr/bin/clickhouse+0xa015aca)
node1_1 | #1 0xa14826d in std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/__threading_support:394:10
node1_1 | #2 0xa14826d in std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()&&...) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:300:16
node1_1 | #3 0xa13e2bd in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:117:35
node1_1 | #4 0xa13f523 in ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:153:5
node1_1 | #5 0xa14c86f in ThreadFromGlobalPool::ThreadFromGlobalPool<void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&, void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()&&...) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.h:162:38
node1_1 | #6 0xa142f13 in void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:117:35
node1_1 | #7 0xa14265b in ThreadPoolImpl<ThreadFromGlobalPool>::scheduleOrThrowOnError(std::__1::function<void ()>, int) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:141:5
node1_1 | #8 0x1d70c458 in DB::MergeTreeData::loadDataParts(bool) /build/obj-x86_64-linux-gnu/../src/Storages/MergeTree/MergeTreeData.cpp:771:14
node1_1 | #9 0x1d214b94 in DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::StorageInMemoryMetadata const&, bool, DB::Context&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::MergeTreeData::MergingParams const&, std::__1::unique_ptr<DB::MergeTreeSettings, std::__1::default_delete<DB::MergeTreeSettings> >, bool) /build/obj-x86_64-linux-gnu/../src/Storages/StorageMergeTree.cpp:87:5
node1_1 | #10 0x1db9a09b in std::__1::shared_ptr<DB::StorageMergeTree> ext::shared_ptr_helper<DB::StorageMergeTree>::create<DB::StorageID const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::StorageInMemoryMetadata&, bool const&, DB::Context&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::MergeTreeData::MergingParams&, std::__1::unique_ptr<DB::MergeTreeSettings, std::__1::default_delete<DB::MergeTreeSettings> >, bool const&>(DB::StorageID const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::StorageInMemoryMetadata&, bool const&, DB::Context&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::MergeTreeData::MergingParams&, std::__1::unique_ptr<DB::MergeTreeSettings, std::__1::default_delete<DB::MergeTreeSettings> >&&, bool const&) /build/obj-x86_64-linux-gnu/../base/common/../ext/shared_ptr_helper.h:19:39
node1_1 | #11 0x1db8979a in DB::create(DB::StorageFactory::Arguments const&) /build/obj-x86_64-linux-gnu/../src/Storages/MergeTree/registerStorageMergeTree.cpp:772:16
node1_1 | #12 0x1d605014 in decltype(std::__1::forward<std::__1::shared_ptr<DB::IStorage> (*&)(DB::StorageFactory::Arguments const&)>(fp)(std::__1::forward<DB::StorageFactory::Arguments const&>(fp0))) std::__1::__invoke<std::__1::shared_ptr<DB::IStorage> (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::__1::shared_ptr<DB::IStorage> (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3519:1
node1_1 | #13 0x1d605014 in std::__1::shared_ptr<DB::IStorage> std::__1::__invoke_void_return_wrapper<std::__1::shared_ptr<DB::IStorage> >::__call<std::__1::shared_ptr<DB::IStorage> (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::__1::shared_ptr<DB::IStorage> (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/__functional_base:317:16
node1_1 | #14 0x1d605014 in std::__1::__function::__alloc_func<std::__1::shared_ptr<DB::IStorage> (*)(DB::StorageFactory::Arguments const&), std::__1::allocator<std::__1::shared_ptr<DB::IStorage> (*)(DB::StorageFactory::Arguments const&)>, std::__1::shared_ptr<DB::IStorage> (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1540:16
node1_1 | #15 0x1d605014 in std::__1::__function::__func<std::__1::shared_ptr<DB::IStorage> (*)(DB::StorageFactory::Arguments const&), std::__1::allocator<std::__1::shared_ptr<DB::IStorage> (*)(DB::StorageFactory::Arguments const&)>, std::__1::shared_ptr<DB::IStorage> (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1714:12
node1_1 | #16 0x1d08ddef in std::__1::__function::__value_func<std::__1::shared_ptr<DB::IStorage> (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1867:16
node1_1 | #17 0x1d08ddef in std::__1::function<std::__1::shared_ptr<DB::IStorage> (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2473:12
node1_1 | #18 0x1d08ddef in DB::StorageFactory::get(DB::ASTCreateQuery const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::Context&, DB::Context&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const /build/obj-x86_64-linux-gnu/../src/Storages/StorageFactory.cpp:183:16
node1_1 | #19 0x1c0a1253 in DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&) /build/obj-x86_64-linux-gnu/../src/Interpreters/InterpreterCreateQuery.cpp:786:42
node1_1 | #20 0x1c09e20b in DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) /build/obj-x86_64-linux-gnu/../src/Interpreters/InterpreterCreateQuery.cpp:714:20
node1_1 | #21 0x1c0a65a6 in DB::InterpreterCreateQuery::execute() /build/obj-x86_64-linux-gnu/../src/Interpreters/InterpreterCreateQuery.cpp:941:16
node1_1 | #22 0x1ca4b778 in DB::SystemLog<DB::MetricLogElement>::prepareTable() /build/obj-x86_64-linux-gnu/../src/Interpreters/SystemLog.h:526:21
node1_1 | #23 0x1ca51949 in DB::SystemLog<DB::MetricLogElement>::flushImpl(std::__1::vector<DB::MetricLogElement, std::__1::allocator<DB::MetricLogElement> > const&, unsigned long) /build/obj-x86_64-linux-gnu/../src/Interpreters/SystemLog.h:428:9
node1_1 | #24 0x1ca4f701 in DB::SystemLog<DB::MetricLogElement>::savingThreadFunction() /build/obj-x86_64-linux-gnu/../src/Interpreters/SystemLog.h:405:17
node1_1 | #25 0x1ca4f0d7 in DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()::operator()() const /build/obj-x86_64-linux-gnu/../src/Interpreters/SystemLog.h:228:51
node1_1 | #26 0x1ca4f0d7 in decltype(std::__1::forward<DB::MetricLogElement>(fp)(std::__1::forward<DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()&>(fp0)...)) std::__1::__invoke_constexpr<DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()&>(DB::MetricLogElement&&, DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()&...) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3525:1
node1_1 | #27 0x1ca4f0d7 in decltype(auto) std::__1::__apply_tuple_impl<DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()&, std::__1::tuple<>&>(DB::MetricLogElement&&, DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()&, std::__1::__tuple_indices<std::__1::tuple<>&...>) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/tuple:1415:1
node1_1 | #28 0x1ca4f0d7 in decltype(auto) std::__1::apply<DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()&, std::__1::tuple<>&>(DB::MetricLogElement&&, DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/tuple:1424:1
node1_1 | #29 0x1ca4f0d7 in ThreadFromGlobalPool::ThreadFromGlobalPool<DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()>(DB::MetricLogElement&&, DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()&&...)::'lambda'()::operator()() /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.h:178:13
node1_1 | #30 0xa140fc6 in std::__1::__function::__value_func<void ()>::operator()() const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:1867:16
node1_1 | #31 0xa140fc6 in std::__1::function<void ()>::operator()() const /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2473:12
node1_1 | #32 0xa140fc6 in ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:236:17
node1_1 | #33 0xa14a1b3 in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:117:73
node1_1 | #34 0xa14a1b3 in decltype(std::__1::forward<void>(fp)(std::__1::forward<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(fp0)...)) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()&&...) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3519:1
node1_1 | #35 0xa14a1b3 in void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(std::__1::tuple<void, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>&, std::__1::__tuple_indices<>) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:273:5
node1_1 | #36 0xa14a1b3 in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()> >(void*) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:284:5
node1_1 | #37 0x7fc482012668 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9668)
node1_1 |
node1_1 | Thread T9 (SystemLogFlush) created by T0 here:
node1_1 | #0 0xa015aca in pthread_create (/usr/bin/clickhouse+0xa015aca)
node1_1 | #1 0xa14826d in std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/__threading_support:394:10
node1_1 | #2 0xa14826d in std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()&&...) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:300:16
node1_1 | #3 0xa13e2bd in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:117:35
node1_1 | #4 0xa13f523 in ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:153:5
node1_1 | #5 0x1ca4e5a9 in ThreadFromGlobalPool::ThreadFromGlobalPool<DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()>(DB::MetricLogElement&&, DB::SystemLog<DB::MetricLogElement>::startup()::'lambda'()&&...) /build/obj-x86_64-linux-gnu/../src/Common/ThreadPool.h:162:38
node1_1 | #6 0x1ca4da14 in DB::SystemLog<DB::MetricLogElement>::startup() /build/obj-x86_64-linux-gnu/../src/Interpreters/SystemLog.h:228:21
node1_1 | #7 0x1c9e32e8 in DB::SystemLogs::SystemLogs(DB::Context&, Poco::Util::AbstractConfiguration const&) /build/obj-x86_64-linux-gnu/../src/Interpreters/SystemLog.cpp:118:18
node1_1 | #8 0x1b9e030f in void std::__1::__optional_storage_base<DB::SystemLogs, false>::__construct<DB::Context&, Poco::Util::AbstractConfiguration const&>(DB::Context&, Poco::Util::AbstractConfiguration const&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/optional:323:54
node1_1 | #9 0x1b9e030f in DB::SystemLogs& std::__1::optional<DB::SystemLogs>::emplace<DB::Context&, Poco::Util::AbstractConfiguration const&, void>(DB::Context&, Poco::Util::AbstractConfiguration const&) /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/optional:829:15
node1_1 | #10 0x1b9e030f in DB::Context::initializeSystemLogs() /build/obj-x86_64-linux-gnu/../src/Interpreters/Context.cpp:1727:25
node1_1 | #11 0xa076d99 in DB::Server::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) /build/obj-x86_64-linux-gnu/../programs/server/Server.cpp:682:25
node1_1 | #12 0x24081f45 in Poco::Util::Application::run() /build/obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:334:8
node1_1 | #13 0xa06146f in DB::Server::run() /build/obj-x86_64-linux-gnu/../programs/server/Server.cpp:206:25
node1_1 | #14 0x240bb3c0 in Poco::Util::ServerApplication::run(int, char**) /build/obj-x86_64-linux-gnu/../contrib/poco/Util/src/ServerApplication.cpp:611:9
node1_1 | #15 0xa060691 in mainEntryClickHouseServer(int, char**) /build/obj-x86_64-linux-gnu/../programs/server/Server.cpp:100:20
node1_1 | #16 0xa05e553 in main /build/obj-x86_64-linux-gnu/../programs/main.cpp:400:12
node1_1 | #17 0x7fc481e2e1e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2)
node1_1 |
node1_1 | SUMMARY: AddressSanitizer: stack-use-after-scope /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/string:1426:39 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__is_long() const
node1_1 | Shadow bytes around the buggy address:
node1_1 | 0x0ff8f38bbe20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
node1_1 | 0x0ff8f38bbe30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
node1_1 | 0x0ff8f38bbe40: 00 00 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2
node1_1 | 0x0ff8f38bbe50: f2 f2 f8 f8 f8 f2 f2 f2 f2 f2 f8 f8 f8 f8 f8 f8
node1_1 | 0x0ff8f38bbe60: f8 f8 f8 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00
node1_1 | =>0x0ff8f38bbe70: 00 f2 f2 f2 f2 f2[f8]f8 f8 f8 f8 f8 f8 f8 f3 f3
node1_1 | 0x0ff8f38bbe80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
node1_1 | 0x0ff8f38bbe90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
node1_1 | 0x0ff8f38bbea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
node1_1 | 0x0ff8f38bbeb0: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
node1_1 | 0x0ff8f38bbec0: f8 f2 f2 f2 f8 f2 f8 f2 f2 f2 f8 f2 f2 f2 f8 f8
node1_1 | Shadow byte legend (one shadow byte represents 8 application bytes):
node1_1 | Addressable: 00
node1_1 | Partially addressable: 01 02 03 04 05 06 07
node1_1 | Heap left redzone: fa
node1_1 | Freed heap region: fd
node1_1 | Stack left redzone: f1
node1_1 | Stack mid redzone: f2
node1_1 | Stack right redzone: f3
node1_1 | Stack after return: f5
node1_1 | Stack use after scope: f8
node1_1 | Global redzone: f9
node1_1 | Global init order: f6
node1_1 | Poisoned by user: f7
node1_1 | Container overflow: fc
node1_1 | Array cookie: ac
node1_1 | Intra object redzone: bb
node1_1 | ASan internal: fe
node1_1 | Left alloca redzone: ca
node1_1 | Right alloca redzone: cb
node1_1 | Shadow gap: cc
node1_1 | ==1==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment