libvlc memory leak

This forum is about all development around libVLC.
twentypercentcooler
New Cone
New Cone
Posts: 5
Joined: 25 Oct 2013 17:00

libvlc memory leak

Postby twentypercentcooler » 30 Mar 2015 18:53

Hello! I found some memory leak in my application.
OS - Centos 6.4 x86_64
vlc - VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
sample program - https://gist.github.com/twentypercentco ... 2fd3ff23e6

valgrind message:
221,840,640 bytes in 150 blocks are still reachable in loss record 3,912 of 3,913
in memalign in /builddir/build/BUILD/valgrind-3.8.1/coregrind/m_replacemalloc/vg_replace_malloc.c:727
1: memalign in /builddir/build/BUILD/valgrind-3.8.1/coregrind/m_replacemalloc/vg_replace_malloc.c:727
2: posix_memalign in /builddir/build/BUILD/valgrind-3.8.1/coregrind/m_replacemalloc/vg_replace_malloc.c:876
3: picture_NewFromResource in /usr/lib64/libvlccore.so.7.0.0
4: decoder_NewPicture in /usr/lib64/libvlccore.so.7.0.0
5: /usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
6: /usr/lib64/libavcodec.so.55.52.102
7: /usr/lib64/libavcodec.so.55.52.102
8: avcodec_decode_video2 in /usr/lib64/libavcodec.so.55.52.102
9: /usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
10: /usr/lib64/vlc/plugins/stream_out/libstream_out_transcode_plugin.so
11: /usr/lib64/vlc/plugins/stream_out/libstream_out_transcode_plugin.so
12: /usr/lib64/vlc/plugins/stream_out/libstream_out_duplicate_plugin.so
13: /usr/lib64/libvlccore.so.7.0.0
14: /usr/lib64/libvlccore.so.7.0.0
15: start_thread in /lib64/libpthread-2.12.so
16: clone in /lib64/libc-2.12.so

{
memalign[Memcheck:Leak]
Memcheck:Leak
fun:memalign
fun:posix_memalign
fun:picture_NewFromResource
fun:decoder_NewPicture
obj:/usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
obj:/usr/lib64/libavcodec.so.55.52.102
obj:/usr/lib64/libavcodec.so.55.52.102
fun:avcodec_decode_video2
obj:/usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
obj:/usr/lib64/vlc/plugins/stream_out/libstream_out_transcode_plugin.so
obj:/usr/lib64/vlc/plugins/stream_out/libstream_out_transcode_plugin.so
obj:/usr/lib64/vlc/plugins/stream_out/libstream_out_duplicate_plugin.so
obj:/usr/lib64/libvlccore.so.7.0.0
obj:/usr/lib64/libvlccore.so.7.0.0
fun:start_thread
fun:clone
}

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc memory leak

Postby Rémi Denis-Courmont » 30 Mar 2015 19:35

Old libavcodec versions leak pictures. Please update.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

twentypercentcooler
New Cone
New Cone
Posts: 5
Joined: 25 Oct 2013 17:00

Re: libvlc memory leak

Postby twentypercentcooler » 31 Mar 2015 12:41

Thank you Rémi!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 47 guests