[mythtv-commits] Ticket #8744: Mutex protect ChannelScanSM - fix crash/data corruption

MythTV mythtv at cvs.mythtv.org
Sat Aug 7 00:26:00 UTC 2010


#8744: Mutex protect ChannelScanSM - fix crash/data corruption
---------------------------------------------------+------------------------
     Reporter:  Rune Petersen <rune@…>             |       Owner:  danielk   
         Type:  patch                              |      Status:  new       
     Priority:  major                              |   Milestone:  unknown   
    Component:  MythTV - Channel Scanner           |     Version:  Trunk Head
     Severity:  medium                             |    Keywords:            
Ticket locked:  0                                  |  
---------------------------------------------------+------------------------
 I found this issue while verifying the #8737 fix.

 The members in ChannelScanSM are accessed by 3 threads:
   1) UI thread
   2) ChannelScanSM's own thread
   3) DVB thread (via listeners)

 The corruption happens because both the ChannelScanSM thread and the DVB
 thread modifies the following members
 ts_scanned, extend_transports, currentEncryptionStatus, and
 currentEncryptionStatusChecked.

 will attach a patch that will fix the crash/data corruption, but a proper
 fix would be to cleanup the code and some fine-grained locking added.

 and this issue also exists for 0.23-fixes.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8744>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list