[mythtv-commits] Ticket #12856: mythbackend seg fault livetv via Kodi using Vbox Tuner

MythTV noreply at mythtv.org
Sun Dec 4 23:44:24 UTC 2016


#12856: mythbackend seg fault livetv via Kodi using Vbox Tuner
--------------------------------+-----------------------------
 Reporter:  mike.bibbings@…     |          Owner:
     Type:  Bug Report - Crash  |         Status:  new
 Priority:  minor               |      Milestone:  0.28.1
Component:  MythTV - General    |        Version:  Master Head
 Severity:  medium              |     Resolution:
 Keywords:                      |  Ticket locked:  0
--------------------------------+-----------------------------

Comment (by perkins1724@…):

 I have very similar symptoms to those described by Mike when using an IPTV
 Tuner pointing to a mumudvb rebroadcast (i'm using it in http unicast
 mode).

 However the fix at Comment:11 made no difference for me despite the
 similar symptoms.

 I always get the segfault on second entry into LiveTV. Comparing logs of
 first entry to LiveTV against second entry to LiveTV I found main
 differences were:

 1) RingBufferReady flag seems to be already set second time around even
 though the RingBuffer was closed when exiting LiveTV from first entry.

 2) m_stream_data is still set on second LiveTV entry which triggers
 SetStreamData(m_stream_data) at
 https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/recorders/iptvchannel.cpp#L52

 For (1) I added ClearFlags(kFlagRingBufferReady, __FILE__, __LINE__); at
 line 3660 of tv_rec.cpp
 (https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/tv_rec.cpp#L3660)
 which got rid of the RingBufferReady flag at the second entry to LiveTV -
 however it made no difference to anything so I presume either dead end or
 intended behaviour.

 For (2) I couldn't work out how to unset m_stream_data at the end of void
 IPTVChannel::Close(void)
 https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/recorders/iptvchannel.cpp#L86
 so I just commented out lines 52 and 53 of iptvchannel.cpp so the check
 never occurs. This fixed the crash for me and has been working for a
 couple of days now. But I presume is only masking the symptom rather than
 the proper fix.

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


More information about the mythtv-commits mailing list