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

MythTV noreply at mythtv.org
Mon Apr 6 20:23:29 UTC 2020


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

Comment (by gigem):

 Excellent findings, Klaas!  I read somewhere along the lines of container
 traversal being thread safe when done in read-only mode.  Read-only can be
 interpreted different ways besides just using const iterators.

 I agree with your suggestion to switch nearly all of our uses to const
 iterators.  We don't allow deleting map entries and after initialization,
 we only add entries in MainServer::HandleAddChildInput() which uses
 exclusive, write locking, so we should be good.

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


More information about the mythtv-commits mailing list