[mythtv] another deadlock
Mark Spieth
mark at digivation.com.au
Tue Jan 26 00:28:28 UTC 2010
On 11/17/2009 12:32 AM, Daniel Kristjansson wrote:
> On Mon, 2009-11-16 at 21:16 +1100, Mark Spieth wrote:
>
>> Ive just seen this.
>>
>> 2009-11-16 20:00:29.883 Scheduler: Update next_record for 17202
>> 2009-11-16 20:00:29.896 ERROR: Master backend tried to connect back to
>> itself!
>>
>> after which a restart watchdog kicked in.
>>
>> any suggestions where to look?
>>
> Add an assert(false); right after the "ERROR: .. " message so we
> can locate and remove the offending code. :)
>
> (Compile with debugging and either under gdb or with coredumps
> enabled so that you can get a good backtrace.)
>
ok Ive finally got a useful backtrace. attached.
symptom is that the backend stops responding.
search for
"this=0xa7ba90|mtx = 0xa7bb5[89]"
4 threads want this lock. the one that has it is the TVRec::RunTV
TVRec::StartRecording thread which should be ok
Expirer thread
and HttpStatus request handling thread.
it appears as though the RunTV thread is wating for hwlock but cant get
it which means one of the other threads may be holding it.
I suspect DVBChannel hwlock should be inited as QMutex::Recursive
that should fix this.
will test but it doesn't happen often so feedback will take a while.
mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcore.log.1264390476.gz
Type: application/x-gzip
Size: 10870 bytes
Desc: not available
URL: <http://mythtv.org/pipermail/mythtv-dev/attachments/20100126/d210e4ff/attachment.bin>
More information about the mythtv-dev
mailing list