[mythtv-commits] Ticket #7988: Deadlock in DVBChannel

MythTV mythtv at cvs.mythtv.org
Sun Mar 28 21:38:06 UTC 2010


#7988: Deadlock in DVBChannel
--------------------------+-------------------------------------------------
 Reporter:  markspieth    |       Owner:  janne   
     Type:  defect        |      Status:  accepted
 Priority:  minor         |   Milestone:  0.23    
Component:  MythTV - DVB  |     Version:  head    
 Severity:  medium        |     Mlocked:  0       
--------------------------+-------------------------------------------------
Changes (by janne):

  * status:  new => accepted
  * version:  unknown => head
  * milestone:  unknown => 0.23


Comment:

 Yes, a recursive look would fix it. The locking in DVBChannel is
 incorrect. Open() calls Close() when InitializeInputs() fails and both try
 hold hw_lock.

 I'll commit the patch. The recursive Mutex is imho less ugly than the code
 duplication.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7988#comment:3>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list