Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
==================
WARNING: ThreadSanitizer: data race (pid=1)
Write of size 4 at 0x7b3c00006274 by main thread (mutexes: write M3123):
#0 evp_cipher_cache_constants /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_lib.c:296:28 (clickhouse+0x13b94fb9)
#1 EVP_CIPHER_fetch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:1614:28 (clickhouse+0x13b902d2)
#2 drbg_ctr_init /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_ctr.c (clickhouse+0x13c09f3f)
#3 RAND_DRBG_set /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:339:15 (clickhouse+0x13c0740d)
#4 rand_drbg_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:448:9 (clickhouse+0x13c07839)
#5 RAND_DRBG_secure_new_ex /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:487:12 (clickhouse+0x13c092df)
#6 drbg_setup /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1133:12 (clickhouse+0x13c092df)
#7 OPENSSL_CTX_get0_public_drbg /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1363:16 (clickhouse+0x13c092df)
#8 RAND_bytes_ex /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/rand_lib.c:890:12 (clickhouse+0x13c0faca)
#9 SSL_CTX_new_with_libctx /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:3194:10 (clickhouse+0x13a6266f)
#10 SSL_CTX_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:3288:12 (clickhouse+0x13a62a1d)
#11 Poco::Net::Context::createSSLContext() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/Context.cpp (clickhouse+0x10fb0fe8)
#12 Poco::Net::Context::init(Poco::Net::Context::Params const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/Context.cpp:118:2 (clickhouse+0x10fb022c)
#13 Poco::Net::Context::Context(Poco::Net::Context::Usage, Poco::Net::Context::Params const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/Context.cpp:48:2 (clickhouse+0x10fb01bb)
#14 Poco::Net::SSLManager::initDefaultContext(bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:297:34 (clickhouse+0x10fb5689)
#15 Poco::Net::SSLManager::defaultServerContext() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:130:3 (clickhouse+0x10fb4f02)
#16 DB::MySQLHandlerFactory::MySQLHandlerFactory(DB::IServer&) /home/alesap/code/cpp/ClickHouse/programs/server/MySQLHandlerFactory.cpp:32:43 (clickhouse+0x955e3c8)
#17 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&)::$_8::operator()(unsigned short) const /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:914:25 (clickhouse+0x9463634)
#18 auto 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&)::$_1::operator()<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&)::$_8>(char const*, 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&)::$_8&&) const /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:770:21 (clickhouse+0x9463634)
#19 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&) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:907:13 (clickhouse+0x9463634)
#20 Poco::Util::Application::run() /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/Application.cpp:334:8 (clickhouse+0x1103a84d)
#21 DB::Server::run() /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:182:25 (clickhouse+0x9456493)
#22 Poco::Util::ServerApplication::run(int, char**) /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/ServerApplication.cpp:611:9 (clickhouse+0x110565e8)
#23 mainEntryClickHouseServer(int, char**) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:1073:20 (clickhouse+0x9473bb3)
#24 main /home/alesap/code/cpp/ClickHouse/programs/main.cpp:317:12 (clickhouse+0x944ee12)
Previous read of size 4 at 0x7b3c00006274 by thread T10 (mutexes: write M2963, write M2964):
#0 EVP_CIPHER_block_size /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_lib.c:306:20 (clickhouse+0x13b95095)
#1 EVP_CIPHER_CTX_block_size /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_lib.c:311:12 (clickhouse+0x13b95095)
#2 EVP_EncryptUpdate /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:712:17 (clickhouse+0x13b90d94)
#3 EVP_CipherUpdate /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:528:16 (clickhouse+0x13b90ce8)
#4 drbg_ctr_generate /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_ctr.c:339:14 (clickhouse+0x13c0a413)
#5 RAND_DRBG_generate /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:895:10 (clickhouse+0x13c08abb)
#6 RAND_DRBG_bytes /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:936:15 (clickhouse+0x13c08c08)
#7 RAND_bytes_ex /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/rand_lib.c:892:16 (clickhouse+0x13c0fadd)
#8 tls_construct_client_hello /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/statem_clnt.c:1204:24 (clickhouse+0x13aa2746)
#9 write_state_machine /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/statem.c:844:37 (clickhouse+0x13a9f44f)
#10 state_machine /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/statem.c:444:21 (clickhouse+0x13a9f44f)
#11 ossl_statem_connect /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/statem.c:251:12 (clickhouse+0x13a9ed9b)
#12 SSL_do_handshake /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:3802:19 (clickhouse+0x13a5f260)
#13 SSL_connect /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:1717:12 (clickhouse+0x13a5f301)
#14 Poco::Net::SecureSocketImpl::connectSSL(bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:199:11 (clickhouse+0x10fc3cfc)
#15 Poco::Net::SecureSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&, bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:144:2 (clickhouse+0x10fc4132)
#16 Poco::Net::SecureStreamSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocketImpl.cpp:87:8 (clickhouse+0x10fc9234)
#17 Poco::Net::StreamSocket::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/Net/src/StreamSocket.cpp:84:10 (clickhouse+0x11025c4f)
#18 Coordination::ZooKeeper::connect(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:912:24 (clickhouse+0x10b16d44)
#19 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:869:5 (clickhouse+0x10b160c0)
#20 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#21 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#22 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#23 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#24 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#25 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#26 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#27 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#28 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#29 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#30 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#31 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#32 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#33 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#34 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#35 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#36 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#37 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#38 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#39 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#40 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#41 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#42 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#43 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#44 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Location is heap block of size 232 at 0x7b3c00006270 allocated by main thread:
#0 malloc <null> (clickhouse+0x93bbf24)
#1 CRYPTO_malloc /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/mem.c:192:11 (clickhouse+0x13bc8941)
#2 CRYPTO_zalloc /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/mem.c:199:17 (clickhouse+0x13bc8941)
#3 evp_cipher_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:1425:26 (clickhouse+0x13b92ee9)
#4 evp_cipher_from_dispatch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:1476:19 (clickhouse+0x13b92ee9)
#5 construct_evp_method /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_fetch.c:191:12 (clickhouse+0x13b94028)
#6 ossl_method_construct_this /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/core_fetch.c:34:19 (clickhouse+0x13bb7fbf)
#7 algorithm_do_this /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/core_algorithm.c:50:13 (clickhouse+0x13bb7e00)
#8 provider_forall_loaded /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/provider_core.c:584:25 (clickhouse+0x13bd36c8)
#9 ossl_provider_forall_loaded /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/provider_core.c:653:15 (clickhouse+0x13bd36c8)
#10 ossl_algorithm_do_all /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/core_algorithm.c:72:9 (clickhouse+0x13bb7ce8)
#11 ossl_method_construct /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/core_fetch.c:88:9 (clickhouse+0x13bb7f17)
#12 inner_evp_generic_fetch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_fetch.c:269:23 (clickhouse+0x13b938b6)
#13 evp_generic_fetch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_fetch.c:297:12 (clickhouse+0x13b93703)
#14 EVP_CIPHER_fetch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:1610:9 (clickhouse+0x13b902c2)
#15 drbg_ctr_init /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_ctr.c (clickhouse+0x13c09f3f)
#16 RAND_DRBG_set /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:339:15 (clickhouse+0x13c0740d)
#17 rand_drbg_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:448:9 (clickhouse+0x13c07839)
#18 RAND_DRBG_secure_new_ex /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:487:12 (clickhouse+0x13c09c75)
#19 drbg_setup /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1133:12 (clickhouse+0x13c09c75)
#20 drbg_ossl_ctx_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:175:25 (clickhouse+0x13c09c75)
#21 openssl_ctx_generic_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/context.c:172:17 (clickhouse+0x13bb7b63)
#22 CRYPTO_alloc_ex_data /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/ex_data.c:419:5 (clickhouse+0x13bbaeab)
#23 openssl_ctx_get_data /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/context.c:248:9 (clickhouse+0x13bb787f)
#24 drbg_get_global /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:251:12 (clickhouse+0x13c098d8)
#25 OPENSSL_CTX_get0_master_drbg /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1328:25 (clickhouse+0x13c098d8)
#26 RAND_DRBG_get0_master /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1338:12 (clickhouse+0x13c098d8)
#27 drbg_add /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1232:23 (clickhouse+0x13c098d8)
#28 drbg_seed /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1303:12 (clickhouse+0x13c09832)
#29 RAND_seed /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/rand_lib.c:838:9 (clickhouse+0x13c0f8fd)
#30 Poco::Crypto::OpenSSLInitializer::initialize() /home/alesap/code/cpp/ClickHouse/contrib/poco/Crypto/src/OpenSSLInitializer.cpp:98:3 (clickhouse+0x10fcaaa1)
#31 Poco::Crypto::initializeCrypto() /home/alesap/code/cpp/ClickHouse/contrib/poco/Crypto/src/OpenSSLInitializer.cpp:180:2 (clickhouse+0x10fcb043)
#32 Poco::Net::initializeSSL() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:449:2 (clickhouse+0x10fb7b43)
#33 DB::UseSSL::UseSSL() /home/alesap/code/cpp/ClickHouse/src/IO/UseSSL.cpp:16:5 (clickhouse+0x953a923)
#34 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&) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:214:12 (clickhouse+0x9456fe3)
#35 Poco::Util::Application::run() /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/Application.cpp:334:8 (clickhouse+0x1103a84d)
#36 DB::Server::run() /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:182:25 (clickhouse+0x9456493)
#37 Poco::Util::ServerApplication::run(int, char**) /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/ServerApplication.cpp:611:9 (clickhouse+0x110565e8)
#38 mainEntryClickHouseServer(int, char**) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:1073:20 (clickhouse+0x9473bb3)
#39 main /home/alesap/code/cpp/ClickHouse/programs/main.cpp:317:12 (clickhouse+0x944ee12)
Mutex M3123 (0x7b50000101d0) created at:
#0 pthread_mutex_init <null> (clickhouse+0x93bee4d)
#1 Poco::MutexImpl::MutexImpl(bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/Foundation/src/Mutex_POSIX.cpp:89:6 (clickhouse+0x139666af)
#2 Poco::FastMutexImpl::FastMutexImpl() /home/alesap/code/cpp/ClickHouse/contrib/poco/Foundation/src/Mutex_POSIX.cpp:165:33 (clickhouse+0x1396697e)
#3 Poco::FastMutex::FastMutex() /home/alesap/code/cpp/ClickHouse/contrib/poco/Foundation/src/Mutex.cpp:44:12 (clickhouse+0x1396697e)
#4 Poco::Net::SSLManager::SSLManager() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:69:13 (clickhouse+0x10fb3f56)
#5 Poco::SingletonHolder<Poco::Net::SSLManager>::get() /home/alesap/code/cpp/ClickHouse/contrib/poco/Foundation/include/Poco/SingletonHolder.h:56:23 (clickhouse+0x10fb8068)
#6 Poco::Net::SSLManager::instance() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:105:20 (clickhouse+0x10fb4a38)
#7 Poco::Net::SecureStreamSocket::SecureStreamSocket() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocket.cpp:30:42 (clickhouse+0x10fc5f1c)
#8 Coordination::ZooKeeper::connect(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:902:30 (clickhouse+0x10b16cf6)
#9 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:869:5 (clickhouse+0x10b160c0)
#10 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#11 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#12 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#13 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#14 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#15 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#16 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#17 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#18 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#19 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#20 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#21 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#22 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#23 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#24 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#25 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#26 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#27 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#28 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#29 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#30 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#31 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#32 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#33 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#34 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Mutex M2963 (0x7b4400004538) created at:
#0 pthread_mutex_lock <null> (clickhouse+0x93dba66)
#1 std::__1::__libcpp_mutex_lock(pthread_mutex_t*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:322:10 (clickhouse+0x14859db9)
#2 std::__1::mutex::lock() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/src/mutex.cpp:33:14 (clickhouse+0x14859db9)
#3 std::__1::lock_guard<std::__1::mutex>::lock_guard(std::__1::mutex&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__mutex_base:91:27 (clickhouse+0xfb5d35b)
#4 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:270:21 (clickhouse+0xfb5d35b)
#5 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#6 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#7 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#8 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#9 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#10 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#11 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#12 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#13 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#14 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#15 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#16 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#17 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#18 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#19 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#20 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Mutex M2964 (0x7b84000000a8) created at:
#0 pthread_mutex_lock <null> (clickhouse+0x93dba66)
#1 std::__1::__libcpp_mutex_lock(pthread_mutex_t*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:322:10 (clickhouse+0x14859db9)
#2 std::__1::mutex::lock() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/src/mutex.cpp:33:14 (clickhouse+0x14859db9)
#3 std::__1::lock_guard<std::__1::mutex>::lock_guard(std::__1::mutex&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__mutex_base:91:27 (clickhouse+0xfb36e88)
#4 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1393:21 (clickhouse+0xfb36e88)
#5 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#6 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#7 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#8 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#9 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#10 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#11 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#12 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#13 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#14 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#15 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#16 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#17 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#18 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#19 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#20 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#21 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Thread T10 'DDLWorker' (tid=16, running) created by main thread at:
#0 pthread_create <null> (clickhouse+0x93bd80b)
#1 std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:394:10 (clickhouse+0x94ca6a1)
#2 std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:300:16 (clickhouse+0x94ca6a1)
#3 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:35 (clickhouse+0x94c5189)
#4 ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:141:5 (clickhouse+0x94c5ad8)
#5 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:150:38 (clickhouse+0xfb6e884)
#6 DB::DDLWorker::DDLWorker(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::Context&, Poco::Util::AbstractConfiguration const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:247:19 (clickhouse+0xfb59ac4)
#7 std::__1::__unique_if<DB::DDLWorker>::__unique_single std::__1::make_unique<DB::DDLWorker, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::Context&, Poco::Util::LayeredConfiguration*, char const (&) [16]>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::Context&, Poco::Util::LayeredConfiguration*&&, char const (&) [16]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x9476b45)
#8 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&) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:650:38 (clickhouse+0x945fcf3)
#9 Poco::Util::Application::run() /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/Application.cpp:334:8 (clickhouse+0x1103a84d)
#10 DB::Server::run() /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:182:25 (clickhouse+0x9456493)
#11 Poco::Util::ServerApplication::run(int, char**) /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/ServerApplication.cpp:611:9 (clickhouse+0x110565e8)
#12 mainEntryClickHouseServer(int, char**) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:1073:20 (clickhouse+0x9473bb3)
#13 main /home/alesap/code/cpp/ClickHouse/programs/main.cpp:317:12 (clickhouse+0x944ee12)
SUMMARY: ThreadSanitizer: data race /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_lib.c:296:28 in evp_cipher_cache_constants
==================
==================
WARNING: ThreadSanitizer: data race (pid=1)
Read of size 4 at 0x7b3c00006274 by thread T10 (mutexes: write M2963, write M2964):
#0 EVP_CIPHER_block_size /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_lib.c:306:20 (clickhouse+0x13b95095)
#1 EVP_CIPHER_CTX_block_size /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_lib.c:311:12 (clickhouse+0x13b95095)
#2 EVP_EncryptUpdate /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:712:17 (clickhouse+0x13b90d94)
#3 EVP_CipherUpdate /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:528:16 (clickhouse+0x13b90ce8)
#4 ctr_update /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_ctr.c:237:10 (clickhouse+0x13c0a5c3)
#5 drbg_ctr_generate /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_ctr.c:315:14 (clickhouse+0x13c0a337)
#6 RAND_DRBG_generate /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:895:10 (clickhouse+0x13c08abb)
#7 RAND_DRBG_bytes /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:936:15 (clickhouse+0x13c08c08)
#8 RAND_priv_bytes_ex /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/rand_lib.c:868:16 (clickhouse+0x13c0f9dd)
#9 bnrand /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bn/bn_rand.c:51:26 (clickhouse+0x13b188b2)
#10 bnrand_range /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bn/bn_rand.c:182:18 (clickhouse+0x13b18d7c)
#11 BN_priv_rand_range_ex /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bn/bn_rand.c:211:12 (clickhouse+0x13b18efe)
#12 ec_key_simple_generate_key /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/ec/ec_key.c:264:14 (clickhouse+0x13b31c4d)
#13 ossl_ec_key_gen /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/ec/ec_key.c:214:12 (clickhouse+0x13b31b9f)
#14 EC_KEY_generate_key /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/ec/ec_key.c:207:16 (clickhouse+0x13b31af9)
#15 pkey_ec_keygen /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/ec/ec_pmeth.c:437:18 (clickhouse+0x13baddda)
#16 EVP_PKEY_keygen /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/pmeth_gn.c:110:11 (clickhouse+0x13ba4eae)
#17 ssl_generate_pkey_group /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/s3_lib.c:4771:9 (clickhouse+0x13a4deb9)
#18 add_key_share /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/extensions_clnt.c:642:25 (clickhouse+0x13a94ac7)
#19 tls_construct_ctos_key_share /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/extensions_clnt.c:728:10 (clickhouse+0x13a94ac7)
#20 tls_construct_extensions /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/extensions.c:852:15 (clickhouse+0x13a91214)
#21 tls_construct_client_hello /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/statem_clnt.c:1289:10 (clickhouse+0x13aa2678)
#22 write_state_machine /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/statem.c:844:37 (clickhouse+0x13a9f44f)
#23 state_machine /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/statem.c:444:21 (clickhouse+0x13a9f44f)
#24 ossl_statem_connect /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/statem/statem.c:251:12 (clickhouse+0x13a9ed9b)
#25 SSL_do_handshake /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:3802:19 (clickhouse+0x13a5f260)
#26 SSL_connect /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:1717:12 (clickhouse+0x13a5f301)
#27 Poco::Net::SecureSocketImpl::connectSSL(bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:199:11 (clickhouse+0x10fc3cfc)
#28 Poco::Net::SecureSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&, bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:144:2 (clickhouse+0x10fc4132)
#29 Poco::Net::SecureStreamSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocketImpl.cpp:87:8 (clickhouse+0x10fc9234)
#30 Poco::Net::StreamSocket::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/Net/src/StreamSocket.cpp:84:10 (clickhouse+0x11025c4f)
#31 Coordination::ZooKeeper::connect(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:912:24 (clickhouse+0x10b16d44)
#32 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:869:5 (clickhouse+0x10b160c0)
#33 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#34 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#35 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#36 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#37 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#38 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#39 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#40 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#41 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#42 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#43 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#44 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#45 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#46 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#47 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#48 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#49 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#50 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#51 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#52 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#53 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#54 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#55 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#56 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#57 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Previous write of size 4 at 0x7b3c00006274 by main thread (mutexes: write M3123):
#0 evp_cipher_cache_constants /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_lib.c:296:28 (clickhouse+0x13b94fb9)
#1 EVP_CIPHER_fetch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:1614:28 (clickhouse+0x13b902d2)
#2 drbg_ctr_init /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_ctr.c (clickhouse+0x13c09f3f)
#3 RAND_DRBG_set /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:339:15 (clickhouse+0x13c0740d)
#4 rand_drbg_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:448:9 (clickhouse+0x13c07839)
#5 RAND_DRBG_secure_new_ex /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:487:12 (clickhouse+0x13c092df)
#6 drbg_setup /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1133:12 (clickhouse+0x13c092df)
#7 OPENSSL_CTX_get0_public_drbg /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1363:16 (clickhouse+0x13c092df)
#8 RAND_bytes_ex /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/rand_lib.c:890:12 (clickhouse+0x13c0faca)
#9 SSL_CTX_new_with_libctx /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:3194:10 (clickhouse+0x13a6266f)
#10 SSL_CTX_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:3288:12 (clickhouse+0x13a62a1d)
#11 Poco::Net::Context::createSSLContext() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/Context.cpp (clickhouse+0x10fb0fe8)
#12 Poco::Net::Context::init(Poco::Net::Context::Params const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/Context.cpp:118:2 (clickhouse+0x10fb022c)
#13 Poco::Net::Context::Context(Poco::Net::Context::Usage, Poco::Net::Context::Params const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/Context.cpp:48:2 (clickhouse+0x10fb01bb)
#14 Poco::Net::SSLManager::initDefaultContext(bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:297:34 (clickhouse+0x10fb5689)
#15 Poco::Net::SSLManager::defaultServerContext() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:130:3 (clickhouse+0x10fb4f02)
#16 DB::MySQLHandlerFactory::MySQLHandlerFactory(DB::IServer&) /home/alesap/code/cpp/ClickHouse/programs/server/MySQLHandlerFactory.cpp:32:43 (clickhouse+0x955e3c8)
#17 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&)::$_8::operator()(unsigned short) const /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:914:25 (clickhouse+0x9463634)
#18 auto 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&)::$_1::operator()<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&)::$_8>(char const*, 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&)::$_8&&) const /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:770:21 (clickhouse+0x9463634)
#19 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&) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:907:13 (clickhouse+0x9463634)
#20 Poco::Util::Application::run() /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/Application.cpp:334:8 (clickhouse+0x1103a84d)
#21 DB::Server::run() /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:182:25 (clickhouse+0x9456493)
#22 Poco::Util::ServerApplication::run(int, char**) /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/ServerApplication.cpp:611:9 (clickhouse+0x110565e8)
#23 mainEntryClickHouseServer(int, char**) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:1073:20 (clickhouse+0x9473bb3)
#24 main /home/alesap/code/cpp/ClickHouse/programs/main.cpp:317:12 (clickhouse+0x944ee12)
Location is heap block of size 232 at 0x7b3c00006270 allocated by main thread:
#0 malloc <null> (clickhouse+0x93bbf24)
#1 CRYPTO_malloc /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/mem.c:192:11 (clickhouse+0x13bc8941)
#2 CRYPTO_zalloc /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/mem.c:199:17 (clickhouse+0x13bc8941)
#3 evp_cipher_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:1425:26 (clickhouse+0x13b92ee9)
#4 evp_cipher_from_dispatch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:1476:19 (clickhouse+0x13b92ee9)
#5 construct_evp_method /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_fetch.c:191:12 (clickhouse+0x13b94028)
#6 ossl_method_construct_this /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/core_fetch.c:34:19 (clickhouse+0x13bb7fbf)
#7 algorithm_do_this /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/core_algorithm.c:50:13 (clickhouse+0x13bb7e00)
#8 provider_forall_loaded /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/provider_core.c:584:25 (clickhouse+0x13bd36c8)
#9 ossl_provider_forall_loaded /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/provider_core.c:653:15 (clickhouse+0x13bd36c8)
#10 ossl_algorithm_do_all /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/core_algorithm.c:72:9 (clickhouse+0x13bb7ce8)
#11 ossl_method_construct /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/core_fetch.c:88:9 (clickhouse+0x13bb7f17)
#12 inner_evp_generic_fetch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_fetch.c:269:23 (clickhouse+0x13b938b6)
#13 evp_generic_fetch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_fetch.c:297:12 (clickhouse+0x13b93703)
#14 EVP_CIPHER_fetch /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_enc.c:1610:9 (clickhouse+0x13b902c2)
#15 drbg_ctr_init /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_ctr.c (clickhouse+0x13c09f3f)
#16 RAND_DRBG_set /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:339:15 (clickhouse+0x13c0740d)
#17 rand_drbg_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:448:9 (clickhouse+0x13c07839)
#18 RAND_DRBG_secure_new_ex /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:487:12 (clickhouse+0x13c09c75)
#19 drbg_setup /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1133:12 (clickhouse+0x13c09c75)
#20 drbg_ossl_ctx_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:175:25 (clickhouse+0x13c09c75)
#21 openssl_ctx_generic_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/context.c:172:17 (clickhouse+0x13bb7b63)
#22 CRYPTO_alloc_ex_data /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/ex_data.c:419:5 (clickhouse+0x13bbaeab)
#23 openssl_ctx_get_data /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/context.c:248:9 (clickhouse+0x13bb787f)
#24 drbg_get_global /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:251:12 (clickhouse+0x13c098d8)
#25 OPENSSL_CTX_get0_master_drbg /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1328:25 (clickhouse+0x13c098d8)
#26 RAND_DRBG_get0_master /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1338:12 (clickhouse+0x13c098d8)
#27 drbg_add /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1232:23 (clickhouse+0x13c098d8)
#28 drbg_seed /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/drbg_lib.c:1303:12 (clickhouse+0x13c09832)
#29 RAND_seed /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/rand/rand_lib.c:838:9 (clickhouse+0x13c0f8fd)
#30 Poco::Crypto::OpenSSLInitializer::initialize() /home/alesap/code/cpp/ClickHouse/contrib/poco/Crypto/src/OpenSSLInitializer.cpp:98:3 (clickhouse+0x10fcaaa1)
#31 Poco::Crypto::initializeCrypto() /home/alesap/code/cpp/ClickHouse/contrib/poco/Crypto/src/OpenSSLInitializer.cpp:180:2 (clickhouse+0x10fcb043)
#32 Poco::Net::initializeSSL() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:449:2 (clickhouse+0x10fb7b43)
#33 DB::UseSSL::UseSSL() /home/alesap/code/cpp/ClickHouse/src/IO/UseSSL.cpp:16:5 (clickhouse+0x953a923)
#34 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&) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:214:12 (clickhouse+0x9456fe3)
#35 Poco::Util::Application::run() /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/Application.cpp:334:8 (clickhouse+0x1103a84d)
#36 DB::Server::run() /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:182:25 (clickhouse+0x9456493)
#37 Poco::Util::ServerApplication::run(int, char**) /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/ServerApplication.cpp:611:9 (clickhouse+0x110565e8)
#38 mainEntryClickHouseServer(int, char**) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:1073:20 (clickhouse+0x9473bb3)
#39 main /home/alesap/code/cpp/ClickHouse/programs/main.cpp:317:12 (clickhouse+0x944ee12)
Mutex M2963 (0x7b4400004538) created at:
#0 pthread_mutex_lock <null> (clickhouse+0x93dba66)
#1 std::__1::__libcpp_mutex_lock(pthread_mutex_t*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:322:10 (clickhouse+0x14859db9)
#2 std::__1::mutex::lock() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/src/mutex.cpp:33:14 (clickhouse+0x14859db9)
#3 std::__1::lock_guard<std::__1::mutex>::lock_guard(std::__1::mutex&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__mutex_base:91:27 (clickhouse+0xfb5d35b)
#4 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:270:21 (clickhouse+0xfb5d35b)
#5 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#6 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#7 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#8 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#9 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#10 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#11 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#12 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#13 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#14 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#15 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#16 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#17 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#18 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#19 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#20 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Mutex M2964 (0x7b84000000a8) created at:
#0 pthread_mutex_lock <null> (clickhouse+0x93dba66)
#1 std::__1::__libcpp_mutex_lock(pthread_mutex_t*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:322:10 (clickhouse+0x14859db9)
#2 std::__1::mutex::lock() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/src/mutex.cpp:33:14 (clickhouse+0x14859db9)
#3 std::__1::lock_guard<std::__1::mutex>::lock_guard(std::__1::mutex&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__mutex_base:91:27 (clickhouse+0xfb36e88)
#4 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1393:21 (clickhouse+0xfb36e88)
#5 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#6 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#7 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#8 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#9 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#10 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#11 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#12 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#13 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#14 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#15 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#16 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#17 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#18 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#19 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#20 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#21 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Mutex M3123 (0x7b50000101d0) created at:
#0 pthread_mutex_init <null> (clickhouse+0x93bee4d)
#1 Poco::MutexImpl::MutexImpl(bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/Foundation/src/Mutex_POSIX.cpp:89:6 (clickhouse+0x139666af)
#2 Poco::FastMutexImpl::FastMutexImpl() /home/alesap/code/cpp/ClickHouse/contrib/poco/Foundation/src/Mutex_POSIX.cpp:165:33 (clickhouse+0x1396697e)
#3 Poco::FastMutex::FastMutex() /home/alesap/code/cpp/ClickHouse/contrib/poco/Foundation/src/Mutex.cpp:44:12 (clickhouse+0x1396697e)
#4 Poco::Net::SSLManager::SSLManager() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:69:13 (clickhouse+0x10fb3f56)
#5 Poco::SingletonHolder<Poco::Net::SSLManager>::get() /home/alesap/code/cpp/ClickHouse/contrib/poco/Foundation/include/Poco/SingletonHolder.h:56:23 (clickhouse+0x10fb8068)
#6 Poco::Net::SSLManager::instance() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SSLManager.cpp:105:20 (clickhouse+0x10fb4a38)
#7 Poco::Net::SecureStreamSocket::SecureStreamSocket() /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocket.cpp:30:42 (clickhouse+0x10fc5f1c)
#8 Coordination::ZooKeeper::connect(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:902:30 (clickhouse+0x10b16cf6)
#9 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:869:5 (clickhouse+0x10b160c0)
#10 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#11 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#12 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#13 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#14 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#15 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#16 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#17 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#18 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#19 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#20 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#21 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#22 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#23 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#24 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#25 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#26 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#27 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#28 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#29 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#30 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#31 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#32 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#33 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#34 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Thread T10 'DDLWorker' (tid=16, running) created by main thread at:
#0 pthread_create <null> (clickhouse+0x93bd80b)
#1 std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:394:10 (clickhouse+0x94ca6a1)
#2 std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:300:16 (clickhouse+0x94ca6a1)
#3 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:35 (clickhouse+0x94c5189)
#4 ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:141:5 (clickhouse+0x94c5ad8)
#5 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:150:38 (clickhouse+0xfb6e884)
#6 DB::DDLWorker::DDLWorker(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::Context&, Poco::Util::AbstractConfiguration const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:247:19 (clickhouse+0xfb59ac4)
#7 std::__1::__unique_if<DB::DDLWorker>::__unique_single std::__1::make_unique<DB::DDLWorker, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::Context&, Poco::Util::LayeredConfiguration*, char const (&) [16]>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::Context&, Poco::Util::LayeredConfiguration*&&, char const (&) [16]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x9476b45)
#8 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&) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:650:38 (clickhouse+0x945fcf3)
#9 Poco::Util::Application::run() /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/Application.cpp:334:8 (clickhouse+0x1103a84d)
#10 DB::Server::run() /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:182:25 (clickhouse+0x9456493)
#11 Poco::Util::ServerApplication::run(int, char**) /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/ServerApplication.cpp:611:9 (clickhouse+0x110565e8)
#12 mainEntryClickHouseServer(int, char**) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:1073:20 (clickhouse+0x9473bb3)
#13 main /home/alesap/code/cpp/ClickHouse/programs/main.cpp:317:12 (clickhouse+0x944ee12)
SUMMARY: ThreadSanitizer: data race /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/evp/evp_lib.c:306:20 in EVP_CIPHER_block_size
==================
==================
WARNING: ThreadSanitizer: data race (pid=1)
Write of size 4 at 0x7b9000010028 by thread T42:
#0 ssl3_read_bytes /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c:1339:16 (clickhouse+0x13a86af6)
#1 ssl3_read_internal /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/s3_lib.c:4470:9 (clickhouse+0x13a4d545)
#2 ssl3_read /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/s3_lib.c:4493:12 (clickhouse+0x13a4d3f2)
#3 ssl_read_internal /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:1827:16 (clickhouse+0x13a5f63a)
#4 SSL_read /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:1841:11 (clickhouse+0x13a5f950)
#5 Poco::Net::SecureSocketImpl::receiveBytes(void*, int, int) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:331:8 (clickhouse+0x10fc55c4)
#6 Poco::Net::SecureStreamSocketImpl::receiveBytes(void*, int, int) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocketImpl.cpp:139:15 (clickhouse+0x10fc9694)
#7 DB::ReadBufferFromPocoSocket::nextImpl() /home/alesap/code/cpp/ClickHouse/src/IO/ReadBufferFromPocoSocket.cpp:34:37 (clickhouse+0x955ca8b)
#8 DB::ReadBuffer::next() /home/alesap/code/cpp/ClickHouse/src/IO/ReadBuffer.h:53:20 (clickhouse+0x94c327d)
#9 DB::ReadBuffer::eof() /home/alesap/code/cpp/ClickHouse/src/IO/ReadBuffer.h:81:38 (clickhouse+0x94c327d)
#10 DB::ReadBuffer::read(char*, unsigned long) /home/alesap/code/cpp/ClickHouse/src/IO/ReadBuffer.h:141:37 (clickhouse+0x94c327d)
#11 DB::ReadBuffer::readStrict(char*, unsigned long) /home/alesap/code/cpp/ClickHouse/src/IO/ReadBuffer.h:155:27 (clickhouse+0x94c327d)
#12 void DB::readPODBinary<int>(int&, DB::ReadBuffer&) /home/alesap/code/cpp/ClickHouse/src/IO/ReadHelpers.h:107:9 (clickhouse+0x10b196c4)
#13 std::__1::enable_if<is_arithmetic_v<int>, void>::type DB::readBinary<int>(int&, DB::ReadBuffer&) /home/alesap/code/cpp/ClickHouse/src/IO/ReadHelpers.h:737:39 (clickhouse+0x10b196c4)
#14 Coordination::read(int&, DB::ReadBuffer&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:334:5 (clickhouse+0x10b196c4)
#15 void Coordination::ZooKeeper::read<int>(int&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:412:5 (clickhouse+0x10b196c4)
#16 Coordination::ZooKeeper::receiveEvent() /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:1198:5 (clickhouse+0x10b196c4)
#17 Coordination::ZooKeeper::receiveThread() /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:1167:17 (clickhouse+0x10b19084)
#18 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:875:52 (clickhouse+0x10b1f37b)
#19 decltype(std::__1::forward<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&>(fp)()) std::__1::__invoke_constexpr<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3525:1 (clickhouse+0x10b1f37b)
#20 decltype(auto) std::__1::__apply_tuple_impl<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&, std::__1::tuple<> const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&, std::__1::tuple<> const&, std::__1::__tuple_indices<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0x10b1f37b)
#21 decltype(auto) std::__1::apply<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&, std::__1::tuple<> const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&, std::__1::tuple<> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0x10b1f37b)
#22 ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0x10b1f37b)
#23 decltype(std::__1::forward<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x10b1f37b)
#24 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0x10b1f37b)
#25 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0x10b1f37b)
#26 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0x10b1f37b)
#27 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#28 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#29 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#30 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#31 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#32 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#33 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Previous write of size 4 at 0x7b9000010028 by thread T41:
#0 ssl3_write_pending /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c:1223:24 (clickhouse+0x13a85211)
#1 do_ssl3_write /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c (clickhouse+0x13a854fd)
#2 ssl3_write_bytes /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c:625:13 (clickhouse+0x13a84567)
#3 ssl3_write /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/s3_lib.c:4456:12 (clickhouse+0x13a4d2c6)
#4 ssl_write_internal /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:2018:16 (clickhouse+0x13a5ffae)
#5 SSL_write /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:2095:11 (clickhouse+0x13a60100)
#6 Poco::Net::SecureSocketImpl::sendBytes(void const*, int, int) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:297:8 (clickhouse+0x10fc5204)
#7 Poco::Net::SecureStreamSocketImpl::sendBytes(void const*, int, int) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocketImpl.cpp:133:15 (clickhouse+0x10fc9634)
#8 DB::WriteBufferFromPocoSocket::nextImpl() /home/alesap/code/cpp/ClickHouse/src/IO/WriteBufferFromPocoSocket.cpp:42:34 (clickhouse+0x955d716)
#9 DB::WriteBuffer::next() /home/alesap/code/cpp/ClickHouse/src/IO/WriteBuffer.h:44:13 (clickhouse+0x10b131fa)
#10 Coordination::ZooKeeperRequest::write(DB::WriteBuffer&) const /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:424:9 (clickhouse+0x10b131fa)
#11 Coordination::ZooKeeper::sendThread() /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:1107:35 (clickhouse+0x10b18b15)
#12 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:874:49 (clickhouse+0x10b1eebb)
#13 decltype(std::__1::forward<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&>(fp)()) std::__1::__invoke_constexpr<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3525:1 (clickhouse+0x10b1eebb)
#14 decltype(auto) std::__1::__apply_tuple_impl<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&, std::__1::tuple<> const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&, std::__1::tuple<> const&, std::__1::__tuple_indices<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0x10b1eebb)
#15 decltype(auto) std::__1::apply<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&, std::__1::tuple<> const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&, std::__1::tuple<> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0x10b1eebb)
#16 ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0x10b1eebb)
#17 decltype(std::__1::forward<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x10b1eebb)
#18 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0x10b1eebb)
#19 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0x10b1eebb)
#20 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0x10b1eebb)
#21 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#22 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#23 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#24 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#25 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#26 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#27 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Location is heap block of size 7336 at 0x7b9000010000 allocated by thread T10:
#0 malloc <null> (clickhouse+0x93bbf24)
#1 CRYPTO_malloc /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/mem.c:192:11 (clickhouse+0x13bc8941)
#2 CRYPTO_zalloc /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/mem.c:199:17 (clickhouse+0x13bc8941)
#3 SSL_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:692:9 (clickhouse+0x13a5a210)
#4 Poco::Net::SecureSocketImpl::connectSSL(bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:170:10 (clickhouse+0x10fc3bb8)
#5 Poco::Net::SecureSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&, bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:144:2 (clickhouse+0x10fc4132)
#6 Poco::Net::SecureStreamSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocketImpl.cpp:87:8 (clickhouse+0x10fc9234)
#7 Poco::Net::StreamSocket::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/Net/src/StreamSocket.cpp:84:10 (clickhouse+0x11025c4f)
#8 Coordination::ZooKeeper::connect(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:912:24 (clickhouse+0x10b16d44)
#9 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:869:5 (clickhouse+0x10b160c0)
#10 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#11 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#12 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#13 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#14 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#15 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#16 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#17 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#18 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#19 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#20 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#21 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#22 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#23 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#24 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#25 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#26 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#27 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#28 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#29 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#30 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#31 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#32 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#33 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#34 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Thread T42 'ZooKeeperRecv' (tid=49, running) created by thread T10 at:
#0 pthread_create <null> (clickhouse+0x93bd80b)
#1 std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:394:10 (clickhouse+0x94ca6a1)
#2 std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:300:16 (clickhouse+0x94ca6a1)
#3 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:35 (clickhouse+0x94c5189)
#4 ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:141:5 (clickhouse+0x94c5ad8)
#5 ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:150:38 (clickhouse+0x10b1637d)
#6 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:875:22 (clickhouse+0x10b1637d)
#7 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#8 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#9 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#10 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#11 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#12 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#13 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#14 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#15 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#16 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#17 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#18 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#19 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#20 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#21 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#22 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#23 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#24 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#25 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#26 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#27 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#28 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#29 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#30 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#31 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Thread T41 'ZooKeeperSend' (tid=48, running) created by thread T10 at:
#0 pthread_create <null> (clickhouse+0x93bd80b)
#1 std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:394:10 (clickhouse+0x94ca6a1)
#2 std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:300:16 (clickhouse+0x94ca6a1)
#3 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:35 (clickhouse+0x94c5189)
#4 ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:141:5 (clickhouse+0x94c5ad8)
#5 ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:150:38 (clickhouse+0x10b161d1)
#6 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:874:19 (clickhouse+0x10b161d1)
#7 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#8 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#9 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#10 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#11 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#12 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#13 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#14 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#15 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#16 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#17 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#18 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#19 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#20 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#21 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#22 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#23 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#24 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#25 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#26 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#27 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#28 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#29 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#30 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#31 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Thread T10 'DDLWorker' (tid=16, running) created by main thread at:
#0 pthread_create <null> (clickhouse+0x93bd80b)
#1 std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:394:10 (clickhouse+0x94ca6a1)
#2 std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:300:16 (clickhouse+0x94ca6a1)
#3 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:35 (clickhouse+0x94c5189)
#4 ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:141:5 (clickhouse+0x94c5ad8)
#5 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:150:38 (clickhouse+0xfb6e884)
#6 DB::DDLWorker::DDLWorker(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::Context&, Poco::Util::AbstractConfiguration const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:247:19 (clickhouse+0xfb59ac4)
#7 std::__1::__unique_if<DB::DDLWorker>::__unique_single std::__1::make_unique<DB::DDLWorker, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::Context&, Poco::Util::LayeredConfiguration*, char const (&) [16]>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::Context&, Poco::Util::LayeredConfiguration*&&, char const (&) [16]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x9476b45)
#8 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&) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:650:38 (clickhouse+0x945fcf3)
#9 Poco::Util::Application::run() /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/Application.cpp:334:8 (clickhouse+0x1103a84d)
#10 DB::Server::run() /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:182:25 (clickhouse+0x9456493)
#11 Poco::Util::ServerApplication::run(int, char**) /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/ServerApplication.cpp:611:9 (clickhouse+0x110565e8)
#12 mainEntryClickHouseServer(int, char**) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:1073:20 (clickhouse+0x9473bb3)
#13 main /home/alesap/code/cpp/ClickHouse/programs/main.cpp:317:12 (clickhouse+0x944ee12)
SUMMARY: ThreadSanitizer: data race /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c:1339:16 in ssl3_read_bytes
==================
==================
WARNING: ThreadSanitizer: data race (pid=1)
Write of size 4 at 0x7b200000d128 by thread T42:
#0 BIO_clear_flags /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_lib.c:192:14 (clickhouse+0x13ad8173)
#1 sock_read /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bss_sock.c:117:9 (clickhouse+0x13add095)
#2 bread_conv /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_meth.c:123:11 (clickhouse+0x13ada1e0)
#3 bio_read_intern /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_lib.c:270:11 (clickhouse+0x13ad8577)
#4 BIO_read /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_lib.c:296:11 (clickhouse+0x13ad83d0)
#5 ssl3_read_n /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c:300:19 (clickhouse+0x13a83acd)
#6 ssl3_get_record /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/ssl3_record.c:210:20 (clickhouse+0x13a88b71)
#7 ssl3_read_bytes /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c:1354:19 (clickhouse+0x13a86b4e)
#8 ssl3_read_internal /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/s3_lib.c:4470:9 (clickhouse+0x13a4d545)
#9 ssl3_read /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/s3_lib.c:4493:12 (clickhouse+0x13a4d3f2)
#10 ssl_read_internal /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:1827:16 (clickhouse+0x13a5f63a)
#11 SSL_read /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:1841:11 (clickhouse+0x13a5f950)
#12 Poco::Net::SecureSocketImpl::receiveBytes(void*, int, int) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:331:8 (clickhouse+0x10fc55c4)
#13 Poco::Net::SecureStreamSocketImpl::receiveBytes(void*, int, int) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocketImpl.cpp:139:15 (clickhouse+0x10fc9694)
#14 DB::ReadBufferFromPocoSocket::nextImpl() /home/alesap/code/cpp/ClickHouse/src/IO/ReadBufferFromPocoSocket.cpp:34:37 (clickhouse+0x955ca8b)
#15 DB::ReadBuffer::next() /home/alesap/code/cpp/ClickHouse/src/IO/ReadBuffer.h:53:20 (clickhouse+0x94c327d)
#16 DB::ReadBuffer::eof() /home/alesap/code/cpp/ClickHouse/src/IO/ReadBuffer.h:81:38 (clickhouse+0x94c327d)
#17 DB::ReadBuffer::read(char*, unsigned long) /home/alesap/code/cpp/ClickHouse/src/IO/ReadBuffer.h:141:37 (clickhouse+0x94c327d)
#18 DB::ReadBuffer::readStrict(char*, unsigned long) /home/alesap/code/cpp/ClickHouse/src/IO/ReadBuffer.h:155:27 (clickhouse+0x94c327d)
#19 void DB::readPODBinary<int>(int&, DB::ReadBuffer&) /home/alesap/code/cpp/ClickHouse/src/IO/ReadHelpers.h:107:9 (clickhouse+0x10b196c4)
#20 std::__1::enable_if<is_arithmetic_v<int>, void>::type DB::readBinary<int>(int&, DB::ReadBuffer&) /home/alesap/code/cpp/ClickHouse/src/IO/ReadHelpers.h:737:39 (clickhouse+0x10b196c4)
#21 Coordination::read(int&, DB::ReadBuffer&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:334:5 (clickhouse+0x10b196c4)
#22 void Coordination::ZooKeeper::read<int>(int&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:412:5 (clickhouse+0x10b196c4)
#23 Coordination::ZooKeeper::receiveEvent() /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:1198:5 (clickhouse+0x10b196c4)
#24 Coordination::ZooKeeper::receiveThread() /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:1167:17 (clickhouse+0x10b19084)
#25 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:875:52 (clickhouse+0x10b1f37b)
#26 decltype(std::__1::forward<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&>(fp)()) std::__1::__invoke_constexpr<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3525:1 (clickhouse+0x10b1f37b)
#27 decltype(auto) std::__1::__apply_tuple_impl<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&, std::__1::tuple<> const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&, std::__1::tuple<> const&, std::__1::__tuple_indices<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0x10b1f37b)
#28 decltype(auto) std::__1::apply<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&, std::__1::tuple<> const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1 const&, std::__1::tuple<> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0x10b1f37b)
#29 ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0x10b1f37b)
#30 decltype(std::__1::forward<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x10b1f37b)
#31 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0x10b1f37b)
#32 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0x10b1f37b)
#33 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0x10b1f37b)
#34 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#35 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#36 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#37 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#38 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#39 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#40 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Previous write of size 4 at 0x7b200000d128 by thread T41:
#0 BIO_clear_flags /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_lib.c:192:14 (clickhouse+0x13ad8173)
#1 sock_write /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bss_sock.c:142:5 (clickhouse+0x13adcfca)
#2 bwrite_conv /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_meth.c:77:11 (clickhouse+0x13ada050)
#3 bio_write_intern /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_lib.c:343:11 (clickhouse+0x13ad8907)
#4 BIO_write /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_lib.c:363:11 (clickhouse+0x13ad8760)
#5 ssl3_write_pending /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c:1207:17 (clickhouse+0x13a850d9)
#6 do_ssl3_write /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c (clickhouse+0x13a854fd)
#7 ssl3_write_bytes /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/record/rec_layer_s3.c:625:13 (clickhouse+0x13a84567)
#8 ssl3_write /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/s3_lib.c:4456:12 (clickhouse+0x13a4d2c6)
#9 ssl_write_internal /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:2018:16 (clickhouse+0x13a5ffae)
#10 SSL_write /home/alesap/code/cpp/ClickHouse/contrib/openssl/ssl/ssl_lib.c:2095:11 (clickhouse+0x13a60100)
#11 Poco::Net::SecureSocketImpl::sendBytes(void const*, int, int) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:297:8 (clickhouse+0x10fc5204)
#12 Poco::Net::SecureStreamSocketImpl::sendBytes(void const*, int, int) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocketImpl.cpp:133:15 (clickhouse+0x10fc9634)
#13 DB::WriteBufferFromPocoSocket::nextImpl() /home/alesap/code/cpp/ClickHouse/src/IO/WriteBufferFromPocoSocket.cpp:42:34 (clickhouse+0x955d716)
#14 DB::WriteBuffer::next() /home/alesap/code/cpp/ClickHouse/src/IO/WriteBuffer.h:44:13 (clickhouse+0x10b131fa)
#15 Coordination::ZooKeeperRequest::write(DB::WriteBuffer&) const /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:424:9 (clickhouse+0x10b131fa)
#16 Coordination::ZooKeeper::sendThread() /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:1107:35 (clickhouse+0x10b18b15)
#17 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:874:49 (clickhouse+0x10b1eebb)
#18 decltype(std::__1::forward<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&>(fp)()) std::__1::__invoke_constexpr<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3525:1 (clickhouse+0x10b1eebb)
#19 decltype(auto) std::__1::__apply_tuple_impl<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&, std::__1::tuple<> const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&, std::__1::tuple<> const&, std::__1::__tuple_indices<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0x10b1eebb)
#20 decltype(auto) std::__1::apply<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&, std::__1::tuple<> const&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0 const&, std::__1::tuple<> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0x10b1eebb)
#21 ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0x10b1eebb)
#22 decltype(std::__1::forward<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x10b1eebb)
#23 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0x10b1eebb)
#24 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0x10b1eebb)
#25 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0x10b1eebb)
#26 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#27 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#28 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#29 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#30 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#31 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#32 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Location is heap block of size 128 at 0x7b200000d100 allocated by thread T10:
#0 malloc <null> (clickhouse+0x93bbf24)
#1 CRYPTO_malloc /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/mem.c:192:11 (clickhouse+0x13bc8941)
#2 CRYPTO_zalloc /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/mem.c:199:17 (clickhouse+0x13bc8941)
#3 BIO_new /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_lib.c:73:16 (clickhouse+0x13ad7ccd)
#4 Poco::Net::SecureSocketImpl::connectSSL(bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:166:14 (clickhouse+0x10fc3b54)
#5 Poco::Net::SecureSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&, bool) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:144:2 (clickhouse+0x10fc4132)
#6 Poco::Net::SecureStreamSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/NetSSL_OpenSSL/src/SecureStreamSocketImpl.cpp:87:8 (clickhouse+0x10fc9234)
#7 Poco::Net::StreamSocket::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&) /home/alesap/code/cpp/ClickHouse/contrib/poco/Net/src/StreamSocket.cpp:84:10 (clickhouse+0x11025c4f)
#8 Coordination::ZooKeeper::connect(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:912:24 (clickhouse+0x10b16d44)
#9 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:869:5 (clickhouse+0x10b160c0)
#10 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#11 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#12 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#13 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#14 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#15 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#16 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#17 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#18 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#19 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#20 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#21 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#22 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#23 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#24 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#25 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#26 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#27 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#28 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#29 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#30 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#31 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#32 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#33 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#34 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Thread T42 'ZooKeeperRecv' (tid=49, running) created by thread T10 at:
#0 pthread_create <null> (clickhouse+0x93bd80b)
#1 std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:394:10 (clickhouse+0x94ca6a1)
#2 std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:300:16 (clickhouse+0x94ca6a1)
#3 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:35 (clickhouse+0x94c5189)
#4 ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:141:5 (clickhouse+0x94c5ad8)
#5 ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_1&&) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:150:38 (clickhouse+0x10b1637d)
#6 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:875:22 (clickhouse+0x10b1637d)
#7 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#8 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#9 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#10 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#11 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#12 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#13 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#14 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#15 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#16 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#17 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#18 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#19 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#20 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#21 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#22 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#23 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#24 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#25 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#26 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#27 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#28 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#29 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#30 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#31 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Thread T41 'ZooKeeperSend' (tid=48, running) created by thread T10 at:
#0 pthread_create <null> (clickhouse+0x93bd80b)
#1 std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:394:10 (clickhouse+0x94ca6a1)
#2 std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:300:16 (clickhouse+0x94ca6a1)
#3 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:35 (clickhouse+0x94c5189)
#4 ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:141:5 (clickhouse+0x94c5ad8)
#5 ThreadFromGlobalPool::ThreadFromGlobalPool<Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan)::$_0&&) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:150:38 (clickhouse+0x10b161d1)
#6 Coordination::ZooKeeper::ZooKeeper(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> > const&, 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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeperImpl.cpp:874:19 (clickhouse+0x10b161d1)
#7 std::__1::__unique_if<Coordination::ZooKeeper>::__unique_single std::__1::make_unique<Coordination::ZooKeeper, std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan, Poco::Timespan, Poco::Timespan>(std::__1::vector<Coordination::ZooKeeper::Node, std::__1::allocator<Coordination::ZooKeeper::Node> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Poco::Timespan&&, Poco::Timespan&&, Poco::Timespan&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x10af3d0b)
#8 zkutil::ZooKeeper::init(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&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:89:16 (clickhouse+0x10ae2c46)
#9 zkutil::ZooKeeper::ZooKeeper(Poco::Util::AbstractConfiguration const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Common/ZooKeeper/ZooKeeper.cpp:199:5 (clickhouse+0x10ae3dad)
#10 std::__1::__compressed_pair_elem<zkutil::ZooKeeper, 1, false>::__compressed_pair_elem<Poco::Util::AbstractConfiguration const&, char const (&) [10], 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>, std::__1::__tuple_indices<0ul, 1ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2214:9 (clickhouse+0xfb511ed)
#11 std::__1::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>, zkutil::ZooKeeper>::__compressed_pair<std::__1::allocator<zkutil::ZooKeeper>&, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<zkutil::ZooKeeper>&>, std::__1::tuple<Poco::Util::AbstractConfiguration const&, char const (&) [10]>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:2298:9 (clickhouse+0xfb36fe5)
#12 std::__1::__shared_ptr_emplace<zkutil::ZooKeeper, std::__1::allocator<zkutil::ZooKeeper> >::__shared_ptr_emplace<Poco::Util::AbstractConfiguration const&, char const (&) [10]>(std::__1::allocator<zkutil::ZooKeeper>, Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3569:16 (clickhouse+0xfb36fe5)
#13 std::__1::enable_if<!(is_array<zkutil::ZooKeeper>::value), std::__1::shared_ptr<zkutil::ZooKeeper> >::type std::__1::make_shared<zkutil::ZooKeeper, Poco::Util::AbstractConfiguration const&, char const (&) [10]>(Poco::Util::AbstractConfiguration const&, char const (&) [10]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:4400:26 (clickhouse+0xfb36fe5)
#14 DB::Context::getZooKeeper() const /home/alesap/code/cpp/ClickHouse/src/Interpreters/Context.cpp:1396:29 (clickhouse+0xfb36fe5)
#15 DB::DDLWorker::getAndSetZooKeeper() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:273:37 (clickhouse+0xfb5d39a)
#16 DB::DDLWorker::runMainThread() /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:967:30 (clickhouse+0xfb5a6be)
#17 decltype(*(std::__1::forward<DB::DDLWorker* const&>(fp0)).*fp()) std::__1::__invoke_constexpr<void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&, void>(void (DB::DDLWorker::* const&)(), DB::DDLWorker* const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3467:1 (clickhouse+0xfb72109)
#18 decltype(auto) std::__1::__apply_tuple_impl<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, 0ul>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&, std::__1::__tuple_indices<0ul>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1415:1 (clickhouse+0xfb72109)
#19 decltype(auto) std::__1::apply<void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&>(void (DB::DDLWorker::* const&)(), std::__1::tuple<DB::DDLWorker*> const&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/tuple:1424:1 (clickhouse+0xfb72109)
#20 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:160:17 (clickhouse+0xfb72109)
#21 decltype(std::__1::forward<void (DB::DDLWorker::*)()>(fp)(std::__1::forward<DB::DDLWorker*>(fp0))) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0xfb71ffd)
#22 void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__functional_base:348:9 (clickhouse+0xfb71ffd)
#23 std::__1::__function::__alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1540:16 (clickhouse+0xfb71ffd)
#24 std::__1::__function::__func<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), std::__1::allocator<ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()>, void ()>::operator()() /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1714:12 (clickhouse+0xfb71ffd)
#25 std::__1::__function::__value_func<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:1867:16 (clickhouse+0x94c6670)
#26 std::__1::function<void ()>::operator()() const /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/functional:2473:12 (clickhouse+0x94c6670)
#27 ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:224:17 (clickhouse+0x94c6670)
#28 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:73 (clickhouse+0x94cb0dc)
#29 decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/type_traits:3519:1 (clickhouse+0x94cb0dc)
#30 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<>) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:273:5 (clickhouse+0x94cb0dc)
#31 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*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:284:5 (clickhouse+0x94cb0dc)
Thread T10 'DDLWorker' (tid=16, running) created by main thread at:
#0 pthread_create <null> (clickhouse+0x93bd80b)
#1 std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/__threading_support:394:10 (clickhouse+0x94ca6a1)
#2 std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'(), void>(void&&) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/thread:300:16 (clickhouse+0x94ca6a1)
#3 void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:105:35 (clickhouse+0x94c5189)
#4 ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.cpp:141:5 (clickhouse+0x94c5ad8)
#5 ThreadFromGlobalPool::ThreadFromGlobalPool<void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) /home/alesap/code/cpp/ClickHouse/src/Common/ThreadPool.h:150:38 (clickhouse+0xfb6e884)
#6 DB::DDLWorker::DDLWorker(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::Context&, Poco::Util::AbstractConfiguration const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /home/alesap/code/cpp/ClickHouse/src/Interpreters/DDLWorker.cpp:247:19 (clickhouse+0xfb59ac4)
#7 std::__1::__unique_if<DB::DDLWorker>::__unique_single std::__1::make_unique<DB::DDLWorker, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::Context&, Poco::Util::LayeredConfiguration*, char const (&) [16]>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::Context&, Poco::Util::LayeredConfiguration*&&, char const (&) [16]) /home/alesap/code/cpp/ClickHouse/contrib/libcxx/include/memory:3028:32 (clickhouse+0x9476b45)
#8 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&) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:650:38 (clickhouse+0x945fcf3)
#9 Poco::Util::Application::run() /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/Application.cpp:334:8 (clickhouse+0x1103a84d)
#10 DB::Server::run() /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:182:25 (clickhouse+0x9456493)
#11 Poco::Util::ServerApplication::run(int, char**) /home/alesap/code/cpp/ClickHouse/contrib/poco/Util/src/ServerApplication.cpp:611:9 (clickhouse+0x110565e8)
#12 mainEntryClickHouseServer(int, char**) /home/alesap/code/cpp/ClickHouse/programs/server/Server.cpp:1073:20 (clickhouse+0x9473bb3)
#13 main /home/alesap/code/cpp/ClickHouse/programs/main.cpp:317:12 (clickhouse+0x944ee12)
SUMMARY: ThreadSanitizer: data race /home/alesap/code/cpp/ClickHouse/contrib/openssl/crypto/bio/bio_lib.c:192:14 in BIO_clear_flags
==================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment