<div class="gmail_quote">On Thu, Dec 3, 2009 at 11:16 AM, Michael T. Dean <span dir="ltr">&lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 12/03/2009 01:41 PM, Johnny Walker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Thu, Dec 3, 2009 at 11:54 AM, Johnny Walker wrote:<br>
  <br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Ok - I actually searched trac for this one to make sure there&#39;s not an<br>
obvious open ticket on this.<br>
<br>
I&#39;m seeing these in my /var/log/messages regularly:<br>
<br></div><div class="im">
Dec  3 08:16:19 mythserver kernel: [66657.267033]<br>
mythfilldatabas[3960]: segfault at 84300020 ip 007eaf3c sp b6884c90<br>
error 4 in libmythdb-0.22.so.0.22.0[7b4000+97000]<br>
    <br>
</div></blockquote><div class="im">
I mean this is happening often - at least to me:<br>
<br>
root@mythserver:/var/log# grep -i segfault messages*<br>
<br>
messages:Nov 29 07:00:27 mythserver kernel: [293964.131646]<br>
mythfilldatabas[5791]: segfault at 1d2 ip 00820f3c sp b5943c90 error 4<br>
in libmythdb-0.22.so.0.22.0[7ea000+97000<br>
</div></blockquote>
<br>
Can you get a good (with debug symbols) backtrace?  <a href="http://www.mythtv.org/wiki/Debugging" target="_blank">http://www.mythtv.org/wiki/Debugging</a></blockquote><div><br></div><div>Here is the stack-trace with the log snippet right before the crash:</div>
<div><br></div><div><div>===============================================================</div><div>| Attempting to contact the master backend for rescheduling.  |</div><div>| If the master is not running, rescheduling will happen when |</div>
<div>| the master backend is restarted.                            |</div><div>===============================================================</div><div>2009-11-17 09:00:23.746 MythContext: Connecting to backend server: <a href="http://192.168.2.3:6543">192.168.2.3:6543</a> (try 1 of 1)</div>
<div>2009-11-17 09:00:23.748 Using protocol version 50</div><div>2009-11-17 09:00:23.749 MainServer::ANN Monitor</div><div>2009-11-17 09:00:23.754 adding: ares as a client (events: 0)</div><div>2009-11-17 09:00:23.755 MainServer::ANN Monitor</div>
<div>2009-11-17 09:00:23.764 adding: ares as a client (events: 1)</div><div>2009-11-17 09:00:23.768 Reschedule requested for id -1.</div><div>2009-11-17 09:00:23.769 Received a remote &#39;Clear Cache&#39; request</div><div>
2009-11-17 09:00:23.856 Invalid search key in recordid 187</div><div>[New Thread 0xb279bb90 (LWP 21950)]</div><div><br></div><div>Program received signal SIGSEGV, Segmentation fault.</div><div>[Switching to Thread 0xb279bb90 (LWP 21950)]</div>
<div>0xb662b924 in MythContext::ClearSettingsCache (this=0x92ff1a0, </div><div>    myKey=@0xb279ad14) at mythcontext.cpp:1900</div><div>1900        d-&gt;m_database-&gt;ClearSettingsCache(myKey);</div><div>#0  0xb662b924 in MythContext::ClearSettingsCache (this=0x92ff1a0, </div>
<div>    myKey=@0xb279ad14) at mythcontext.cpp:1900</div><div>#1  0xb662c012 in MythContext::readyRead (this=0x92ff1a0, sock=0x93331e0)</div><div>    at mythcontext.cpp:2171</div><div>#2  0xb62c318c in MythSocketThread::ReadyToBeRead (this=0x92aada8, </div>
<div>    sock=0x93331e0) at mythsocketthread.cpp:168</div><div>#3  0xb62c6502 in MythSocketThread::run (this=0x92aada8)</div><div>    at mythsocketthread.cpp:355</div><div>#4  0xb508596e in ?? () from /usr/lib/libQtCore.so.4</div>
<div>#5  0xb5f314ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0</div><div>#6  0xb4e8b49e in clone () from /lib/tls/i686/cmov/libc.so.6</div><div><br></div></div><div>I&#39;ve seen this problem for a while and even instrumented mythfilldatabase to run inside gdb to produce stack-trace (when running mythfilldatabase manually I could never get it to crash).</div>
<div><br></div><div>Thanks,</div><div>Pasha</div><div><br></div></div>