Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/12558 )
Change subject: KUDU-2653: suppress krb5 memory leak found on Debian 8 ...................................................................... Patch Set 2: I tried to disable the leak checker during the call to sasl_client_init (in DoSaslInit) but then the leaks just cropped up elsewhere. Posting a full stack trace for posterity: Direct leak of 16 byte(s) in 1 object(s) allocated from: #0 0x4f8b28 in __interceptor_malloc /root/kudu/thirdparty/src/llvm-6.0.0.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:88 #1 0x7f801a0dbc77 in glob64 posix/glob.c:481 #2 0x46ebe9 in __interceptor_glob sanitizer_common/sanitizer_common_interceptors.inc:2222 #3 0x7f802059f5f7 (/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2+0x185f7) #4 0x7f802059fbaa in gss_indicate_mechs (/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2+0x18baa) #5 0x7f8020596fad in gss_acquire_cred_from (/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2+0xffad) #6 0x7f8020597035 in gss_acquire_cred (/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2+0x10035) #7 0x7f80128df6c5 in _init (/usr/lib/x86_64-linux-gnu/sasl2/libgssapiv2.so+0x46c5) #8 0x7f80207e31e1 in sasl_server_step (/usr/lib/x86_64-linux-gnu/libsasl2.so.2+0x111e1) #9 0x7f80207e36f0 in sasl_server_start (/usr/lib/x86_64-linux-gnu/libsasl2.so.2+0x116f0) #10 0x7f8021c8fef0 in kudu::rpc::WrapSaslCall(sasl_conn*, std::function<int ()> const&) /root/kudu/src/kudu/rpc/sasl_common.cc:337:12 #11 0x7f8021ca9423 in kudu::rpc::ServerNegotiation::HandleSaslInitiate(kudu::rpc::NegotiatePB const&) /root/kudu/src/kudu/rpc/server_negotiation.cc:788:14 #12 0x7f8021ca3e16 in kudu::rpc::ServerNegotiation::AuthenticateBySasl(kudu::faststring*) /root/kudu/src/kudu/rpc/server_negotiation.cc:605:14 #13 0x7f8021c9e000 in kudu::rpc::ServerNegotiation::Negotiate() /root/kudu/src/kudu/rpc/server_negotiation.cc:258:7 #14 0x7f8021c0aa56 in kudu::rpc::DoServerNegotiation(kudu::rpc::Connection*, kudu::TriStateFlag, kudu::TriStateFlag, kudu::MonoTime const&) /root/kudu/src/kudu/rpc/negotiation.cc:272:3 #15 0x7f8021c09b82 in kudu::rpc::Negotiation::RunNegotiation(scoped_refptr<kudu::rpc::Connection> const&, kudu::TriStateFlag, kudu::TriStateFlag, kudu::MonoTime) /root/kudu/src/kudu/rpc/negotiation.cc:292:9 #16 0x7f8021c48417 in kudu::internal::InvokeHelper<false, void, kudu::internal::RunnableAdapter<void (*)(scoped_refptr<kudu::rpc::Connection> const&, kudu::TriStateFlag, kudu::TriStateFlag, kudu::MonoTime)>, void (kudu::rpc::Connection*, kudu::TriStateFlag const&, kudu::TriStateFlag const&, kudu::MonoTime const&)>::MakeItSo(kudu::internal::RunnableAdapter<void (*)(scoped_refptr<kudu::rpc::Connection> const&, kudu::TriStateFlag, kudu::TriStateFlag, kudu::MonoTime)>, kudu::rpc::Connection*, kudu::TriStateFlag const&, kudu::TriStateFlag const&, kudu::MonoTime const&) /root/kudu/src/kudu/gutil/bind_internal.h:925:14 #17 0x7f8021c48174 in kudu::internal::Invoker<4, kudu::internal::BindState<kudu::internal::RunnableAdapter<void (*)(scoped_refptr<kudu::rpc::Connection> const&, kudu::TriStateFlag, kudu::TriStateFlag, kudu::MonoTime)>, void (scoped_refptr<kudu::rpc::Connection> const&, kudu::TriStateFlag, kudu::TriStateFlag, kudu::MonoTime), void (scoped_refptr<kudu::rpc::Connection>, kudu::TriStateFlag, kudu::TriStateFlag, kudu::MonoTime)>, void (scoped_refptr<kudu::rpc::Connection> const&, kudu::TriStateFlag, kudu::TriStateFlag, kudu::MonoTime)>::Run(kudu::internal::BindStateBase*) /root/kudu/src/kudu/gutil/bind_internal.h:1459:12 #18 0x7f801ed1af59 in kudu::ThreadPool::DispatchThread() /root/kudu/src/kudu/util/threadpool.cc:686:22 #19 0x7f801ed38ea2 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, kudu::ThreadPool>, boost::_bi::list1<boost::_bi::value<kudu::ThreadPool*> > >::operator()() /root/kudu/thirdparty/installed/uninstrumented/include/boost/bind/bind.hpp:1222:16 #20 0x7f8021c19f9b in boost::function0<void>::operator()() const /root/kudu/thirdparty/installed/uninstrumented/include/boost/function/function_template.hpp:770:14 #21 0x7f801ecfa29a in kudu::Thread::SuperviseThread(void*) /root/kudu/src/kudu/util/thread.cc:657:3 #22 0x7f802506a063 in start_thread /build/glibc-6V9RKT/glibc-2.19/nptl/pthread_create.c:309 #23 0x7f801a10662c in clone sysdeps/unix/sysv/linux/x86_64/clone.S:111 -- To view, visit http://gerrit.cloudera.org:8080/12558 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ib5af5b2957897aa7f0fc873ab6374591664375fc Gerrit-Change-Number: 12558 Gerrit-PatchSet: 2 Gerrit-Owner: Adar Dembo <a...@cloudera.com> Gerrit-Reviewer: Adar Dembo <a...@cloudera.com> Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Todd Lipcon <t...@apache.org> Gerrit-Reviewer: helifu <hzhel...@corp.netease.com> Gerrit-Comment-Date: Sat, 23 Feb 2019 00:22:13 +0000 Gerrit-HasComments: No