[FFmpeg-trac] #5485(undetermined:new): Memory leak in MPEG2 encoder with all versions >= 2.8

FFmpeg trac at avcodec.org
Thu Apr 28 15:23:42 CEST 2016


#5485: Memory leak in MPEG2 encoder with all versions >= 2.8
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  jdemeulenaere                      |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  important    |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  leak         |               Blocked By:
  regression                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by jdemeulenaere):

 This is the valgrind output with the snapshot  version of
 http://ffmpeg.org/releases/ (2016-04-27 19:22) :
 {{{
 ==18517== Memcheck, a memory error detector
 ==18517== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
 ==18517== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright
 info
 ==18517== Command: ./ffmpeg -i
 udp://239.255.1.111:1234?fifo_size=2000000&overrun_nonfatal=1 -map 0 -sn
 -ignore_unknown -c:a copy -c:v mpeg2video -f mpegts -flush_packets 0
 udp://239.255.11.170:8888?pkt_size=1316
 ==18517==
 ==18517== Invalid free() / delete / delete[] / realloc()
 ==18517==    at 0x4C92B0E: free (vg_replace_malloc.c:530)
 ==18517==    by 0x4020168: ??? (in /lib/ld-musl-x86_64.so.1)
 ==18517==  Address 0x4e9a180 is in a rw- mapped file /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so segment
 ==18517==
 ffmpeg version N-79679-g6f784c1 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.3.0 (Alpine 5.3.0)
   configuration: --enable-version3 --enable-gpl --enable-nonfree --enable-
 small --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-
 libvpx --enable-libtheora --enable-libvorbis --enable-libopus --enable-
 libass --enable-libwebp --enable-librtmp --enable-postproc --enable-
 avresample --enable-libfreetype --enable-openssl --disable-debug
   libavutil      55. 22.101 / 55. 22.101
   libavcodec     57. 38.100 / 57. 38.100
   libavformat    57. 34.103 / 57. 34.103
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 44.100 /  6. 44.100
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 ==18517== Warning: set address range perms: large range [0x8fc0080,
 0x1f654e80) (undefined)

 [...]

 ==18610==
 ==18610== LEAK SUMMARY:
 ==18610==    definitely lost: 0 bytes in 0 blocks
 ==18610==    indirectly lost: 0 bytes in 0 blocks
 ==18610==      possibly lost: 0 bytes in 0 blocks
 ==18610==    still reachable: 166,369 bytes in 2,852 blocks
 ==18610==         suppressed: 0 bytes in 0 blocks
 ==18610==
 ==18610== For counts of detected and suppressed errors, rerun with: -v
 ==18610== ERROR SUMMARY: 24 errors from 1 contexts (suppressed: 0 from 0)
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5485#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list