thanks janne, now it&#39;s seems stable.<br><br>erez.<br><br><div><span class="gmail_quote">On 7/9/07, <b class="gmail_sendername">Janne Grunau</b> &lt;<a href="mailto:janne-mythtv@grunau.be">janne-mythtv@grunau.be</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Monday 09 July 2007 10:23:46 Erez D wrote:<br>&gt; attached, pls find the backtrace
<br>&gt;<br>&gt; btw, compiled with<br>&gt; ./configure --prefix=/usr --enable-dvb --enable-proc-opt<br>&gt; --compile-type=debug<br>&gt; revision: 13850<br>&gt;<br>&gt; Program received signal SIGSEGV, Segmentation fault.
<br>&gt; [Switching to Thread -1467016304 (LWP 27950)]<br>&gt; 0xb7841df0 in RingBuffer::GetWritePosition () from /usr/lib/libmythtv-0.20.so.0<br><br>I see that ocasionally too (LiveTV channel switching on the same oncoder).
<br>Following patch doesn&#39;t have visible negative side effects.<br>It&#39;s only a workaround, the real bug is somewhere else.<br><br>Janne<br><br>Index: libs/libmythtv/dtvrecorder.cpp<br>===================================================================
<br>--- libs/libmythtv/dtvrecorder.cpp.orig<br>+++ libs/libmythtv/dtvrecorder.cpp<br>@@ -333,7 +333,7 @@ void DTVRecorder::HandleKeyframe(void)<br><br>&nbsp;&nbsp;&nbsp;&nbsp; // Add key frame to position map<br>&nbsp;&nbsp;&nbsp;&nbsp; positionMapLock.lock();<br>
-&nbsp;&nbsp;&nbsp;&nbsp;if (!positionMap.contains(frameNum))<br>+&nbsp;&nbsp;&nbsp;&nbsp;if (!positionMap.contains(frameNum) &amp;&amp; ringBuffer)<br>&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long long startpos = ringBuffer-&gt;GetWritePosition();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // FIXME: handle keyframes with start code spanning over two ts packets
<br>_______________________________________________<br>mythtv-dev mailing list<br><a href="mailto:mythtv-dev@mythtv.org">mythtv-dev@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
</a><br></blockquote></div><br>