[mythtv-commits] Ticket #7714: Mythfilldatabase segfaults during run

MythTV mythtv at cvs.mythtv.org
Thu Dec 31 07:40:11 UTC 2009


#7714: Mythfilldatabase segfaults during run
---------------------------------------+------------------------------------
 Reporter:  superm1@…                  |       Owner:  stuartm   
     Type:  defect                     |      Status:  new       
 Priority:  minor                      |   Milestone:  unknown   
Component:  MythTV - Mythfilldatabase  |     Version:  0.22-fixes
 Severity:  medium                     |     Mlocked:  0         
---------------------------------------+------------------------------------

Comment(by anonymous):

 Confirming this harmless nuisance on my backend; happens very frequently
 and looks like a race condition to me.  BT shows one thread at
 main.cpp:959, just after "delete gContext".  Second thread is
 MythSocketThread, which segfaults as it was processing the
 CLEAR_SETTINGS_CACHE initiated by main.cpp:955.  It segfaults because
 "delete gContext" at main.cpp:957 destroys MythDB object while the second
 thread is using it.  Hack approach might be to throw a usleep in here to
 reduce the frequency of these segfaults, but certainly there are better
 solutions.

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


More information about the mythtv-commits mailing list