Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2391

TabletCopyClientTest.TestFailedDiskStopsClient fails with TSAN error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.8.0
    • n/a
    • log, test, tserver
    • None

    Description

      WARNING: ThreadSanitizer: data race (pid=15445)  Read of size 8 at 0x7b60000b3d28 by thread T81:
          #0 kudu::internal::gscoped_ptr_impl<kudu::log::WritableLogSegment, kudu::DefaultDeleter<kudu::log::WritableLogSegment> >::get() const /data/somelongdirectorytoavoidrpathissues/src/kudu/src/kudu/gutil/gscoped_ptr.h:258:33 (liblog.so+0x56569)
          #1 gscoped_ptr<kudu::log::WritableLogSegment, kudu::DefaultDeleter<kudu::log::WritableLogSegment> >::operator->() const /data/somelongdirectorytoavoidrpathissues/src/kudu/src/kudu/gutil/gscoped_ptr.h:384:5 (liblog.so+0x4f779)
          #2 kudu::log::Log::AppendThread::DoWork() /data/somelongdirectorytoavoidrpathissues/src/kudu/src/kudu/consensus/log.cc:344:3 (liblog.so+0x44c3b)
          #3 kudu::internal::RunnableAdapter<void (kudu::log::Log::AppendThread::*)()>::Run(kudu::log::Log::AppendThread*) /data/somelongdirectorytoavoidrpathissues/src/kudu/src/kudu/gutil/bind_internal.h:136:12 (liblog.so+0x57166)
          #4 kudu::internal::InvokeHelper<false, void, kudu::internal::RunnableAdapter<void (kudu::log::Log::AppendThread::*)()>, void ()(kudu::log::Log::AppendThread*)>::MakeItSo(kudu::internal::RunnableAdapter<void (kudu::log::Log::AppendThread::*)()>, kud
          #5 kudu::internal::Invoker<1, kudu::internal::BindState<kudu::internal::RunnableAdapter<void (kudu::log::Log::AppendThread::*)()>, void ()(kudu::log::Log::AppendThread*), void ()(kudu::internal::UnretainedWrapper<kudu::log::Log::AppendThread>)>, vo
          #6 kudu::Callback<void ()()>::Run() const /data/somelongdirectorytoavoidrpathissues/src/kudu/src/kudu/gutil/callback.h:396:12 (libconsensus.so+0x9f2dd)
          #7 kudu::ClosureRunnable::Run() /data/somelongdirectorytoavoidrpathissues/src/kudu/src/kudu/util/threadpool.cc:76:9 (libkudu_util.so+0x1cfcbd)
          #8 kudu::ThreadPool::DispatchThread() /data/somelongdirectorytoavoidrpathissues/src/kudu/src/kudu/util/threadpool.cc:686:22 (libkudu_util.so+0x1cbaa8)
          #9 boost::_mfi::mf0<void, kudu::ThreadPool>::operator()(kudu::ThreadPool*) const /data/somelongdirectorytoavoidrpathissues/src/kudu/thirdparty/installed/tsan/include/boost/bind/mem_fn_template.hpp:49:29 (libkudu_util.so+0x1d6876)
          #10 void boost::_bi::list1<boost::_bi::value<kudu::ThreadPool*> >::operator()<boost::_mfi::mf0<void, kudu::ThreadPool>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf0<void, kudu::ThreadPool>&, boost::_bi::list0&, int) /data/somelongdir
          #11 boost::_bi::bind_t<void, boost::_mfi::mf0<void, kudu::ThreadPool>, boost::_bi::list1<boost::_bi::value<kudu::ThreadPool*> > >::operator()() /data/somelongdirectorytoavoidrpathissues/src/kudu/thirdparty/installed/tsan/include/boost/bind/bind.hpp
          #12 boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, kudu::ThreadPool>, boost::_bi::list1<boost::_bi::value<kudu::ThreadPool*> > >, void>::invoke(boost::detail::function::function_buffer&) /data/so
          #13 boost::function0<void>::operator()() const /data/somelongdirectorytoavoidrpathissues/src/kudu/thirdparty/installed/tsan/include/boost/function/function_template.hpp:770:14 (libkrpc.so+0xb7661)
          #14 kudu::Thread::SuperviseThread(void*) /data/somelongdirectorytoavoidrpathissues/src/kudu/src/kudu/util/thread.cc:603:3 (libkudu_util.so+0x1c2d79)
      
        Previous write of size 8 at 0x7b60000b3d28 by main thread:
          [failed to restore the stack]
      
        Location is heap block of size 1024 at 0x7b60000b3c00 allocated by thread T86:
          #0 operator new(unsigned long) /data/somelongdirectorytoavoidrpathissues/src/kudu/thirdparty/src/llvm-4.0.0.src/projects/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:41 (tablet_copy_client-test+0x4e54d3)
          #1 kudu::log::Log::Open(kudu::log::LogOptions const&, kudu::FsManager*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, kudu::Schema const&, unsigned int, scoped_refptr<kudu::MetricEntity> const&, scope
          #2 kudu::tablet::TabletBootstrap::OpenNewLog() /data/somelongdirectorytoavoidrpathissues/src/kudu/src/kudu/tablet/tablet_bootstrap.cc:748:3 (libtablet.so+0x12c620)
      

      Attachments

        Activity

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: