<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'><br><br>--- <b>Ven 13/6/08, Ross Finlayson <i>&lt;finlayson@live555.com&gt;</i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Ross Finlayson &lt;finlayson@live555.com&gt;<br>Oggetto: Re: [Live-devel] segfault in DelayQueue::removeEntry()<br>A: "LIVE555 Streaming Media - development &amp; use" &lt;live-devel@ns.live555.com&gt;<br>Data: Venerdì 13 giugno 2008, 07:15<br><br><div id="yiv61400584">
<style type="text/css"><!--
#yiv61400584 
blockquote,#yiv61400584  dl,#yiv61400584  ul,#yiv61400584  ol,#yiv61400584  li {padding-top:0;padding-bottom:0;}
--></style><title>Re: [Live-devel] segfault in
DelayQueue::removeEntry()</title><blockquote type="cite" cite="">should the sanity check, at the beginning
of the function, be patched in the following&nbsp; way?<br>
<br>
- if (entry == <a rel="nofollow" target="_blank" href="http://www.live555.com/liveMedia/doxygen/html/UsageEnvironment_8hh.html#070d2ce7b6bb7e5c05602aa8c308d0c4"><span></span>NULL</a> || entry-&gt;<a rel="nofollow" target="_blank" href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#3a2ccdcdcac760623833136b5ced2410"><span></span>fNext</a> == <a rel="nofollow" target="_blank" href="http://www.live555.com/liveMedia/doxygen/html/UsageEnvironment_8hh.html#070d2ce7b6bb7e5c05602aa8c308d0c4"><span></span>NULL</a>) return;<br>
</blockquote>
<blockquote type="cite" cite="">+ if (entry == <a rel="nofollow" target="_blank" href="http://www.live555.com/liveMedia/doxygen/html/UsageEnvironment_8hh.html#070d2ce7b6bb7e5c05602aa8c308d0c4"><span></span>NULL</a> || entry-&gt;<a rel="nofollow" target="_blank" href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#3a2ccdcdcac760623833136b5ced2410"><span></span>fNext</a> == <a rel="nofollow" target="_blank" href="http://www.live555.com/liveMedia/doxygen/html/UsageEnvironment_8hh.html#070d2ce7b6bb7e5c05602aa8c308d0c4"><span></span>NULL</a> || entry-&gt;<a rel="nofollow" target="_blank" href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#3a2ccdcdcac760623833136b5ced2410"><span></span>fPrev</a> == <a rel="nofollow" target="_blank" href="http://www.live555.com/liveMedia/doxygen/html/UsageEnvironment_8hh.html#070d2ce7b6bb7e5c05602aa8c308d0c4"><span></span>NULL</a>) return;</blockquote>
<div><br></div>
<div>In principle, this shouldn't be necessary, as it should never be
the case that "entry-&gt;fNext" is non-NULL, but
"entry-&gt;fPrev" is NULL.</div>
<div><br></div>
<div>So, I don't understand how your error could have occurred.&nbsp;
I hope you're not doing something dumb like trying to access a queue
from multiple threads?</div>
<div><br></div>
<div>Puzzling...</div>
<pre>-- <br></pre>yes, you're right :-( . I used a thread-unsafe operation (not so dumb, but unsafe)<br>
thnks<br>
Paolo<br>
  <br>
</div></blockquote></td></tr></table><br>





      <hr size=1><font face="Arial" size="2">Scopri il <a href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F"> Blog di Yahoo! Mail</a>: trucchi, novità, consigli... e la tua opinione!</font>