<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi,<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I am facing SEGFAULT in live555 at one stage.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">As per below logs i understand when setup received from the client, at the same time if connection gets reset for that same connection before processing SETUP request, then segfault is arises.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br><b>parseRTSPRequestString() succeeded, returning cmdName "SETUP", urlPreSuffix "sb_123_2gdoy/device_457", urlSuffix "track1", CSeq "3", Content-Length 0, with 0 bytes following the message.<br>ProxyServerMediaSubsession["H264"]::createNewStreamSource(session id 3544434108)<br>ProxyRTSPClient["rtsp://<a href="http://192.168.4.11:8552/sb_123_2gdoy/device_457/" target="_blank">192.168.4.11:8552/sb_123_2gdoy/device_457/</a>"]: lost connection to server ('errno': 22). Resetting...<br>ProxyServerMediaSubsession["H264"]::~ProxyServerMediaSubsession()<br>ProxyServerMediaSubsession["PCMU"]::~ProxyServerMediaSubsession()<br><br></b></div><div class="gmail_default" style="font-family:verdana,sans-serif">fault raises in <b>OnDemandServerMediaSubsession::getStreamParameters </b>function as per the backtrace, can you please have a look at the function and what possibly could be the reason? this function does not seems to be failsafe at some places.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">following are the backtrace from gdb if that is helpful<br><br>#0 0x0000000000000000 in ?? ()<br>#1 0x000000000042fae0 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, unsigned int, Port const&, Port const&, int, unsigned char, unsigned char, unsigned int&, unsigned char&, unsigned char&, Port&, Port&, void*&) ()<br>#2 0x0000000000408ece in RTSPServer::RTSPClientSession::handleCmd_SETUP(RTSPServer::RTSPClientConnection*, char const*, char const*, char const*) ()<br>#3 0x000000000040652f in RTSPServer::RTSPClientConnection::handleRequestBytes(int) ()<br>#4 0x0000000000404517 in GenericMediaServer::ClientConnection::incomingRequestHandler() ()<br>#5 0x000000000043bad5 in BasicTaskScheduler::SingleStep(unsigned int) ()<br>#6 0x000000000043ce6c in BasicTaskScheduler0::doEventLoop(char volatile*) ()<br>#7 0x0000000000403457 in main ()<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:verdana,sans-serif"><b><font color="#0b5394">With Warm Regards,<div class="gmail_default" style="font-family:verdana,sans-serif;display:inline"></div></font></b></span></div><div><span style="font-family:verdana,sans-serif"><font color="#0b5394">Hardik Sangani</font></span></div><div><span style="font-family:verdana,sans-serif"><font color="#0b5394">VVDN Technologies Pvt Ltd</font></span></div><div><span style="font-family:verdana,sans-serif"><font color="#0b5394"><b>Cell : </b>+91 9176120633<b> | Skype : hardikjsangani</b></font></span></div></div></div></div></div></div></div></div></div></div>
</div>