Mailing List Archive

Ticket #13551: mythfrontend seg fault Live TV and Recording Playback
#13551: mythfrontend seg fault Live TV and Recording Playback
------------------------------------+-------------------------------
Reporter: Mike Bibbings | Owner: (none)
Type: Bug Report - Crash | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - DVB | Version: Master Head
Severity: medium | Keywords: mythfrontend mheg
Ticket locked: 0 |
------------------------------------+-------------------------------
I am seeing mythfrontend seg fault on UK TV Channels which have mheg
active, this affects both Live TV and recording playback on both DVB-T2
and DVB-S2.

Disabling "Enable interactive TV" in mythfrontend setup>Video>Playback OSD
stops the seg faults.

Attached are gdb backtrace and mythfrontend log

O/S xubuntu 18.04

mike@mike-GL62-7QF:~$ mythfrontend --version
Please attach all output as a file in bug reports.
MythTV Version : v31-Pre-1736-gefbc436e33
MythTV Branch : master
Network Protocol : 91
Library API : 31.20200101-1
QT Version : 5.9.5
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl using_bindings_python
using_bindings_php using_dvb using_firewire using_frontend using_hdhomerun
using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu
using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2
using_lirc using_mheg using_opengl using_egl using_qtwebkit using_qtscript
using_qtdbus using_taglib using_v4l2 using_v4l2prime using_x11
using_libbluray_external using_xrandr using_profiletype
using_systemd_notify using_systemd_journal using_drm using_bindings_perl
using_bindings_python using_bindings_php using_freetype2
using_mythtranscode using_opengl using_opengles using_egl using_drm
using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass
using_libxml2

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13551>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13551: mythfrontend seg fault Live TV and Recording Playback [ In reply to ]
#13551: mythfrontend seg fault Live TV and Recording Playback
--------------------------------+------------------------------
Reporter: Mike Bibbings | Owner: (none)
Type: Bug Report - Crash | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - DVB | Version: Master Head
Severity: medium | Resolution:
Keywords: mythfrontend mheg | Ticket locked: 0
--------------------------------+------------------------------
Changes (by Mike Bibbings):

* Attachment "gdb.txt" added.


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13551>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13551: mythfrontend seg fault Live TV and Recording Playback [ In reply to ]
#13551: mythfrontend seg fault Live TV and Recording Playback
--------------------------------+------------------------------
Reporter: Mike Bibbings | Owner: (none)
Type: Bug Report - Crash | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - DVB | Version: Master Head
Severity: medium | Resolution:
Keywords: mythfrontend mheg | Ticket locked: 0
--------------------------------+------------------------------
Changes (by Mike Bibbings):

* Attachment "mythfrontend.20200110145128.6049.log" added.


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13551>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13551: mythfrontend seg fault Live TV and Recording Playback [ In reply to ]
#13551: mythfrontend seg fault Live TV and Recording Playback
--------------------------------+-------------------------------
Reporter: Mike Bibbings | Owner: David Hampton
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - DVB | Version: Master Head
Severity: medium | Resolution:
Keywords: mythfrontend mheg | Ticket locked: 0
--------------------------------+-------------------------------
Changes (by David Hampton):

* owner: (none) => David Hampton
* status: new => assigned


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13551#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13551: mythfrontend seg fault Live TV and Recording Playback [ In reply to ]
#13551: mythfrontend seg fault Live TV and Recording Playback
--------------------------------+-------------------------------
Reporter: Mike Bibbings | Owner: David Hampton
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - DVB | Version: Master Head
Severity: medium | Resolution:
Keywords: mythfrontend mheg | Ticket locked: 0
--------------------------------+-------------------------------
Changes (by David Hampton):

* Attachment "dsmccobjcarousel.patch" added.

Proposed patch

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13551>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13551: mythfrontend seg fault Live TV and Recording Playback [ In reply to ]
#13551: mythfrontend seg fault Live TV and Recording Playback
--------------------------------+-------------------------------
Reporter: Mike Bibbings | Owner: David Hampton
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - DVB | Version: Master Head
Severity: medium | Resolution:
Keywords: mythfrontend mheg | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by David Hampton):

Mike, can you try the proposed patch I just attached to this bug?

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13551#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13551: mythfrontend seg fault Live TV and Recording Playback [ In reply to ]
#13551: mythfrontend seg fault Live TV and Recording Playback
--------------------------------+-------------------------------
Reporter: Mike Bibbings | Owner: David Hampton
Type: Bug Report - Crash | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - DVB | Version: Master Head
Severity: medium | Resolution:
Keywords: mythfrontend mheg | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings):

Patch applied, no more seg faults on Live TV or recording playback and
mheg (red button) is working.

Mike

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13551#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13551: mythfrontend seg fault Live TV and Recording Playback [ In reply to ]
#13551: mythfrontend seg fault Live TV and Recording Playback
--------------------------------+-------------------------------
Reporter: Mike Bibbings | Owner: David Hampton
Type: Bug Report - Crash | Status: closed
Priority: minor | Milestone: needs_triage
Component: MythTV - DVB | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: mythfrontend mheg | Ticket locked: 0
--------------------------------+-------------------------------
Changes (by David Hampton <mythtv@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"5ec649f7d29aa1840f19b97ac05e4c467893a284/mythtv"
5ec649f7d2/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="5ec649f7d29aa1840f19b97ac05e4c467893a284"
Fix recently introduced crash in MHEG.

The automatic clang-tidy loop modernize-loop-convert changes caused a
situation where while walking an array the current item was set to
null before it was processed. Move this assignment to the end of the
loop.

Fixes #13551.
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13551#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13551: mythfrontend seg fault Live TV and Recording Playback [ In reply to ]
#13551: mythfrontend seg fault Live TV and Recording Playback
--------------------------------+-------------------------------
Reporter: Mike Bibbings | Owner: David Hampton
Type: Bug Report - Crash | Status: closed
Priority: minor | Milestone: 31.0
Component: MythTV - DVB | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: mythfrontend mheg | Ticket locked: 0
--------------------------------+-------------------------------
Changes (by Stuart Auchterlonie):

* milestone: needs_triage => 31.0


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