Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 2 years ago

Closed 22 months ago

Last modified 22 months 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@…> 2 years ago.
gdb_20120626.txt (108.4 KB) - added by Steven Adeff <adeffs.mythtv@…> 22 months ago.
another event
mythbackend_20120626.log.gz (445.2 KB) - added by Steven Adeff <adeffs.mythtv@…> 22 months ago.
gdb_20120701.txt (86.4 KB) - added by Steven Adeff <adeffs.mythtv@…> 22 months ago.
another event
mythbackend_20120701.log.gz (181.2 KB) - added by Steven Adeff <adeffs.mythtv@…> 22 months ago.
gdb_2012-07-04.txt (81.8 KB) - added by Steven Adeff <adeffs.mythtv@…> 22 months ago.
mythbackend_2012-07-04.log.gz (346.9 KB) - added by Steven Adeff <adeffs.mythtv@…> 22 months ago.
deadlock1-0.25.patch (4.1 KB) - added by gigem 22 months ago.

Download all attachments as: .zip

Change History (16)

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

Changed 22 months ago by Steven Adeff <adeffs.mythtv@…>

another event

Changed 22 months ago by Steven Adeff <adeffs.mythtv@…>

Changed 22 months ago by Steven Adeff <adeffs.mythtv@…>

another event

Changed 22 months ago by Steven Adeff <adeffs.mythtv@…>

comment:1 Changed 22 months 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 22 months ago by stuartm

  • Component changed from MythTV - General to MythTV - Scheduling
  • Milestone changed from unknown to 0.25.2
  • Owner set to gigem
  • Status changed from new to assigned

Another scheduler deadlock, David is looking at these.

comment:3 Changed 22 months ago by Steven Adeff <adeffs.mythtv@…>

sounds good.

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

Changed 22 months ago by Steven Adeff <adeffs.mythtv@…>

Changed 22 months ago by Steven Adeff <adeffs.mythtv@…>

comment:4 Changed 22 months ago by Steven Adeff <adeffs.mythtv@…>

this seems to be happening in increasing frequency lately.

comment:5 Changed 22 months ago by gigem

  • Status changed from assigned to infoneeded

Steven, please try the deadlock1-0.25 patch.

Changed 22 months ago by gigem

comment:6 Changed 22 months ago by David Engel <dengel@…>

  • Resolution set to fixed
  • Status changed from infoneeded to closed

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 22 months 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 22 months 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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.