[mythtv-commits] Ticket #13571: Crash of backend on delete of program being recorded
MythTV
noreply at mythtv.org
Thu Apr 9 11:17:23 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: closed
Priority: minor | Milestone: 31.1
Component: MythTV - General | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------
Comment (by Klaas de Waal <kdewaal@…>):
In [changeset:"a465f1b03d505b0038ba5d40b11bb10039454733/mythtv"
a465f1b03/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="a465f1b03d505b0038ba5d40b11bb10039454733"
Use const_iterator for QMap m_encoderList
Use const_iterator, constBegin, constEnd and constFind while accessing
the tvList and pointers to the tvList such as m_encoderList and m_tvList.
This fixes the problem of crashing while deleting a recording.
When deleting, the m_encoderList is accessed by more than one thread.
The QMap is documented to be re-entrant but this appears to be only the
case
when the QMap is accessed with the const variants of the member functions.
Fixes #13571
(cherry picked from commit 4192aab4d31301596b506c47507e8c3d872cc18f)
Signed-off-by: Klaas de Waal <kdewaal at mythtv.org>
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13571#comment:23>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list