<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<div>Hi everyone<br>
<br>
I have a problem in my application (implementation of proxy server) when I try to close RTSPServer. Application immediately crashes. Backtrace shows that it happens inside RTSPServer.
<br>
<br>
(gdb) bt<br>
#0 0x00007f47500024e0 in ?? ()<br>
#1 0x0000000001023976 in RTSPServer::RTSPClientConnection::~RTSPClientConnection() ()<br>
#2 0x00000000010239d9 in RTSPServer::RTSPClientConnection::~RTSPClientConnection() ()<br>
#3 0x000000000101f8cf in GenericMediaServer::cleanup() ()<br>
#4 0x00000000010201e0 in RTSPServer::~RTSPServer() ()<br>
<br>
Further investigations showed that it crashes on the following line: fOurRTSPServer.fClientConnectionsForHTTPTunneling->Remove(fOurSessionCookie). So the reason seems to be simple, we call "delete fClientConnectionsForHTTPTunneling" in RTSPServer, and after
that we call cleanup, which deletes RTSPClientConnection and it makes a call to our already deleted fClientConnectionsForHTTPTunneling. If I place "delete fClientConnectionsForHTTPTunneling" after cleanup and recompile live555, there is no crash. If RTSP client
doesn't use RTSP-over-HTTP tunneling, there is also no crash.<br>
<br>
Is it a bug in RTSPServer? Or maybe there should be some steps, that I should take before call to "Medium::close(rtspServer)"?<br>
<br>
Best regards,<br>
<br>
Pavel</div>
<p></p>
</div>
This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the
reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.
</body>
</html>