[mythtv-commits] Ticket #4151: Backend frequently segfaults

MythTV mythtv at cvs.mythtv.org
Thu Nov 8 18:02:33 UTC 2007


#4151: Backend frequently segfaults
-----------------------------------------------------+----------------------
 Reporter:  Mark Buechler <Mark.Buechler at gmail.com>  |        Owner:  ijr    
     Type:  defect                                   |       Status:  new    
 Priority:  minor                                    |    Milestone:  unknown
Component:  mythtv                                   |      Version:  head   
 Severity:  medium                                   |   Resolution:         
  Mlocked:  0                                        |  
-----------------------------------------------------+----------------------

Comment(by Mark Buechler <Mark.Buechler at gmail.com>):

 In tracing this bt through, I'm a bit concerned that KickDatabase() is
 being called at all since my database, being on the same host, is never at
 any point unavailable. I suspect there's some sort of timeout involved
 here and it only seems to happen during heady EIT processing.

 The issue seems to have gotten a lot worse with the addition of frequent
 checks to QSqlDatabase::hostName() in libmyth/mythdbcon.cpp. I'm attaching
 a patch which keeps the params necessary for QSqlDatabase all local so
 that the only place calling QSqlDatabase::hostName() is in MSqlQuery and
 only once. The MSqlDatabase class now gets its parameters from
 gContext::GetDatabaseParams() and stores & uses them locally.

 Patch attached.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4151#comment:2>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list