[mythtv-commits] Ticket #13571: Crash of backend on delete of program being recorded

MythTV noreply at mythtv.org
Wed Mar 25 16:41:41 UTC 2020


#13571: Crash of backend on delete of program being recorded
--------------------------------+------------------------------
 Reporter:  Klaas de Waal       |          Owner:  (none)
     Type:  Bug Report - Crash  |         Status:  new
 Priority:  minor               |      Milestone:  needs_triage
Component:  MythTV - General    |        Version:  Master Head
 Severity:  medium              |     Resolution:
 Keywords:                      |  Ticket locked:  0
--------------------------------+------------------------------
Changes (by Klaas de Waal):

 * cc: gigem, mark, spieth (added)


Comment:

 After having a few more crashes, revisiting the code around the failing
 bits in mythserver.cpp:2916 raises the question why the loop continues
 after the recording is stopped. Because the recording is also deleted
 immediately after it is stopped, could it be that the recinfo it points to
 is deleted while still looping towards the end of the loop and accessing
 the already deleted recinfo?

 The attached patch terminates the loop after a recording has been found
 and stopped.

 This patch asssumes that there are not two recordings associated with one
 recinfo. This sounds obvious but I have not checked it.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13571#comment:8>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list