Re: [Opalvoip-devel] Another problem with Eridani
Brought to you by:
csoutheren,
rjongbloed
From: Alexander S. <ale...@gm...> - 2013-03-27 11:57:31
|
I've checked fixed code and there is still some deadlocks here. But logs now looks different: 0:40.588 OnRelease:...69f01e2700 H323 Timed out waiting for end session from remote. 0:40.588 OnRelease:...69f01e2700 Opal Transport clean up on termination 0:40.588 OnRelease:...69f01e2700 Opal Transport Close 0:45.888 H.245 Hand...6a01d81700 PTLib Possible deadlock in mutex 0x9d9440, owner id=140092982044416 (0x7f69f06e2700) 0:54.888 OnRelease:...69f01e2700 PTLib Possible deadlock in mutex 0x9d9440, owner id=140092982044416 (0x7f69f06e2700) Backtraces: (gdb) info thr Id Target Id Frame 14 Thread 0x7f69f9601700 (LWP 11237) "simpleopal" 0x00007f69ff767c13 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 13 Thread 0x7f6a01f07700 (LWP 11238) "simpleopal" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211 12 Thread 0x7f6a01ec6700 (LWP 11239) "simpleopal" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211 11 Thread 0x7f6a01e85700 (LWP 11240) "simpleopal" 0x00007f69ff76c3e3 in select () at ../sysdeps/unix/syscall-template.S:82 10 Thread 0x7f6a01e44700 (LWP 11241) "simpleopal" 0x00007f69ff76c3e3 in select () at ../sysdeps/unix/syscall-template.S:82 9 Thread 0x7f6a01e03700 (LWP 11242) "simpleopal" 0x00007f69ff76c3e3 in select () at ../sysdeps/unix/syscall-template.S:82 8 Thread 0x7f6a01d81700 (LWP 11244) "simpleopal" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 7 Thread 0x7f69f0723700 (LWP 11260) "simpleopal" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 6 Thread 0x7f69f06e2700 (LWP 11261) "simpleopal" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 5 Thread 0x7f69f06a1700 (LWP 11262) "simpleopal" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 4 Thread 0x7f69f0660700 (LWP 11263) "simpleopal" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 3 Thread 0x7f69f061f700 (LWP 11264) "simpleopal" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 2 Thread 0x7f69f01e2700 (LWP 11265) "simpleopal" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 * 1 Thread 0x7f69fd4d1720 (LWP 11236) "simpleopal" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211 (gdb) thr 6 [Switching to thread 6 (Thread 0x7f69f06e2700 (LWP 11261))] #0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 136 ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (gdb) bt #0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 #1 0x00007f69ff490194 in _L_lock_1024 () from /lib/libpthread.so.0 #2 0x00007f69ff48fff7 in __pthread_mutex_lock (mutex=0x9d94c0) at pthread_mutex_lock.c:82 #3 0x00007f6a005dfdfb in PTimedMutex::Wait (this=0x9d94a0) at ptlib/unix/tlibthrd.cxx:1355 #4 0x00007f6a005d2b54 in PChannel::PXSetIOBlock (this=0x9d9380, type=PChannel::PXWriteBlock, timeout=...) at ptlib/unix/channel.cxx:102 #5 0x00007f6a005c8043 in PSocket::os_vwrite (this=0x9d9380, slices=0x7f69f06e0a50, sliceCount=1, flags=0, addr=0x0, addrLen=0) at ptlib/unix/socket.cxx:471 #6 0x00007f6a00610a15 in PTCPSocket::Write (this=0x9d9380, buf=0x9267c0, len=8) at ptlib/common/sockets.cxx:2291 #7 0x00007f6a010f0813 in OpalTransport::Write (this=0x9c38f0, buf=0x9267c0, len=8) at /root/Eridani/opal/src/opal/transports.cxx:1111 #8 0x00007f6a010f1a08 in OpalTransportTCP::WritePDU (this=0x9c38f0, pdu=...) at /root/Eridani/opal/src/opal/transports.cxx:1311 #9 0x00007f6a013fe1ab in H323Connection::WriteControlPDU (this=0x7f69ec057fc0, pdu=...) at /root/Eridani/opal/src/h323/h323.cxx:2641 #10 0x00007f6a014057ef in H323Connection::OnMediaCommand (this=0x7f69ec057fc0, stream=..., command=...) at /root/Eridani/opal/src/h323/h323.cxx:4155 #11 0x00007f6a010d4c72 in OpalMediaStream::ExecuteCommand (this=0x7f69ec09cd60, command=...) at /root/Eridani/opal/src/opal/mediastrm.cxx:186 #12 0x00007f6a010e0f52 in OpalMediaPatch::InternalOnMediaCommand2 (this=0x7f69ec0a22d0, command=0x941770) at /root/Eridani/opal/src/opal/patch.cxx:581 #13 0x00007f6a010e5efc in PSafeWorkArg1<OpalMediaPatch, OpalMediaCommand*>::CallFunction (this=0xa17e70, obj=...) at /usr/local/include/ptclib/threadpool.h:568 #14 0x00007f6a01082152 in PSafeWork::Work (this=0xa17e70) at /usr/local/include/ptclib/threadpool.h:503 #15 0x00007f6a01094d64 in PQueuedThreadPool<PSafeWork>::QueuedWorkerThread::Main (this=0xa48b20) at /usr/local/include/ptclib/threadpool.h:462 #16 0x00007f6a005dd720 in PThread::PX_ThreadMain (arg=0xa48b20) at ptlib/unix/tlibthrd.cxx:389 #17 0x00007f69ff48d8ca in start_thread (arg=<optimized out>) at pthread_create.c:300 #18 0x00007f69ff772b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #19 0x0000000000000000 in ?? () (gdb) thr 8 [Switching to thread 8 (Thread 0x7f6a01d81700 (LWP 11244))] #0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 136 in ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (gdb) bt #0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 #1 0x00007f69ff490194 in _L_lock_1024 () from /lib/libpthread.so.0 #2 0x00007f69ff48fff7 in __pthread_mutex_lock (mutex=0x9d9460) at pthread_mutex_lock.c:82 #3 0x00007f6a005dfdfb in PTimedMutex::Wait (this=0x9d9440) at ptlib/unix/tlibthrd.cxx:1355 #4 0x00007f6a005d2ca9 in PChannel::PXSetIOBlock (this=0x9d9380, type=PChannel::PXReadBlock, timeout=...) at ptlib/unix/channel.cxx:123 #5 0x00007f6a005c88dc in PTCPSocket::Read (this=0x9d9380, buf=0x7f6a01d80c2e, maxLen=1) at ptlib/unix/socket.cxx:683 #6 0x00007f6a005cf800 in PChannel::ReadChar (this=0x9d9380) at ptlib/unix/../common/pchannel.cxx:210 #7 0x00007f6a010f1740 in OpalTransportTCP::ReadPDU (this=0x9c38f0, pdu=...) at /root/Eridani/opal/src/opal/transports.cxx:1257 #8 0x00007f6a013feef6 in H323Connection::HandleControlChannel (this=0x7f69ec057fc0) at /root/Eridani/opal/src/h323/h323.cxx:2844 #9 0x00007f6a013fdbd2 in H323Connection::NewOutgoingControlChannel (this=0x7f69ec057fc0) at /root/Eridani/opal/src/h323/h323.cxx:2571 #10 0x00007f6a0140c8d9 in H323Connection::NewOutgoingControlChannel_PNotifier::Call (this=0x9da1f0, note=..., extra=0) at /root/Eridani/opal/include/h323/h323con.h:2149 #11 0x00007f6a0109312b in PNotifierTemplate<long>::operator() (this=0x92d538, notifier=..., extra=0) at /usr/local/include/ptlib/notifier.h:136 #12 0x00007f6a0062d25d in PSimpleThread::Main (this=0x92d420) at ptlib/common/osutils.cxx:2400 #13 0x00007f6a005dd720 in PThread::PX_ThreadMain (arg=0x92d420) at ptlib/unix/tlibthrd.cxx:389 #14 0x00007f69ff48d8ca in start_thread (arg=<optimized out>) at pthread_create.c:300 #15 0x00007f69ff772b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #16 0x0000000000000000 in ?? () (gdb) thr 2 [Switching to thread 2 (Thread 0x7f69f01e2700 (LWP 11265))] #0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 136 in ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (gdb) bt #0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 #1 0x00007f69ff490194 in _L_lock_1024 () from /lib/libpthread.so.0 #2 0x00007f69ff48fff7 in __pthread_mutex_lock (mutex=0x9d9460) at pthread_mutex_lock.c:82 #3 0x00007f6a005dfdfb in PTimedMutex::Wait (this=0x9d9440) at ptlib/unix/tlibthrd.cxx:1355 #4 0x00007f6a005d33cb in AbortIO (thread=@0x9d9490, mutex=...) at ptlib/unix/channel.cxx:317 #5 0x00007f6a005d34f7 in PChannel::PXClose (this=0x9d9380) at ptlib/unix/channel.cxx:350 #6 0x00007f6a005d3389 in PChannel::Close (this=0x9d9380) at ptlib/unix/channel.cxx:311 #7 0x00007f6a010f015f in OpalTransport::Close (this=0x9c38f0) at /root/Eridani/opal/src/opal/transports.cxx:985 #8 0x00007f6a010f01f3 in OpalTransport::CloseWait (this=0x9c38f0) at /root/Eridani/opal/src/opal/transports.cxx:995 #9 0x00007f6a013f3961 in H323Connection::OnReleased (this=0x7f69ec057fc0) at /root/Eridani/opal/src/h323/h323.cxx:410 #10 0x00007f6a010a10e7 in OpalConnection::OnReleaseThreadMain (this=0x7f69ec057fc0, thread=...) at /root/Eridani/opal/src/opal/connection.cxx:438 #11 0x00007f6a010ab623 in OpalConnection::OnReleaseThreadMain_PNotifier::Call (this=0x7f69ec09d240, note=..., extra=0) at /root/Eridani/opal/include/opal/connection.h:1842 #12 0x00007f6a0109312b in PNotifierTemplate<long>::operator() (this=0x7f69ec09d6c8, notifier=..., extra=0) at /usr/local/include/ptlib/notifier.h:136 #13 0x00007f6a0062d25d in PSimpleThread::Main (this=0x7f69ec09d5b0) at ptlib/common/osutils.cxx:2400 #14 0x00007f6a005dd720 in PThread::PX_ThreadMain (arg=0x7f69ec09d5b0) at ptlib/unix/tlibthrd.cxx:389 #15 0x00007f69ff48d8ca in start_thread (arg=<optimized out>) at pthread_create.c:300 #16 0x00007f69ff772b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #17 0x0000000000000000 in ?? () |