<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi Ross,<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">As per your suggestion i have compiled proxyserver in debugging mode, as per the backtrace SEGFAULT is occurring at following line<br><b> rtpGroupsock = createGroupsock(dummyAddr, serverRTPPort);<br><br></b></div><div class="gmail_default" style="font-family:verdana,sans-serif">following are the logs and backtrace from the gdb,<br><br>parseRTSPRequestString() succeeded, returning cmdName "<b>SETUP</b>", urlPreSuffix "<b>sb_123_2gdoy/device_461</b>", urlSuffix "track1", CSeq "3", Content-Length 0, with 0 bytes following the message.<br>ProxyServerMediaSubsession["H264"]::createNewStreamSource(session id 118584588)<br>ProxyRTSPClient["rtsp://<a href="http://192.168.8.115:8552" target="_blank">192.168.8.115:8552</a><b>/sb_123_2gdoy/device_461/</b>"]: lost connection to server ('errno': 22). Resetting...<br>ProxyServerMediaSubsession["H264"]::~ProxyServerMediaSubsession()<br>ProxyServerMediaSubsession["PCMU"]::~ProxyServerMediaSubsession()<br>SIGPIPE is ignoring<br>Opening connection to 192.168.8.115, port 8552...<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><b>Here i want to draw your attention to above condition. A SETUP request came from the client, but before it gets processed further connection is dropped somehow, and as per the default behavior proxyserver is resetting the connection. but here i came to know by debugging prints that still client handler is trying to process the same SETUP request. </b><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">following are the backtrace logs.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br>Program received signal SIGSEGV, Segmentation fault.<br>0x0000000000000000 in ?? ()<br>(gdb) backtrace<br>#0 0x0000000000000000 in ?? ()<br>#1 0x0000000000446811 in OnDemandServerMediaSubsession::getStreamParameters (this=0x690b00, clientSessionId=118584588,<br> clientAddress=1914849974, clientRTPPort=..., clientRTCPPort=..., tcpSocketNum=-1, rtpChannelId=255 '\377', rtcpChannelId=255 '\377',<br> destinationAddress=@0x7fffffffd320: 1914849974, isMulticast=@0x68cbc0: 0 '\000', serverRTPPort=..., serverRTCPPort=...,<br> streamToken=@0x8a4d10: 0x0) at OnDemandServerMediaSubsession.cpp:153<br>#2 0x000000000040a76d in RTSPServer::RTSPClientSession::handleCmd_SETUP (this=0x68cb90, ourClientConnection=0x8db9b0,<br> urlPreSuffix=0x7fffffffd640 "sb_123_2gdoy/device_461", urlSuffix=0x7fffffffd710 "track1",<br> fullRequestStr=0x8db9d4 "SETUP rtsp://<a href="http://172.31.36.11:8554/sb_123_2gdoy/device_461/track1" target="_blank">172.31.36.11:8554/sb_123_2gdoy/device_461/track1</a> RTSP/1.0\r\nTransport: RTP/AVP/UDP;unicast;client_port=12316-12317\r\nCSeq: 3\r\nUser-Agent: Lavf55.13.102\r\n\r\n") at RTSPServer.cpp:1682<br>#3 0x000000000040810e in RTSPServer::RTSPClientConnection::handleRequestBytes (this=0x8db9b0, newBytesRead=166) at RTSPServer.cpp:1004<br>#4 0x0000000000404c03 in GenericMediaServer::ClientConnection::incomingRequestHandler (this=0x8db9b0) at GenericMediaServer.cpp:244<br>#5 0x0000000000404b71 in GenericMediaServer::ClientConnection::incomingRequestHandler (instance=0x8db9b0) at GenericMediaServer.cpp:237<br>#6 0x000000000045710f in BasicTaskScheduler::SingleStep (this=0x689010, maxDelayTime=0) at BasicTaskScheduler.cpp:153<br>#7 0x0000000000459cf8 in BasicTaskScheduler0::doEventLoop (this=0x689010, watchVariable=0x0) at BasicTaskScheduler0.cpp:80<br>#8 0x00000000004037d0 in main (argc=1, argv=0x7fffffffe0a0) at live555ProxyServer.cpp:228<br>(gdb)<br><br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Because of addition of debugging prints its showing line no 153, at the function i mentioned earlier in this mail. I hope this is enough information. Please let me know for any additional information.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"> <br></div><div class="gmail_extra"><br clear="all"><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"><font color="#0000ff"><br></font></span></div><div><span style="font-family:verdana,sans-serif"><b><font color="#0b5394">With Warm Regards,</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>
<br><div class="gmail_quote">On Mon, Oct 12, 2015 at 12:49 AM, Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com" target="_blank">finlayson@live555.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Unfortunately you’re going to have to be a *lot* more specific about where the segfault is occurring, and why.<div><br></div><div>To improve the detail of gdb’s stack traces, I suggest compiling your code with “-g” (instead of “-O”).</div><div><br></div><div>And, as always, I assume that you’re using the latest version of the “LIVE555 Streaming Media” code, and have not modified it.</div><span><font color="#888888"><br><br><div>
<span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a></span></span>
</div>
<br></font></span></div><br>_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" rel="noreferrer" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
<br></blockquote></div><br></div></div>