Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4336

TThreadedServer mode maybe lock and can't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 0.9.3
    • 0.10.0
    • C++ - Library
    • Linux 2.6.32

    Description

      Run in TThreadedServer mode
      run some times,thrift accept thread lock at onClientConnected and can't work
      call stack like this:
      Thread 14 (Thread 0x7f79de7e4700 (LWP 2214)):
      #0 0x00007f7a1235ffbe in __lll_lock_wait_private () from /lib64/libpthread.so.0
      #1 0x00007f7a12359c9a in _L_lock_1834 () from /lib64/libpthread.so.0
      #2 0x00007f7a123588ef in pthread_create@@GLIBC_2.2.5 () from /lib64/libpthread.so.0
      #3 0x0000000000db139e in apache::thrift::concurrency::PthreadThread::start() ()
      #4 0x0000000000dae7f7 in apache::thrift::server::TThreadedServer::onClientConnected(boost::shared_ptr<apache::thrift::server::TConnectedClient> const&) ()
      #5 0x0000000000db1eef in apache::thrift::server::TServerFramework::newlyConnectedClient(boost::shared_ptr<apache::thrift::server::TConnectedClient> const&) ()
      #6 0x0000000000db27e9 in apache::thrift::server::TServerFramework::serve() ()
      #7 0x0000000000daeb77 in apache::thrift::server::TThreadedServer::serve() ()
      #8 0x00000000009c279e in CmdServer::run() ()
      #9 0x0000000000900a88 in gseThread::run_helper(void*) ()
      #10 0x000000000099318c in tos::util_thread_start(void*) ()
      #11 0x00007f7a123597f1 in start_thread () from /lib64/libpthread.so.0
      #12 0x00007f7a11711ccd in clone () from /lib64/libc.so.6
      Thread 13 (Thread 0x7f79ddfe3700 (LWP 2215)):
      #0 0x00007f7a1235ffbe in __lll_lock_wait_private () from /lib64/libpthread.so.0
      #1 0x00007f7a12359c9a in _L_lock_1834 () from /lib64/libpthread.so.0
      #2 0x00007f7a123588ef in pthread_create@@GLIBC_2.2.5 () from /lib64/libpthread.so.0
      #3 0x0000000000db139e in apache::thrift::concurrency::PthreadThread::start() ()
      #4 0x0000000000dae7f7 in apache::thrift::server::TThreadedServer::onClientConnected(boost::shared_ptr<apache::thrift::server::TConnectedClient> const&) ()
      #5 0x0000000000db1eef in apache::thrift::server::TServerFramework::newlyConnectedClient(boost::shared_ptr<apache::thrift::server::TConnectedClient> const&) ()
      #6 0x0000000000db27e9 in apache::thrift::server::TServerFramework::serve() ()
      #7 0x0000000000daeb77 in apache::thrift::server::TThreadedServer::serve() ()
      #8 0x00000000009c2fc3 in CmdServerV2::run() ()
      #9 0x0000000000900a88 in gseThread::run_helper(void*) ()
      #10 0x000000000099318c in tos::util_thread_start(void*) ()
      #11 0x00007f7a123597f1 in start_thread () from /lib64/libpthread.so.0
      #12 0x00007f7a11711ccd in clone () from /lib64/libc.so.6

      Attachments

        Issue Links

          Activity

            People

              jking3 James E. King III
              lnitcscq xiaomingzhongguo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: