[mythtv-commits] Ticket #5268: mythtv-backend seems to go into endless loop, pegs cpu

MythTV mythtv at cvs.mythtv.org
Thu Oct 9 04:51:55 UTC 2008


#5268: mythtv-backend seems to go into endless loop, pegs cpu
-----------------------------------+----------------------------------------
 Reporter:  eharris at puremagic.com  |        Owner:  awithers  
     Type:  defect                 |       Status:  assigned  
 Priority:  major                  |    Milestone:  unknown   
Component:  mythtv                 |      Version:  0.21-fixes
 Severity:  medium                 |   Resolution:            
  Mlocked:  0                      |  
-----------------------------------+----------------------------------------

Comment(by awithers):

 I’ve attached a patch which should work around one possible route to this.
 It is currently specific to a slave backend being the cause and will not
 be committed until I find a better fix.

 What can happen:

 MBE: scheduler posts a MythEvent("SCHEDULE_CHANGE")

 Loop:
 MBE: MainServer::customEvent() dispatches MythEvent("SCHEDULE_CHANGE") as
 BACKEND_MESSAGE to anyone listening.
 SBE: Receives BACKEND_MESSAGE and resurrects MythEvent("SCHEDULE_CHANGE")
 SBE: MainServer::customEvent() dispatches MythEvent("SCHEDULE_CHANGE") as
 BACKEND_MESSAGE to anyone listening (including the connection to the
 master backend)
 see Loop

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5268#comment:9>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list