[mythtv-commits] Ticket #10032: mythwelcome getting unstable

MythTV noreply at mythtv.org
Thu Oct 13 07:19:17 UTC 2011


#10032: mythwelcome getting unstable
-------------------------------------------------+-------------------------
 Reporter:  amlopezalonso@…                      |          Owner:  beirdo
     Type:  Bug Report - Hang/Deadlock           |         Status:
 Priority:  minor                                |  infoneeded
Component:  MythTV - Mythwelcome & Mythshutdown  |      Milestone:  0.25
 Severity:  medium                               |        Version:  Trunk
 Keywords:  mythwelcome, hang                    |  Head
                                                 |     Resolution:
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------

Comment (by Github):

 Unlock the db queue mutex during InitCon in the startup

 If the program is exiting quickly (before the database is ready), the db
 queue
 is still locked, and then the messages bypass the queue.  When it goes to
 initialize the database connection, the code in mythdbcon logs a message,
 which
 then tries to acquire the lock again, causing a deadlock.

 To get around that, unlock the mutex around the call to InitCon().  I
 think it
 would be better to re-re-think the waiting code so it's not using that
 mutex
 so the mutex can get locked only after the connection is ready, removing
 this
 and the previous unlock/relock.

 Refs #10032.  Hopefully this will fix the deadlocks.
  Branch:    master
  Changeset: a266129767a624dc6e15014ee5f7996d5ff33c7e

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10032#comment:27>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list