进程卡死,程序sip信令卡住在invite 没有响应
将原有的堆栈信息区分为10种:
Thread 331 (Thread 0x7f7bca7fc700 (LWP 15497)):
#0 0x00007f7c72d3f945 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007f7c73012e1d in ACE_Condition_Thread_Mutex::wait(ACE_Thread_Mutex&, ACE_Time_Value const*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#2 0x00000000004d1c69 in ACE_Message_Queue<ACE_MT_SYNCH>::wait_not_empty_cond (this=0x28f29d8, timeout=0x0) at ../../../share/ace/Message_Queue_T.cpp:1742
#3 0x00000000004d10ac in ACE_Message_Queue<ACE_MT_SYNCH>::dequeue_head (this=0x28f29d8, first_item=@0x7f7bca7fbd00: 0x0, timeout=0x0) at ../../../share/ace/Message_Queue_T.cpp:1910
#4 0x00000000005aaffb in ACE_Message_Queue_Ex<MRCP::Message, ACE_MT_SYNCH>::dequeue_head (this=0x28f29d0, first_item=@0x7f7bca7fbd88: 0x0, timeout=0x0) at ../../../share/ace/Message_Queue_T.cpp:245
#5 0x00000000005aac9b in ACE_Task_Ex<ACE_MT_SYNCH, MRCP::Message>::getq (this=0x28f2890, mb=@0x7f7bca7fbd88: 0x0, tv=0x0) at ../../../share/ace/Task_Ex_T.inl:22
#6 0x00000000005aa2a5 in MRCP::Session_Worker::svc (this=0x28f2890) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Session_Worker.cpp:158
#7 0x00007f7c73068aa7 in ACE_Task_Base::svc_run(void*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#8 0x00007f7c7306a071 in ACE_Thread_Adapter::invoke() () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#9 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 324 (Thread 0x7f7bc1ffb700 (LWP 15504)):
#0 0x00007f7c72d4242d in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x00007f7c72d3dde6 in _L_lock_870 () from /lib64/libpthread.so.0
#2 0x00007f7c72d3dcdf in pthread_mutex_lock () from /lib64/libpthread.so.0
#3 0x00007f7c73040d86 in ACE_OS::mutex_lock(pthread_mutex_t*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#4 0x000000000043d496 in ACE_OS::thread_mutex_lock (m=0x7f7bbc923938) at ../../../share/ace/OS_NS_Thread.inl:3417
#5 0x000000000043d3f0 in ACE_OS::recursive_mutex_lock (m=0x7f7bbc923938) at ../../../share/ace/OS_NS_Thread.inl:691
#6 0x000000000043d4fe in ACE_Recursive_Thread_Mutex::acquire (this=0x7f7bbc923938) at ../../../share/ace/Recursive_Thread_Mutex.inl:37
#7 0x000000000043f68f in ACE_Guard<ACE_Recursive_Thread_Mutex>::acquire (this=0x7f7bc1ff9e10) at ../../../share/ace/Guard_T.inl:12
#8 0x000000000043ea94 in ACE_Guard<ACE_Recursive_Thread_Mutex>::ACE_Guard (this=0x7f7bc1ff9e10, l=...) at ../../../share/ace/Guard_T.inl:38
#9 0x0000000000523c68 in MRS_Recog_Resource::on_recognize (this=0x7f7bbc923810, request=...) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Recog_Resource.cpp:1112
#10 0x0000000000520eea in MRS_Recog_Resource::on_request (this=0x7f7bbc923810, request=...) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Recog_Resource.cpp:535
#11 0x000000000059e9a1 in MRCP::Server_Session::on_mrcp_message (this=0x7f7bbc923848, msg=0x7f7af8007770) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Server_Session.cpp:136
#12 0x00000000005aa48f in MRCP::Session_Worker::svc (this=0x28f4ed0) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Session_Worker.cpp:188
#13 0x00007f7c73068aa7 in ACE_Task_Base::svc_run(void*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#14 0x00007f7c7306a071 in ACE_Thread_Adapter::invoke() () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#15 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#16 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 299 (Thread 0x7f7b2b7fe700 (LWP 15529)):
#0 0x00007f7c71331923 in epoll_wait () from /lib64/libc.so.6
#1 0x00007f7c73020f4c in ACE_Dev_Poll_Reactor::work_pending_i(ACE_Time_Value*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#2 0x00007f7c7302374c in ACE_Dev_Poll_Reactor::handle_events_i(ACE_Time_Value*, ACE_Dev_Poll_Reactor::Token_Guard&) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#3 0x00007f7c73023916 in ACE_Dev_Poll_Reactor::handle_events(ACE_Time_Value*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#4 0x00007f7c73058d4c in ACE_Reactor::run_reactor_event_loop(int (*)(ACE_Reactor*)) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#5 0x00000000005b9ee9 in MRCP::Trans_Worker::svc (this=0x29f9d90) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Trans_Worker.cpp:88
#6 0x00007f7c73068aa7 in ACE_Task_Base::svc_run(void*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#7 0x00007f7c7306a071 in ACE_Thread_Adapter::invoke() () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#8 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#9 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 295 (Thread 0x7f7b297fa700 (LWP 15533)):
#0 0x00007f7c72d3f945 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007f7c73012e1d in ACE_Condition_Thread_Mutex::wait(ACE_Thread_Mutex&, ACE_Time_Value const*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#2 0x00000000004d479b in ACE_Message_Queue<ACE_MT_SYNCH>::wait_not_full_cond (this=0x28f5018, timeout=0x0) at ../../../share/ace/Message_Queue_T.cpp:1715
#3 0x00000000004d2f78 in ACE_Message_Queue<ACE_MT_SYNCH>::enqueue_tail (this=0x28f5018, new_item=0x7f7b10008e90, timeout=0x0) at ../../../share/ace/Message_Queue_T.cpp:1880
#4 0x00000000005ab489 in ACE_Message_Queue_Ex<MRCP::Message, ACE_MT_SYNCH>::enqueue_tail (this=0x28f5010, new_item=0x7f7b10008550, timeout=0x0) at ../../../share/ace/Message_Queue_T.cpp:226
#5 0x00000000005a5951 in ACE_Task_Ex<ACE_MT_SYNCH, MRCP::Message>::putq (this=0x28f4ed0, mb=0x7f7b10008550, tv=0x0) at ../../../share/ace/Task_Ex_T.inl:36
#6 0x00000000005a4ab9 in MRCP::Session_Mngr::putq (this=0x28f25f8, msg=0x7f7b10008550) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Session_Mngr.cpp:176
#7 0x00000000005bacfb in MRCP::Transport::on_message_block (this=0x7f7a9c008f50, mb=0x7f7b10006fe0, msg_cate=MRCP::mc_request) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Transport.cpp:222
#8 0x00000000005b7915 in MRCP::TCP_Transport::handle_input (this=0x7f7a9c008f50) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/TCP_Transport.cpp:328
#9 0x00007f7c7302350e in ACE_Dev_Poll_Reactor::dispatch_io_event(ACE_Dev_Poll_Reactor::Token_Guard&) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#10 0x00007f7c73023916 in ACE_Dev_Poll_Reactor::handle_events(ACE_Time_Value*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#11 0x00007f7c73058d4c in ACE_Reactor::run_reactor_event_loop(int (*)(ACE_Reactor*)) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#12 0x00000000005b9ee9 in MRCP::Trans_Worker::svc (this=0x29fb2e0) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Trans_Worker.cpp:88
#13 0x00007f7c73068aa7 in ACE_Task_Base::svc_run(void*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#14 0x00007f7c7306a071 in ACE_Thread_Adapter::invoke() () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#15 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#16 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 268 (Thread 0x7f7aa5ffb700 (LWP 15560)):
#0 0x00007f7c72d4242d in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x00007f7c72d3dde6 in _L_lock_870 () from /lib64/libpthread.so.0
#2 0x00007f7c72d3dcdf in pthread_mutex_lock () from /lib64/libpthread.so.0
#3 0x00007f7c73040d86 in ACE_OS::mutex_lock(pthread_mutex_t*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#4 0x000000000043d496 in ACE_OS::thread_mutex_lock (m=0x7f7bbc923878) at ../../../share/ace/OS_NS_Thread.inl:3417
#5 0x000000000043d3f0 in ACE_OS::recursive_mutex_lock (m=0x7f7bbc923878) at ../../../share/ace/OS_NS_Thread.inl:691
#6 0x000000000043d4fe in ACE_Recursive_Thread_Mutex::acquire (this=0x7f7bbc923878) at ../../../share/ace/Recursive_Thread_Mutex.inl:37
#7 0x00000000005a3f44 in MRCP::Session::acquire (this=0x7f7bbc923848) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Session.cpp:172
#8 0x00000000005a495d in MRCP::Session_Mngr::remove_session (this=0x28f25f8, sess=...) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Session_Mngr.cpp:151
#9 0x000000000059f2be in MRCP::Server_Stack::remove_session (this=0x28ed3c8, sess=...) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Server_Stack.cpp:119
#10 0x0000000000520503 in MRS_Recog_Resource::fini (this=0x7f7bbc923810) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Recog_Resource.cpp:347
#11 0x0000000000516cb0 in MRS_Session::fini (this=0x7f7bbc197a80) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Session.cpp:85
#12 0x0000000000504892 in MRS_Uas_Handler::on_session_terminate (this=0x29fa300, sip_sess=...) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_SIP_handler.cpp:370
#13 0x0000000000557355 in SIP::Ua_Server_Event_Handler::onTerminated (this=0x394e230, ish=..., reason=resip::InviteSessionHandler::PeerEnded, related=0x7f7bc4011e40) at /data/swwan/project/temp/ims37/source/core/common/SIP_Stack/SIP_Ua_Server_Event_Handler.cpp:156
#14 0x00000000006746f9 in resip::InviteSession::dispatchBye(resip::SipMessage const&) ()
#15 0x000000000067b55b in resip::InviteSession::dispatchOthers(resip::SipMessage const&) ()
#16 0x000000000067c110 in resip::InviteSession::dispatchConnected(resip::SipMessage const&) ()
#17 0x000000000067f301 in resip::InviteSession::dispatch(resip::SipMessage const&) ()
#18 0x00000000006502f9 in resip::Dialog::dispatch(resip::SipMessage const&) ()
#19 0x000000000065865b in resip::DialogSet::dispatch(resip::SipMessage const&) ()
#20 0x0000000000665b30 in resip::DialogUsageManager::processRequest(resip::SipMessage const&) ()
#21 0x0000000000666edb in resip::DialogUsageManager::incomingProcess(std::auto_ptr<resip::Message>) ()
#22 0x000000000066758b in resip::DialogUsageManager::internalProcess(std::auto_ptr<resip::Message>) ()
#23 0x000000000066eb24 in resip::DumThread::thread_work() ()
#24 0x0000000000555412 in SIP::Ua_Dum_Thread::thread_work (this=0x39508f0) at /data/swwan/project/temp/ims37/source/core/common/SIP_Stack/SIP_Ua_Dum_Thread.cpp:39
#25 0x000000000066e9e6 in resip::DumThread::thread() ()
#26 0x000000000076d34f in threadWrapper ()
#27 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#28 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 266 (Thread 0x7f7aa4ff9700 (LWP 15562)):
#0 0x00007f7c72d3f2ae in pthread_rwlock_wrlock () from /lib64/libpthread.so.0
#1 0x000000000043d45d in ACE_OS::rw_wrlock (rw=0x28f25f8) at ../../../share/ace/OS_NS_Thread.inl:1194
#2 0x000000000043d4ca in ACE_RW_Mutex::acquire_write (this=0x28f25f8) at ../../../share/ace/RW_Mutex.inl:38
#3 0x000000000043f71b in ACE_Write_Guard<ACE_RW_Thread_Mutex>::acquire_write (this=0x7f7aa4fef1e0) at ../../../share/ace/Guard_T.inl:96
#4 0x000000000043eaf7 in ACE_Write_Guard<ACE_RW_Thread_Mutex>::ACE_Write_Guard (this=0x7f7aa4fef1e0, m=...) at ../../../share/ace/Guard_T.inl:90
#5 0x00000000005a4408 in MRCP::Session_Mngr::register_session (this=0x28f25f8, sess=...) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Session_Mngr.cpp:75
#6 0x000000000059f238 in MRCP::Server_Stack::register_session (this=0x28ed3c8, sess=...) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Server_Stack.cpp:108
#7 0x00000000005203b6 in MRS_Recog_Resource::init (this=0x7f7bdc3bc090, addr=0x7f7bdd4efbe8 "192.168.17.253") at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Recog_Resource.cpp:328
#8 0x000000000051acce in MRS_Session::add_resource (this=0x7f7bdc39cb10, res_name=0x7f7bdd11b538 "speechrecog", conn_addr=0x7f7bdd4efbe8 "192.168.17.253", media_id=-1, sip_resp_code=@0x7f7aa4fefe3c: 486) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Session.cpp:791
#9 0x00000000005175bd in MRS_Session::on_new_session (this=0x7f7bdc39cb10, sip_sess=..., sdp=...) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Session.cpp:197
#10 0x0000000000503692 in MRS_Uas_Handler::on_new_session (this=0x29fa300, sip_sess=..., sdp=...) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_SIP_handler.cpp:137
#11 0x0000000000556b20 in SIP::Ua_Server_Event_Handler::onOffer (this=0x3953aa0, ish=..., cmsg=..., csdp=...) at /data/swwan/project/temp/ims37/source/core/common/SIP_Stack/SIP_Ua_Server_Event_Handler.cpp:61
#12 0x000000000068c9ea in resip::ServerInviteSession::dispatchStart(resip::SipMessage const&) ()
#13 0x00000000006506ea in resip::Dialog::dispatch(resip::SipMessage const&) ()
#14 0x0000000000658f92 in resip::DialogSet::dispatch(resip::SipMessage const&) ()
#15 0x0000000000666379 in resip::DialogUsageManager::processRequest(resip::SipMessage const&) ()
#16 0x0000000000666edb in resip::DialogUsageManager::incomingProcess(std::auto_ptr<resip::Message>) ()
#17 0x000000000066758b in resip::DialogUsageManager::internalProcess(std::auto_ptr<resip::Message>) ()
#18 0x000000000066eb24 in resip::DumThread::thread_work() ()
#19 0x0000000000555412 in SIP::Ua_Dum_Thread::thread_work (this=0x3954230) at /data/swwan/project/temp/ims37/source/core/common/SIP_Stack/SIP_Ua_Dum_Thread.cpp:39
#20 0x000000000066ea56 in resip::DumThread::thread() ()
#21 0x000000000076d34f in threadWrapper ()
#22 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#23 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 265 (Thread 0x7f7a97fff700 (LWP 15563)):
#0 0x00007f7c72d3f2ae in pthread_rwlock_wrlock () from /lib64/libpthread.so.0
#1 0x000000000043d45d in ACE_OS::rw_wrlock (rw=0x28f25f8) at ../../../share/ace/OS_NS_Thread.inl:1194
#2 0x000000000043d4ca in ACE_RW_Mutex::acquire_write (this=0x28f25f8) at ../../../share/ace/RW_Mutex.inl:38
#3 0x000000000043f71b in ACE_Write_Guard<ACE_RW_Thread_Mutex>::acquire_write (this=0x7f7a97ff3570) at ../../../share/ace/Guard_T.inl:96
#4 0x000000000043eaf7 in ACE_Write_Guard<ACE_RW_Thread_Mutex>::ACE_Write_Guard (this=0x7f7a97ff3570, m=...) at ../../../share/ace/Guard_T.inl:90
#5 0x00000000005a46f3 in MRCP::Session_Mngr::remove_session (this=0x28f25f8, sess=...) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Session_Mngr.cpp:119
#6 0x000000000059f2be in MRCP::Server_Stack::remove_session (this=0x28ed3c8, sess=...) at /data/swwan/project/temp/ims37/source/core/common/MRCP_Stack/Server_Stack.cpp:119
#7 0x0000000000520503 in MRS_Recog_Resource::fini (this=0x7f7bf896fdc0) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Recog_Resource.cpp:347
#8 0x0000000000516cb0 in MRS_Session::fini (this=0x7f7bf809c780) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Session.cpp:85
#9 0x0000000000504892 in MRS_Uas_Handler::on_session_terminate (this=0x29fa300, sip_sess=...) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_SIP_handler.cpp:370
#10 0x0000000000557355 in SIP::Ua_Server_Event_Handler::onTerminated (this=0x3955760, ish=..., reason=resip::InviteSessionHandler::PeerEnded, related=0x7f7bc401fd10) at /data/swwan/project/temp/ims37/source/core/common/SIP_Stack/SIP_Ua_Server_Event_Handler.cpp:156
#11 0x00000000006746f9 in resip::InviteSession::dispatchBye(resip::SipMessage const&) ()
#12 0x000000000067b55b in resip::InviteSession::dispatchOthers(resip::SipMessage const&) ()
#13 0x000000000067c110 in resip::InviteSession::dispatchConnected(resip::SipMessage const&) ()
#14 0x000000000067f301 in resip::InviteSession::dispatch(resip::SipMessage const&) ()
#15 0x00000000006502f9 in resip::Dialog::dispatch(resip::SipMessage const&) ()
#16 0x000000000065865b in resip::DialogSet::dispatch(resip::SipMessage const&) ()
#17 0x0000000000665b30 in resip::DialogUsageManager::processRequest(resip::SipMessage const&) ()
#18 0x0000000000666edb in resip::DialogUsageManager::incomingProcess(std::auto_ptr<resip::Message>) ()
#19 0x000000000066758b in resip::DialogUsageManager::internalProcess(std::auto_ptr<resip::Message>) ()
#20 0x000000000066eb24 in resip::DumThread::thread_work() ()
#21 0x0000000000555412 in SIP::Ua_Dum_Thread::thread_work (this=0x3955e80) at /data/swwan/project/temp/ims37/source/core/common/SIP_Stack/SIP_Ua_Dum_Thread.cpp:39
#22 0x000000000066e9ff in resip::DumThread::thread() ()
#23 0x000000000076d34f in threadWrapper ()
#24 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#25 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 252 (Thread 0x7f7a917f2700 (LWP 15576)):
#0 0x00007f7c713287a3 in select () from /lib64/libc.so.6
#1 0x00000000005437bd in URI::Trans_Worker::svc (this=0x39dabe8) at /data/swwan/project/temp/ims37/source/core/common/URI_Stack/Trans_Worker.cpp:202
#2 0x00007f7c73068aa7 in ACE_Task_Base::svc_run(void*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#3 0x00007f7c7306a071 in ACE_Thread_Adapter::invoke() () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#4 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 251 (Thread 0x7f7a90ff1700 (LWP 15577)):
#0 0x00007f7c72d3f945 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007f7c73012d7a in ACE_Condition_Thread_Mutex::wait() () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#2 0x000000000049f062 in MRS_Task_Queue::wait (this=0x7f7a90ff0c10) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Task_Queue_Mngr.cpp:167
#3 0x000000000050818b in MRS_Task_Worker::svc (this=0x39da3d8) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Task_Worker.cpp:75
#4 0x00007f7c73068aa7 in ACE_Task_Base::svc_run(void*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#5 0x00007f7c7306a071 in ACE_Thread_Adapter::invoke() () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#6 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#7 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 250 (Thread 0x7f7a8bfff700 (LWP 15578)):
#0 0x00007f7c72d42e4d in nanosleep () from /lib64/libpthread.so.0
#1 0x0000000000450696 in ACE_OS::sleep (tv=...) at ../../../share/ace/OS_NS_unistd.inl:951
#2 0x0000000000527d21 in MRS_Recog_Resource::on_task (this=0x7f7bd4d47020) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Recog_Resource.cpp:2194
#3 0x00000000005081ad in MRS_Task_Worker::svc (this=0x39da3d8) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Task_Worker.cpp:78
#4 0x00007f7c73068aa7 in ACE_Task_Base::svc_run(void*) () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#5 0x00007f7c7306a071 in ACE_Thread_Adapter::invoke() () from /iflytek/IMS37_redhat_Build3005/lib64/libACE.so.5.7.1
#6 0x00007f7c72d3be25 in start_thread () from /lib64/libpthread.so.0
#7 0x00007f7c7133134d in clone () from /lib64/libc.so.6
Thread 266 sip建立过程在等锁
这里在等待 Session_Mngr 的lock_ 锁
此时通过session内存,跟踪锁,发现有几个可疑的地方,筛查出Thread 295线程获取了该锁
而Thread 295线程的queue一直是full的,导致一直卡住,此时无环路锁对应,考虑是否有线程形成死循环导致持有锁一直没有释放
#5 0x00000000005a5951 in ACE_Task_Ex<ACE_MT_SYNCH, MRCP::Message>::putq (this=0x28f4ed0, mb=0x7f7b10008550, tv=0x0) at ../../../share/ace/Task_Ex_T.inl:36
通过this指针:
找到:Thread 324 等subtask_lock_锁。
结合代码:
最后发现:
Thread 250 拿到了subtask_lock_锁
再这里
#2 0x0000000000527d21 in MRS_Recog_Resource::on_task (this=0x7f7bd4d47020) at /data/swwan/project/temp/ims37/source/core/server/MRS/MRS_Recog_Resource.cpp:2194
DTMF流程中一直未收到按键结束,导致锁一直被占用,其他的线程一直拿不到锁
原文:https://www.cnblogs.com/lihaihui1991/p/14379788.html