[mythtv] Trying to debug backend

Stuart Auchterlonie stuarta at squashedfrog.net
Tue Sep 13 10:23:22 UTC 2005


On Sun, Sep 11, 2005 at 10:32:09PM +0200, Torbjörn Jansson wrote:
> I managed to get the backend to stop responding to commands so i thought i
> should try to debug it.
> Since i didn't start the backend tru gdb, i ran gdb when it was not
> responding and then i did a "attach <pid>".
> 
> gdb then started to load symbols and when it was done i issued the command
> "cont", but now the backend started to behave normaly again.
> 
> Any idea on what i did wrong or maybe someone got some ideas?
> The thing is that this problem doesn't happen very often and it's almost
> always locking up when waiting for a response from the backend to the
> command QUERY_RECORDER SEEK_RINGBUF
> 

Don't tell gdb to continue after you attach it.

Immediately ask for the backtrace, and you will probably find
one of the threads blocked waiting for something. That will point
you in the right direction...


Stuart



More information about the mythtv-dev mailing list