[mythtv-commits] Ticket #11870: Channel scanning deadlock with DVB
MythTV
noreply at mythtv.org
Sat Sep 5 22:14:00 UTC 2020
#11870: Channel scanning deadlock with DVB
----------------------------------------+-------------------------------
Reporter: Rune Petersen <rune@…> | Owner: Klaas de Waal
Type: Bug Report - Hang/Deadlock | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Channel Scanner | Version: 0.27-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------------+-------------------------------
Comment (by Klaas de Waal):
The deadlock has been reproduced. This can only happen when the "Test
Decryptability" option is selected when doing a channel scan. This option
is by default off as it greatly increases the channel scanning time and
the results are not very reliable anyway.
The problem is not really in the "big lock" m_lock but more in the locking
order itself. This can be fixed in MPEGStreamData::ProcessEncryptedPacket
by releasing the m_encryptionLock before calling the
HandleEncryptionStatus of all listeners.
In case of channel scanning the listener is the
ChannelScanSM::HandleEncryptionStatus.
This fix is being tested and the deadlock has not yet appeared again.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/11870#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list