Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10770 closed Bug Report - General (fixed)

backend stops responding

Reported by: Steven Adeff <adeffs.mythtv@…> Owned by: gigem
Priority: minor Milestone: 0.25.2
Component: MythTV - Scheduling Version: 0.25-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

nothing comes up on watch recordings, and :6544/Status/GetStatusHTML does not work.

watch tv comes back with "all tuners are currently busy", though I have no way of telling if this is true.

Attachments (8)

gdb.txt (96.2 KB) - added by Steven Adeff <adeffs.mythtv@…> 12 years ago.
gdb_20120626.txt (108.4 KB) - added by Steven Adeff <adeffs.mythtv@…> 12 years ago.
another event
mythbackend_20120626.log.gz (445.2 KB) - added by Steven Adeff <adeffs.mythtv@…> 12 years ago.
gdb_20120701.txt (86.4 KB) - added by Steven Adeff <adeffs.mythtv@…> 12 years ago.
another event
mythbackend_20120701.log.gz (181.2 KB) - added by Steven Adeff <adeffs.mythtv@…> 12 years ago.
gdb_2012-07-04.txt (81.8 KB) - added by Steven Adeff <adeffs.mythtv@…> 12 years ago.
mythbackend_2012-07-04.log.gz (346.9 KB) - added by Steven Adeff <adeffs.mythtv@…> 12 years ago.
deadlock1-0.25.patch (4.1 KB) - added by gigem 12 years ago.

Download all attachments as: .zip

Change History (16)

Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

Attachment: gdb.txt added

Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

Attachment: gdb_20120626.txt added

another event

Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

Attachment: mythbackend_20120626.log.gz added

Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

Attachment: gdb_20120701.txt added

another event

Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

Attachment: mythbackend_20120701.log.gz added

comment:1 Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

a standard init stop of the backend won't work either, I have to kill -9 it.

comment:2 Changed 12 years ago by stuartm

Component: MythTV - GeneralMythTV - Scheduling
Milestone: unknown0.25.2
Owner: set to gigem
Status: newassigned

Another scheduler deadlock, David is looking at these.

comment:3 Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

sounds good.

should I keep supplying gdb's when they happen or not bother?

Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

Attachment: gdb_2012-07-04.txt added

Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

comment:4 Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

this seems to be happening in increasing frequency lately.

comment:5 Changed 12 years ago by gigem

Status: assignedinfoneeded

Steven, please try the deadlock1-0.25 patch.

Changed 12 years ago by gigem

Attachment: deadlock1-0.25.patch added

comment:6 Changed 12 years ago by David Engel <dengel@…>

Resolution: fixed
Status: infoneededclosed

In ca273324961b95e300890ed40e833249b5460bd8/mythtv:

Hopefully remove more scheduler/recorder deadlocks.

Change the scheduler to unlock schedLock when calling the recorder
synchronously. If the recorder happens to be calling the scheduler at
the same time, this allows the recorder's call to grab the lock as
needed.

Fixes #10647, #10770 and #10771 .

comment:7 Changed 12 years ago by Steven Adeff <adeffs.mythtv@…>

I have been running the patch attached to this ticket since 05-July compiled into my 0.25 fixes build with no issues!

$ mythbackend --version Please attach all output as a file in bug reports. MythTV Version : v0.25.1-56-g11d7795 MythTV Branch : fixes/0.25 Network Protocol : 72 Library API : 0.25.20120506-1

comment:8 Changed 12 years ago by David Engel <dengel@…>

In 4386e90e25ed40948bb208e8a325a8b072411e88/mythtv:

Hopefully remove more scheduler/recorder deadlocks.

Change the scheduler to unlock schedLock when calling the recorder
synchronously. If the recorder happens to be calling the scheduler at
the same time, this allows the recorder's call to grab the lock as
needed.

Refs #10647, #10770 and #10771 .
(cherry picked from commit ca273324961b95e300890ed40e833249b5460bd8)

Conflicts:

mythtv/programs/mythbackend/scheduler.cpp

Note: See TracTickets for help on using tickets.