Hello,

o laurent schweizer [06/02/08 10:37]:
> 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

i think i  ran into the same issue, and could only solve that problem by 
either reverting to my first implementation, where the connector does 
delete this, or, what I am using now, by making sure that the callee 
session is destroyed after the caller session (waiting for an 
AmCondition in onBeforeDestroy), and delete the connector from the 
caller session only (or making it property of caller session). I can 
submit the patch, but the negative side effect is that the caller 
session always lives longer than the callee session.

Stefan

>  
> any idee how to debug ??
>  
> 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

-- 
Stefan Sayer
VoIP Services

[EMAIL PROTECTED]
www.iptego.com

iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to