[Libav-user] Memory leaks

... ... bersac_1 at hotmail.fr
Mon Jun 17 13:38:36 CEST 2013


Hi,
I am using ffmpeg version git-2013-06-14-7fff3df and when I use valgrind on a program using ffmpeg, it displays the following messages :
==19153== 288 bytes in 1 blocks are possibly lost in loss record 112 of 223==19153==    at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==19153==    by 0x4012074: _dl_allocate_tls (dl-tls.c:297)==19153==    by 0x4E3AABC: pthread_create@@GLIBC_2.2.5 (allocatestack.c:571)==19153==    by 0x5444F63: ??? (in /usr/local/lib/libavformat.so.55.8.102)==19153==    by 0x5387EE3: ??? (in /usr/local/lib/libavformat.so.55.8.102)==19153==    by 0x5388005: ffurl_open (in /usr/local/lib/libavformat.so.55.8.102)==19153==    by 0x538A0FA: avio_open2 (in /usr/local/lib/libavformat.so.55.8.102)==19153==    by 0x544FAE7: avformat_open_input (in /usr/local/lib/libavformat.so.55.8.102)==19153==    by 0x401ACE: Capture::initFluxFFmpeg() (Capture.cpp:147)==19153==    by 0x4017DA: Capture::Capture(std::string const&) (Capture.cpp:28)==19153==    by 0x403BBE: main (test.cpp:43)==19153== ==19153== 1,440 bytes in 5 blocks are possibly lost in loss record 122 of 223==19153==    at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==19153==    by 0x4012074: _dl_allocate_tls (dl-tls.c:297)==19153==    by 0x4E3AABC: pthread_create@@GLIBC_2.2.5 (allocatestack.c:571)==19153==    by 0x5ABC21F: ??? (in /usr/local/lib/libavcodec.so.55.16.100)==19153==    by 0x5B590DA: avcodec_open2 (in /usr/local/lib/libavcodec.so.55.16.100)==19153==    by 0x401D65: Capture::initStreamVideo() (Capture.cpp:224)==19153==    by 0x4017E6: Capture::Capture(std::string const&) (Capture.cpp:29)==19153==    by 0x403BBE: main (test.cpp:43)==19153== ==19153== 212,866 (1,176 direct, 211,690 indirect) bytes in 49 blocks are definitely lost in loss record 212 of 223==19153==    at 0x4C29BE8: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==19153==    by 0x4C29C97: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==19153==    by 0x772DEC1: av_malloc (in /usr/local/lib/libavutil.so.52.35.101)==19153==    by 0x772E085: av_mallocz (in /usr/local/lib/libavutil.so.52.35.101)==19153==    by 0x77238E7: av_buffer_create (in /usr/local/lib/libavutil.so.52.35.101)==19153==    by 0x7723C79: av_buffer_realloc (in /usr/local/lib/libavutil.so.52.35.101)==19153==    by 0x579874E: ??? (in /usr/local/lib/libavcodec.so.55.16.100)==19153==    by 0x579884D: av_dup_packet (in /usr/local/lib/libavcodec.so.55.16.100)==19153==    by 0x544AE68: ??? (in /usr/local/lib/libavformat.so.55.8.102)==19153==    by 0x544B19A: ??? (in /usr/local/lib/libavformat.so.55.8.102)==19153==    by 0x544CB0E: avformat_find_stream_info (in /usr/local/lib/libavformat.so.55.8.102)==19153==    by 0x401B20: Capture::initFluxFFmpeg() (Capture.cpp:155)
While using the functions : avformat_find_stream_info. I closed the AvFormatContext using avformat_free_context. avcodec_open2. I closed the AVCodecContext using avcodec_close.Are they known bugs ? How could I solve it ?
Thanks,Guillaume Bersac237bis rue de Pessac33000 Bordeaux06.65.30.89.43
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130617/c159074e/attachment.html>


More information about the Libav-user mailing list