<div class="gmail_quote">2011/7/25 Warpme <span dir="ltr">&lt;<a href="mailto:warpme@o2.pl">warpme@o2.pl</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Pls find attached BE trace &amp;  SHOW ENGINE INNODB STATUS\G from deadlocked BE (protocol version check deadlock).<br></blockquote></div><br>A few thoughts based on those dumps. It is entirely possible that any of these thoughts are misguided, since I know little about the code:<br>
<br>1. I don&#39;t see anything here suggesting this is a deadlock in MythTV; most of the threads are waiting to get a lock, but I&#39;m guessing that the lock is being held by the thread trying to run the DB query, which is waiting on the database rather than waiting on a lock in the Myth code. Maybe this is a terminology issue, but I think it makes a difference in terms of the possible causes.<br>
<br>2. The thread trying to query the database is hanging while preparing a statement rather than executing one. The database appears to be idle, unless I&#39;m misinterpreting the output or if you have some tables that are not InnoDB. Thus the database does not appear to be blocking due to locks.<br>
<br>3. The thread trying to run the DB query (0x98eafb70 = 2565536624) does not appear in the list of threads in the DB status output. Again, I may be misinterpreting the output, but if I&#39;m correct then the thread is trying to prepare a query on a connection that no longer open.<br>
<br>No idea if any of that is helpful...<br><br>David<br>