<div dir="ltr"><span></span><br><span></span>Hi Ross,<span></span><div><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>we still have the same error (below), I highly recommend <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.90">Asan</span>, it has proven to be very valuable locating bugs that are otherwise impossible to detect.</div><div>I remember from my last debugging session that all we do is a call to Medium::close(<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.91">ourMediaSession</span>)<wbr>.</div><div>Tomorrow I will likely have time to look into the code again, hopefully I'll learn more.</div><div><br></div><div>regards,</div><div><br></div><div>Frederik De <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.92">Ruyck</span></div><div><br></div><div>==============================<wbr>==============================<wbr>=====<br>==27068==ERROR: <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.93">AddressSanitizer</span>: heap-use-after-free on address 0xae822e44 at <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.94">pc</span> 0xb79633d8 <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.95">bp</span> 0x5c27bc68 <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.96">sp</span> 0x5c27bc5c<br>READ of size 4 at 0xae822e44 thread T76<br> #0 0xb79633d7 in <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.97">RTPInterface</span>::<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.98">removeStreamSock<wbr>et</span>(int, unsigned char) /home/user/Git/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.99">heraclesMaster</span>/<wbr>external_libs/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.100">hipi</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.101">livemedia</span>/l<wbr>ive/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.102">liveMedia</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.103">RTPInterface</span>.<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.104">cpp</span><wbr>:176<br> #1 0xb79640d6 in <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.105">SocketDescriptor</span>::~<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.106">SocketDescr<wbr>iptor</span>() /home/user/Git/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.107">heraclesMaster</span>/<wbr>external_libs/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.108">hipi</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.109">livemedia</span>/l<wbr>ive/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.110">liveMedia</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.111">RTPInterface</span>.<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.112">cpp</span><wbr>:412<br> #2 0xb7964399 in <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.113">SocketDescriptor</span>::~<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.114">SocketDescr<wbr>iptor</span>() /home/user/Git/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.115">heraclesMaster</span>/<wbr>external_libs/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.116">hipi</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.117">livemedia</span>/l<wbr>ive/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.118">liveMedia</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.119">RTPInterface</span>.<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.120">cpp</span><wbr>:429<br> #3 0xb796530a in <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.121">SocketDescriptor</span>::<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.122">tcpReadHandl<wbr>er</span>(<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.123">SocketDescriptor</span>*, int) /home/user/Git/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.124">heraclesMaster</span>/<wbr>external_libs/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.125">hipi</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.126">livemedia</span>/l<wbr>ive/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.127">liveMedia</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.128">RTPInterface</span>.<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.129">cpp</span><wbr>:478<br> #4 0xb786fd6a in <span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.130">BasicTaskScheduler</span>::<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.131">SingleStep</span><wbr>(unsigned int) /home/user/Git/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.132">heraclesMaster</span>/<wbr>external_libs/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.133">hipi</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.134">livemedia</span>/l<wbr>ive/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.135">BasicUsageEnvironment</span>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.136">Basi<wbr>cTaskScheduler</span>.<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.137">cpp</span>:171<br> #5 0x86669f0 in Hydra::<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.138">LiveMediaTask</span>::<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.139">EventLoo<wbr>p</span>() /home/user/Git/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.140">heraclesMaster</span>/<wbr>hydra_libs/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.141">RTSPCamInterface</span>/pr<wbr>ivate/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.142">LiveMediaTask</span>.<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.143">cpp</span>:173<br> #6 0x866df85 in operator()<, void> /<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.144">usr</span>/include/c++/4.9/functiona<wbr>l:569<br> #7 0x866df85 in _M_invoke<0u> /<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.145">usr</span>/include/c++/4.9/functiona<wbr>l:1700<br> #8 0x866df85 in std::_Bind_simple<std::_<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.146">Mem</span>_<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.147">fn</span><wbr><void (Hydra::<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.148">LiveMediaTask</span>::*)()> (Hydra::<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.149">LiveMediaTask</span>*)>::oper<wbr>ator()() /<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.150">usr</span>/include/c++/4.9/functiona<wbr>l:1688<br> #9 0x866df85 in std::thread::_<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.151">Impl</span><std::_Bind_<wbr>simple<std::_<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.152">Mem</span>_<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.153">fn</span><void (Hydra::<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.154">LiveMediaTask</span>::*)()> (Hydra::<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.155">LiveMediaTask</span>*)> >::_M_run() /<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.156">usr</span>/include/c++/4.9/thread:11<wbr>5<br> #10 0xb4b8d0fd (/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.157">usr</span>/lib/i386-<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.158">linux</span>-gnu/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.159">libst<wbr>dc</span>++.so.6+0xa60fd)<br> #11 0xb7b3653f (/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.160">usr</span>/lib/i386-<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.161">linux</span>-gnu/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.162">libas<wbr>an</span>.so.1+0x5653f)<br> #12 0xb7afe067 (/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.163">usr</span>/lib/i386-<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.164">linux</span>-gnu/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.165">libas<wbr>an</span>.so.1+0x1e067)<br> #13 0xb4faeefa in start_thread (/lib/i386-<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.166">linux</span>-gnu/i686/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.167">cmov</span><wbr>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.168">libpthread</span>.so.0+0x6efa)<br> #14 0xb49c1d4d in clone (/lib/i386-<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.169">linux</span>-gnu/i686/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.170">cmov</span><wbr>/<span id="m_5626197309510997305m_382544059194211894m_8977841041861931097:3wq.171">libc</span>.so.6+0xe9d4d)</div><div>0xae822e44 is located -1367200252 bytes inside<br></div></div><span><div class="m_5626197309510997305m_382544059194211894HOEnZb"><div class="m_5626197309510997305m_382544059194211894h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-05-24 23:37 GMT+02:00 Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com" target="_blank">finlayson@live555.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for reporting this issue. I have just installed a new version (2017.05.24) of the “LIVE555 Streaming Media” code that should (I hope) fix this.<br>
<br>
(Does this also solve the problem that “libasan” reported to you?)<br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" rel="noreferrer" target="_blank">http://www.live555.com/</a><br>
<br>
<br>
______________________________<wbr>_________________<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/mailm<wbr>an/listinfo/live-devel</a><br>
</blockquote></div><br></div>
</div></div></span></div><br></div>
</div><br></div>
</div><br></div></div>