[mythtv-commits] Ticket #3317: mythbackend memory leak

MythTV mythtv at cvs.mythtv.org
Wed Jul 4 05:11:04 UTC 2007

#3317: mythbackend memory leak
 Reporter:  anonymous  |        Owner:  stuarta 
     Type:  defect     |       Status:  assigned
 Priority:  minor      |    Milestone:  0.21    
Component:  mythtv     |      Version:  head    
 Severity:  medium     |   Resolution:          
  Mlocked:  0          |  

Comment(by anonymous):

 A followup to my last post....
 I checked the number of running threads, and found it to be significantly
 smaller than the number of stack allocations reported by pmap.

 I wrote a wrapper around libpthread to keep track of stack allocations and
 do a backtrace of where the 'pthread_create' call came from

 It turns out that all of the cases where there is allocated stack but no
 running thread came from dvbrecorder.cpp::StartDummyVideo() (there is a
 pthread_create in that function that is initiating this memory usage)

 At this point I run out of steam.  I don't see anything obvious in
 run_dummy_video() or RunDummyVideo() that would prevent libpthread from
 reclaiming the stack-space, yet it appears that is what is happening at
 least in my case.  But maybe this will be useful to someone more familiar
 with this code.

Ticket URL: <http://svn.mythtv.org/trac/ticket/3317#comment:21>
MythTV <http://svn.mythtv.org/trac>

More information about the mythtv-commits mailing list