[mythtv-users] Mythfrontend memory leak on master

Timothy Krantz tkrantz at stahurabrenner.com
Fri Jun 6 14:18:04 UTC 2014


> Tim,
> 
> I did a few more valgrind runs and tried to pastebin the output, but it's
29MB.
> So, here's what I believe to be the last failure and the
> summary:
> 
>      http://pastebin.com/raw.php?i=rjVVXA6r
> 
> When I run the command in the above paste and try to watch a recording,
> the Please Wait... screen shows up and 59 seconds later the FE crashes.
> A vg.out.core.27055 ends up in /tmp where I put a vg.out file.
> 
> In other words, I don't know that I'm capturing the leak that occurs
during
> playback.

Bill,
I was able to run a valgrind session that was able to play several minutes
of a known "leaky" recording.  It was 13MB in length but if I am
interpreting things correctly this is the majority of the leakage:

==32023== 31,071,048 (193,416 direct, 30,877,632 indirect) bytes in 8,059
blocks
 are definitely lost in loss record 11,456 of 11,456
==32023==    at 0x4A0858C: memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-a
md64-linux.so)
==32023==    by 0x4A08651: posix_memalign (in
/usr/lib64/valgrind/vgpreload_memc
heck-amd64-linux.so)
==32023==    by 0x6313B9C: av_malloc (mem.c:94)
==32023==    by 0x6313D5D: av_mallocz (mem.c:244)
==32023==    by 0x63077DD: av_buffer_ref (buffer.c:93)
==32023==    by 0x630EF48: av_frame_copy_props (frame.c:500)
==32023==    by 0x56D6CD9: unrefcount_frame.isra.3 (utils.c:2082)
==32023==    by 0x56D9BB3: avcodec_decode_video2 (utils.c:2183)
==32023==    by 0x6D24DA1: AvFormatDecoder::ProcessVideoPacket(AVStream*,
AVPacket*) (avformatdecoder.cpp:3497)
==32023==    by 0x6D2D7AF: AvFormatDecoder::GetFrame(DecodeTypes)
(avformatdecoder.cpp:4969)
==32023==    by 0x6C9F433: MythPlayer::DecoderGetFrame(DecodeTypes, bool)
(mythplayer.cpp:3395)
==32023==    by 0x6C9EDAF: MythPlayer::DecoderLoop(bool)
(mythplayer.cpp:3314)

I am still trying to get my head around what this is telling me, but it
looks like it might be related to the recent FFmpeg code updates.

Tim



More information about the mythtv-users mailing list