[mythtv-commits] Ticket #13519: seg fault while channel scanning hdhomerun connect quatro

MythTV noreply at mythtv.org
Wed Nov 27 23:54:01 UTC 2019


#13519: seg fault while channel scanning hdhomerun connect quatro
-----------------------------------+-------------------------------
 Reporter:  Mike Bibbings          |          Owner:  Klaas de Waal
     Type:  Bug Report - Crash     |         Status:  assigned
 Priority:  minor                  |      Milestone:  31.0
Component:  MythTV - Mythtv-setup  |        Version:  Master Head
 Severity:  medium                 |     Resolution:
 Keywords:                         |  Ticket locked:  0
-----------------------------------+-------------------------------

Comment (by Gary Buhrmaster):

 Replying to [comment:12 Klaas de Waal]:

 > 2. Thread-safety (or lack thereof)
 > The errors as reported by valgrind in file valgrind-19.10-master6.log
 show that the failing function, hdhomerun_sock_recv, is called from two
 different threads: Thread 37 Signal Monitor (see line 10876) and Thread 36
 Scanner (see line 15607).
 > Looking carefully at the valgrind messages following line 10876 it shows
 that the "invalid read" is done by the signal monitor; it is reading the
 value just free'd by the scanner.

 I have this recollection this (or something like it) was reported in a
 previous ticket, and SiliconDust indicated that you needed to create a new
 object for each thread...

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


More information about the mythtv-commits mailing list