laurent schweizer wrote: > Hello, > > I have a segmementation fault in AmB2ABSession.cpp. > > I put a DBG trace just before tag_mut.lock() in bool > AmSessionAudioConnector::disconnectSession(AmSession* sess) and it's > the last output > > any idee how to debug ?? >
My wild guess would be that one of the objects (AmB2ABSession or AmSessionAudioConnector) has already been destroyed... I would try to output the "this" pointer in the destructor, and at some place before it crashes. -Raphael. > Thanks > Laurent > > Core was generated by `./core/sems -f sems.config.debug'. > Program terminated with signal 11, Segmentation fault. > #0 0x003443a0 in pthread_mutex_lock () from /lib/libpthread.so.0 > (gdb) bt > #0 0x003443a0 in pthread_mutex_lock () from /lib/libpthread.so.0 > #1 0x080df59d in AmMutex::lock (this=0x37d44) at AmThread.cpp:48 > #2 0x0807a8e7 in AmSessionAudioConnector::disconnectSession > (this=0x23d00, sess=0x98e6580) at AmB2ABSession.cpp:360 > #3 0x0807c3af in AmB2ABSession::disconnectSession (this=0x98e6580) at > AmB2ABSession.cpp:110 > #4 0x0807c7f9 in AmB2ABSession::terminateLeg (this=0x98e6580) at > AmB2ABSession.cpp:127 > #5 0x08079c5b in AmB2ABSession::onB2ABEvent (this=0x80ec300, > ev=0x989f560) at AmB2ABSession.cpp:77 > #6 0x0807b405 in AmB2ABCalleeSession::onB2ABEvent (this=0x98e6580, > ev=0x989f560) at AmB2ABSession.cpp:289 > #7 0x0807a04a in AmB2ABSession::process (this=0x98e6580, > event=0x989f560) at AmB2ABSession.cpp:65 > #8 0x0809b2e9 in AmEventQueue::processEvents (this=0x98e65c0) at > AmEventQueue.cpp:70 > #9 0x080d2ecd in AmSession::run (this=0x98e6580) at AmSession.cpp:401 > #10 0x080e017e in AmThread::_start (_t=0x98e6580) at AmThread.cpp:71 > #11 0x0034245b in start_thread () from /lib/libpthread.so.0 > #12 0x0029a24e in clone () from /lib/libc.so.6 > ------------------------------------------------------------------------ > > _______________________________________________ > Semsdev mailing list > [email protected] > http://lists.iptel.org/mailman/listinfo/semsdev > _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
