Re: [Ekiga-devel-list] Crashes on exit



Julien Puydt a écrit :
Hi,

now that the ptlib+opal+ekiga trio can be compiled again, I wanted to check for leaks ; I could barely get something since I kept hitting a failed assertion in ptlib : assert.cxx(108) PWLib Assertion fail: Function pthread_mutex_lock failed, file ptlib/unix/tlibthrd.cxx, line 1432 Assertion fail: Function pthread_mutex_lock failed, file ptlib/unix/tlibthrd.cxx, line 1432

am I the only one seeing those?

Ok, I finally got the failed assertion in gdb :
(gdb) thread apply all bt

Thread 16 (Thread 0xb4affb90 (LWP 18367)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb675dfe1 in select () from /lib/i686/cmov/libc.so.6
#2 0xb7760a59 in PThread::PXBlockOnIO(int, int, PTimeInterval const&) () from /usr/lib/libpt.so.2.7-beta1 #3 0xb7757542 in PChannel::PXSetIOBlock(PChannel::PXBlockType, PTimeInterval const&) () from /usr/lib/libpt.so.2.7-beta1 #4 0xb77549e6 in PSocket::os_accept(PSocket&, sockaddr*, int*) () from /usr/lib/libpt.so.2.7-beta1 #5 0xb7779848 in PTCPSocket::Accept(PSocket&) () from /usr/lib/libpt.so.2.7-beta1 #6 0xb7b86e13 in OpalListenerTCP::Accept(PTimeInterval const&) () from /usr/lib/libopal.so.3.7-beta1 #7 0xb7b8707b in OpalListener::ListenForConnections(PThread&, int) () from /usr/lib/libopal.so.3.7-beta1 #8 0xb7b8765c in OpalListener::ListenForConnections_PNotifier::Call(PObject&, int) const () from /usr/lib/libopal.so.3.7-beta1
#9  0x08270ee7 in PNotifierTemplate<int>::operator()(PObject&, int) const ()
#10 0xb7787e3a in PSimpleThread::Main() () from /usr/lib/libpt.so.2.7-beta1
#11 0xb7763867 in PThread::PX_ThreadStart(void*) () from /usr/lib/libpt.so.2.7-beta1
#12 0xb6a3d4b5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#13 0xb6765a5e in clone () from /lib/i686/cmov/libc.so.6

Thread 15 (Thread 0xb4c76b90 (LWP 18366)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb675dfe1 in select () from /lib/i686/cmov/libc.so.6
#2 0xb77547a8 in PSocket::Select(PSocket::SelectList&, PSocket::SelectList&, PSocket::SelectList&, PTimeInterval const&) () from /usr/lib/libpt.so.2.7-beta1 #3 0xb777b76d in PSocket::Select(PSocket::SelectList&, PTimeInterval const&) () from /usr/lib/libpt.so.2.7-beta1 #4 0xb7782c50 in PMonitoredSockets::ReadFromSocket(PSocket::SelectList&, PUDPSocket*&, void*, int, PIPSocket::Address&, unsigned short&, int&, PTimeInterval const&) () from /usr/lib/libpt.so.2.7-beta1 #5 0xb77831de in PMonitoredSocketBundle::ReadFromBundle(void*, int, PIPSocket::Address&, unsigned short&, PString&, int&, PTimeInterval const&) () from /usr/lib/libpt.so.2.7-beta1 #6 0xb7b83e63 in OpalListenerUDP::Accept(PTimeInterval const&) () from /usr/lib/libopal.so.3.7-beta1 #7 0xb7b8707b in OpalListener::ListenForConnections(PThread&, int) () from /usr/lib/libopal.so.3.7-beta1 #8 0xb7b8765c in OpalListener::ListenForConnections_PNotifier::Call(PObject&, int) const () from /usr/lib/libopal.so.3.7-beta1
#9  0x08270ee7 in PNotifierTemplate<int>::operator()(PObject&, int) const ()
#10 0xb7787e3a in PSimpleThread::Main() () from /usr/lib/libpt.so.2.7-beta1
#11 0xb7763867 in PThread::PX_ThreadStart(void*) () from /usr/lib/libpt.so.2.7-beta1
#12 0xb6a3d4b5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#13 0xb6765a5e in clone () from /lib/i686/cmov/libc.so.6

Thread 13 (Thread 0xb3d09b90 (LWP 18362)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb675b467 in poll () from /lib/i686/cmov/libc.so.6
#2 0xb6983c8b in IA__g_poll (fds=0x8692ef8, nfds=9, timeout=-1) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gpoll.c:127 #3 0xb69768e5 in g_main_context_poll (context=0x8692718, block=1, dispatch=1, self=0x86929c0) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gmain.c:2768 #4 g_main_context_iterate (context=0x8692718, block=1, dispatch=1, self=0x86929c0) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gmain.c:2450 #5 0xb6976eda in IA__g_main_loop_run (loop=0x83e79f0) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gmain.c:2663
#6  0xb6540ea0 in ?? () from /usr/lib/libORBit-2.so.0
#7 0xb699d6bf in g_thread_create_proxy (data=0x86929c0) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gthread.c:635
#8  0xb6a3d4b5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#9  0xb6765a5e in clone () from /lib/i686/cmov/libc.so.6

Thread 12 (Thread 0xb450ab90 (LWP 18359)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb675b467 in poll () from /lib/i686/cmov/libc.so.6
#2 0xb6983c8b in IA__g_poll (fds=0x8536f80, nfds=1, timeout=-1) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gpoll.c:127 #3 0xb69768e5 in g_main_context_poll (context=0x8693048, block=1, dispatch=1, self=0x8536ea0) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gmain.c:2768 #4 g_main_context_iterate (context=0x8693048, block=1, dispatch=1, self=0x8536ea0) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gmain.c:2450 #5 0xb6976eda in IA__g_main_loop_run (loop=0x8536f70) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gmain.c:2663
#6  0xb49562a2 in ?? () from /usr/lib/libebook-1.2.so.9
#7 0xb699d6bf in g_thread_create_proxy (data=0x8536ea0) at /build/buildd-glib2.0_2.20.5-1-i386-mDnYKw/glib2.0-2.20.5/glib/gthread.c:635
#8  0xb6a3d4b5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#9  0xb6765a5e in clone () from /lib/i686/cmov/libc.so.6

Thread 11 (Thread 0xb4abeb90 (LWP 18358)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1 0xb6a40f65 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb775f2d3 in PSyncPoint::Wait() () from /usr/lib/libpt.so.2.7-beta1
#3 0xb7e2ab60 in SIPEndPoint::SIP_Work_Thread::Main() () from /usr/lib/libopal.so.3.7-beta1 #4 0xb7763867 in PThread::PX_ThreadStart(void*) () from /usr/lib/libpt.so.2.7-beta1
#5  0xb6a3d4b5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0xb6765a5e in clone () from /lib/i686/cmov/libc.so.6

Thread 7 (Thread 0xb4cb7b90 (LWP 18354)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb6755ebb in read () from /lib/i686/cmov/libc.so.6
#2  0xb66ee30e in _IO_file_underflow () from /lib/i686/cmov/libc.so.6
#3  0xb66f001b in _IO_default_uflow () from /lib/i686/cmov/libc.so.6
#4  0xb66f15c2 in __uflow () from /lib/i686/cmov/libc.so.6
#5  0xb66e69b7 in getchar () from /lib/i686/cmov/libc.so.6
#6 0xb7775565 in PAssertFunc(char const*) () from /usr/lib/libpt.so.2.7-beta1 #7 0xb77a38a2 in PAssertFunc(char const*, int, char const*, char const*) () from /usr/lib/libpt.so.2.7-beta1 #8 0xb775eed5 in PAssertThreadOp(int, unsigned int&, char const*, char const*, unsigned int) () from /usr/lib/libpt.so.2.7-beta1
#9  0xb775f536 in PTimedMutex::Wait() () from /usr/lib/libpt.so.2.7-beta1
#10 0xb777e0cc in PHostByName::GetHost(PString const&) () from /usr/lib/libpt.so.2.7-beta1 #11 0xb777e4f5 in PHostByName::GetHostAddress(PString const&, PIPSocket::Address&) () from /usr/lib/libpt.so.2.7-beta1 #12 0xb777e5e8 in PIPSocket::GetHostAddress(PString const&, PIPSocket::Address&) () from /usr/lib/libpt.so.2.7-beta1 #13 0xb7b856f1 in OpalInternalIPTransport::GetIpAndPort(OpalTransportAddress const&, PIPSocket::Address&, unsigned short&) const () from /usr/lib/libopal.so.3.7-beta1 #14 0xb7b801db in OpalTransportAddress::GetIpAddress(PIPSocket::Address&) const () from /usr/lib/libopal.so.3.7-beta1 #15 0xb7b86a80 in OpalListenerUDP::CreateTransport(OpalTransportAddress const&, OpalTransportAddress const&) const () from /usr/lib/libopal.so.3.7-beta1 #16 0xb7e2f1ba in SIPEndPoint::CreateTransport(SIPURL const&, PString const&) () from /usr/lib/libopal.so.3.7-beta1 #17 0xb7e5dd50 in SIPHandler::GetTransport() () from /usr/lib/libopal.so.3.7-beta1 #18 0xb7e2fec3 in SIPEndPoint::NATBindingRefresh(PTimer&, int) () from /usr/lib/libopal.so.3.7-beta1 #19 0xb7e3106f in SIPEndPoint::NATBindingRefresh_PNotifier::Call(PObject&, int) const () from /usr/lib/libopal.so.3.7-beta1
#20 0x08270ee7 in PNotifierTemplate<int>::operator()(PObject&, int) const ()
#21 0xb778be65 in PTimer::OnTimeout() () from /usr/lib/libpt.so.2.7-beta1
#22 0xb7787d61 in PTimer::Process(long long) () from /usr/lib/libpt.so.2.7-beta1
#23 0xb778d2c1 in PTimerList::Process() () from /usr/lib/libpt.so.2.7-beta1
#24 0xb7761f15 in PHouseKeepingThread::Main() () from /usr/lib/libpt.so.2.7-beta1 #25 0xb7763867 in PThread::PX_ThreadStart(void*) () from /usr/lib/libpt.so.2.7-beta1
#26 0xb6a3d4b5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#27 0xb6765a5e in clone () from /lib/i686/cmov/libc.so.6

Thread 6 (Thread 0xb4cf8b90 (LWP 18353)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb675dfe1 in select () from /lib/i686/cmov/libc.so.6
#2 0xb7756598 in WaitForNetLinkEvent::ReadEvent(PTimeInterval const&) () from /usr/lib/libpt.so.2.7-beta1 #3 0xb775395d in PIPSocket::WaitForRouteTableChange(PTimeInterval const&, PSyncPoint*) () from /usr/lib/libpt.so.2.7-beta1 #4 0xb7780f71 in PInterfaceMonitor::UpdateThreadMain() () from /usr/lib/libpt.so.2.7-beta1 #5 0xb7783e5c in PThreadObj<PInterfaceMonitor>::Main() () from /usr/lib/libpt.so.2.7-beta1 #6 0xb7763867 in PThread::PX_ThreadStart(void*) () from /usr/lib/libpt.so.2.7-beta1
#7  0xb6a3d4b5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#8  0xb6765a5e in clone () from /lib/i686/cmov/libc.so.6

Thread 5 (Thread 0xb4d39b90 (LWP 18351)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1 0xb6a41292 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0 #2 0xb775f1ce in PSyncPoint::Wait(PTimeInterval const&) () from /usr/lib/libpt.so.2.7-beta1 #3 0xb7b4bebf in OpalManager::GarbageMain(PThread&, int) () from /usr/lib/libopal.so.3.7-beta1 #4 0xb7b519b3 in OpalManager::GarbageMain_PNotifier::Call(PObject&, int) const () from /usr/lib/libopal.so.3.7-beta1
#5  0x08270ee7 in PNotifierTemplate<int>::operator()(PObject&, int) const ()
#6  0xb7787e3a in PSimpleThread::Main() () from /usr/lib/libpt.so.2.7-beta1
#7 0xb7763867 in PThread::PX_ThreadStart(void*) () from /usr/lib/libpt.so.2.7-beta1
#8  0xb6a3d4b5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#9  0xb6765a5e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb610fb40 (LWP 18330)):
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb675dfe1 in select () from /lib/i686/cmov/libc.so.6
#2 0xb77610c7 in PThread::Sleep(PTimeInterval const&) () from /usr/lib/libpt.so.2.7-beta1 #3 0xb776304a in PThread::WaitForTermination() const () from /usr/lib/libpt.so.2.7-beta1 #4 0xb778101a in PInterfaceMonitor::Stop() () from /usr/lib/libpt.so.2.7-beta1 #5 0xb7781136 in PInterfaceMonitor::OnShutdown() () from /usr/lib/libpt.so.2.7-beta1 #6 0xb7789f8e in PProcess::PreShutdown() () from /usr/lib/libpt.so.2.7-beta1
#7  0xb7763409 in PProcess::~PProcess() () from /usr/lib/libpt.so.2.7-beta1
#8  0xb66b4589 in exit () from /lib/i686/cmov/libc.so.6
#9  0xb669a7ad in __libc_start_main () from /lib/i686/cmov/libc.so.6
#10 0x08126191 in _start () at ../sysdeps/i386/elf/start.S:119


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]