<div dir="ltr">I'm using several RTSP clients threads in my app.<div><br><div><div>Occasionaly in test environment, when RTSP servers are frequently restarted, i'm catching SIGSEGV here :</div><div><br></div><div>
<p style="margin:0px"><span style="font-family:'Sans Serif';font-size:9pt">~"#0  RTCPInstance::numMembers (this=0x7fffaca5e6e0) at RTCP.cpp:234\n"</span></p>
<p style="margin:0px"><span style="font-family:'Sans Serif';font-size:9pt">>~"#1  0x00007ffff6246823 in RTCPInstance::onExpire1 (this=0x7fffaca5e6e0) at RTCP.cpp:926\n"</span></p>
<p style="margin:0px"><span style="font-family:'Sans Serif';font-size:9pt">>~"#2  0x00007ffff6246873 in RTCPInstance::onExpire (instance=<optimized out>) at RTCP.cpp:694\n"</span></p>
<p style="margin:0px"><span style="font-family:'Sans Serif';font-size:9pt">>~"#3  0x00007ffff624417b in AlarmHandler::handleTimeout (this=0x7fffac9437e0) at BasicTaskScheduler0.cpp:34\n"</span></p>
<p style="margin:0px"><span style="font-family:'Sans Serif';font-size:9pt">>~"#4  0x00007ffff62445e2 in DelayQueue::handleAlarm (this=0x7fffac001d28) at DelayQueue.cpp:187\n"</span></p>
<p style="margin:0px"><span style="font-family:'Sans Serif';font-size:9pt">>~"#5  0x00007ffff6242f8a in CPollTaskScheduler::SingleStep (this=0x7fffac001d20, maxDelayTime=<optimized out>) at cpolltaskscheduler.cpp:204\n"</span></p>

<p style="margin:0px"><span style="font-family:'Sans Serif';font-size:9pt">>~"#6  0x00007ffff6243b95 in BasicTaskScheduler0::doEventLoop (this=0x7fffac001d20, watchVariable=0xc73200 \"\") at BasicTaskScheduler0.cpp:80\n"</span></p>

<p style="margin:0px"><span style="font-family:'Sans Serif';font-size:9pt">>~"#7  0x00007ffff6242376 in CRTSPv2ClientThread::run (this=0xc73100) at crtspv2clientthread.cpp:223\n"</span></p><div><br></div>
<div>I made some debugging and believe "this" is invalid atš<span style="font-family:'Sans Serif';font-size:12px">RTCPInstance::numMembers.</span></div><div><span style="font-family:'Sans Serif';font-size:12px">It seems RTCPInstance was destroyed due to closing subsessions, but unshedule() of š</span><span style="font-family:'Sans Serif';font-size:12px">onExpire() was not performed.</span></div>
<div><span style="font-family:'Sans Serif';font-size:12px"><br></span></div><div><span style="font-family:'Sans Serif';font-size:12px"><br></span></div><div><span style="font-family:'Sans Serif';font-size:12px">What are the conditions that may lead to that ?</span></div>
<div><span style="font-family:'Sans Serif';font-size:12px">ps. I use several š- up to 4 - šRTSP clients per singleš<br></span><span style="color:rgb(128,0,128)">TaskScheduler +</span><span style="font-family:'Sans Serif';font-size:12px">šdedicatedš</span><span style="color:rgb(128,0,128)">UsageEnvironment.</span></div>

<div><br clear="all"><div><br></div>-- <br><div dir="ltr">óÅÒÇÅÊ ëÕÐÒÉÅÎËÏ<div>ïÔÄÅÌ ÒÁÚÒÁÂÏÔËÉ ðï, "üÆ-üÆ"</div><div>Sergey Kuprienko<br></div><div>Head of software development dpt.</div><div><br></div><div><a href="http://www.f-f.kiev.ua" target="_blank">http://www.f-f.kiev.ua</a></div>
<div>+38 097 985 15 69</div></div>
</div></div></div></div></div>