[mythtv-commits] Ticket #13519: seg fault while channel scanning hdhomerun connect quatro
MythTV
noreply at mythtv.org
Wed Dec 4 15:44:29 UTC 2019
#13519: seg fault while channel scanning hdhomerun connect quatro
-----------------------------------+-------------------------------
Reporter: Mike Bibbings | Owner: Klaas de Waal
Type: Bug Report - Crash | Status: closed
Priority: minor | Milestone: 31.0
Component: MythTV - Mythtv-setup | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
-----------------------------------+-------------------------------
Comment (by Klaas de Waal <kdewaal@…>):
In [changeset:"a27754ae7f7ec04f6046fcfd61e336986dc2c750/mythtv"
a27754ae7/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="a27754ae7f7ec04f6046fcfd61e336986dc2c750"
Extend instance locking in HDHomeRun stream handler
Extend the instance locking already present in HDHRStreamHandler
functions TunerGet and TunerSet to GetTunerStatus.
This fixes a segfault in libhdhomerun, reported in ticket #13519,
that appeared when doing a UK DVB-T/T2 scan with offset frequencies.
The segfault happened because GetTunerStatus was called from the
HDHRSignalMonitor in a different thread than the TunerGet/TunerSet
functions.
Extend the instance locking also to the HDHRStreamHandler::run function
where the libhdhomerun functions are called. This should fix the segfault
in the mythbackend startup as reported in ticket #9027.
Refs #9027
Fixes #13519
(cherry picked from commit ec2a518f20385b06f0fe730fa6f567409f34d50e)
Signed-off-by: Klaas de Waal <kdewaal at mythtv.org>
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13519#comment:20>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list