[FFmpeg-trac] #8150(undetermined:reopened): memory leaks from mem.c

FFmpeg trac at avcodec.org
Thu Sep 19 05:35:10 EEST 2019


#8150: memory leaks from mem.c
-------------------------------------+-------------------------------------
             Reporter:  Suhwan       |                    Owner:
                 Type:  defect       |                   Status:  reopened
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by Suhwan):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 how to reproduce :
 {{{
 $ valgrind -v --leak-check=full --show-leak-kinds=all ./ffmpeg_g -t 3 -y
 -i 83fcd9aa47ccb67acd70991b237046d95d1c4467 -target vcd -loglevel 99 -map
 0 -c: s:10 vorbis -disposition: v:195 dca -aframes 64 -ab 507k -ac 22
 tmp.rsd
 }}}

 {{{
 ==34782== Memcheck, a memory error detector
 ==34782== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
 ==34782== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright
 info
 ==34782== Command: ../ffmpeg/ffmpeg_g -t 3 -y -i
 samples/png/chrome/83fcd9aa47ccb67acd70991b237046d95d1c4467 -target vcd
 -loglevel 99 -map 0 -c: s:10 vorbis -disposition: v:195 dca -aframes 64
 -ab 507k -ac 22 output/tmp.rsd
 ==34782==
 --34782-- Valgrind options:
 --34782--    -v
 --34782--    --leak-check=full
 --34782--    --show-leak-kinds=all
 --34782-- Contents of /proc/version:
 --34782--   Linux version 5.0.0-25-generic (buildd at lcy01-amd64-014) (gcc
 version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #26~18.04.1-Ubuntu SMP Thu
 Aug 1 13:51:02 UTC 2019
 --34782--
 --34782-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-
 sse3-avx-avx2-bmi
 --34782-- Page sizes: currently 4096, max supported 4096
 --34782-- Valgrind library directory: /usr/lib/valgrind
 --34782-- Reading syms from ffmpeg_g
 --34782-- Reading syms from /lib/x86_64-linux-gnu/ld-2.27.so
 --34782--   Considering /lib/x86_64-linux-gnu/ld-2.27.so ..
 --34782--   .. CRC mismatch (computed 1b7c895e wanted 2943108a)
 --34782--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.27.so ..
 --34782--   .. CRC is valid
 --34782-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
 --34782--   Considering /usr/lib/valgrind/memcheck-amd64-linux ..
 --34782--   .. CRC mismatch (computed c25f395c wanted 0a9602a8)
 --34782--    object doesn't have a symbol table
 --34782--    object doesn't have a dynamic symbol table
 --34782-- Scheduler: using generic scheduler lock implementation.
 --34782-- Reading suppressions file: /usr/lib/valgrind/default.supp
 ==34782==
 ==34782== TO CONTROL THIS PROCESS USING vgdb (which you probably
 ==34782== don't want to do, unless you know exactly what you're doing,
 ==34782== or are doing some strange experiment):
 ==34782==   /usr/lib/valgrind/../../bin/vgdb --pid=34782 ...command...
 ==34782==
 ==34782== TO DEBUG THIS PROCESS USING GDB: start GDB like this
 ==34782==   /path/to/gdb ../ffmpeg/ffmpeg_g
 ==34782== and then give GDB the following command
 ==34782==   target remote | /usr/lib/valgrind/../../bin/vgdb --pid=34782
 ==34782== --pid is optional if only one valgrind process is running
 ==34782==
 --34782-- REDIR: 0x401f2f0 (ld-linux-x86-64.so.2:strlen) redirected to
 0x58060901 (???)
 --34782-- REDIR: 0x401f0d0 (ld-linux-x86-64.so.2:index) redirected to
 0x5806091b (???)
 --34782-- Reading syms from /usr/lib/valgrind/vgpreload_core-
 amd64-linux.so
 --34782--   Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
 --34782--   .. CRC mismatch (computed 4b63d83e wanted 670599e6)
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so
 --34782--   Considering /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so ..
 --34782--   .. CRC mismatch (computed a4b37bee wanted 8ad4dc94)
 --34782--    object doesn't have a symbol table
 ==34782== WARNING: new redirection conflicts with existing -- ignoring it
 --34782--     old: 0x0401f2f0 (strlen              ) R-> (0000.0)
 0x58060901 ???
 --34782--     new: 0x0401f2f0 (strlen              ) R-> (2007.0)
 0x04c32db0 strlen
 --34782-- REDIR: 0x401d360 (ld-linux-x86-64.so.2:strcmp) redirected to
 0x4c33ee0 (strcmp)
 --34782-- REDIR: 0x401f830 (ld-linux-x86-64.so.2:mempcpy) redirected to
 0x4c374f0 (mempcpy)
 --34782-- Reading syms from /lib/x86_64-linux-gnu/libm-2.27.so
 --34782--   Considering /lib/x86_64-linux-gnu/libm-2.27.so ..
 --34782--   .. CRC mismatch (computed 7feae033 wanted b29b2508)
 --34782--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.27.so
 ..
 --34782--   .. CRC is valid
 --34782-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0.0.0
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-
 shape.so.0.0.0
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-
 xfixes.so.0.0.0
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /lib/x86_64-linux-gnu/libbz2.so.1.0.4
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.11
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /lib/x86_64-linux-gnu/liblzma.so.5.2.2
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.27.so
 --34782--   Considering /usr/lib/debug/.build-
 id/28/c6aade70b2d40d1f0f3d0a1a0cad1ab816448f.debug ..
 --34782--   .. build-id is valid
 --34782-- Reading syms from /lib/x86_64-linux-gnu/libc-2.27.so
 --34782--   Considering /lib/x86_64-linux-gnu/libc-2.27.so ..
 --34782--   .. CRC mismatch (computed b1c74187 wanted 042cc048)
 --34782--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.27.so
 ..
 --34782--   .. CRC is valid
 --34782-- Reading syms from /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
 --34782--   Considering /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 ..
 --34782--   .. CRC mismatch (computed 256f5df8 wanted 5d40ac88)
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
 --34782--    object doesn't have a symbol table
 --34782-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.27.so
 --34782--   Considering /lib/x86_64-linux-gnu/libdl-2.27.so ..
 --34782--   .. CRC mismatch (computed bd82fa02 wanted d1fdccc9)
 --34782--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.27.so
 ..
 --34782--   .. CRC is valid
 --34782-- Reading syms from /lib/x86_64-linux-gnu/librt-2.27.so
 --34782--   Considering /lib/x86_64-linux-gnu/librt-2.27.so ..
 --34782--   .. CRC mismatch (computed 16979484 wanted f9e041e3)
 --34782--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/librt-2.27.so
 ..
 --34782--   .. CRC is valid
 --34782-- Reading syms from /lib/x86_64-linux-gnu/libbsd.so.0.8.7
 --34782--    object doesn't have a symbol table
 --34782-- REDIR: 0x6628c70 (libc.so.6:memmove) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627d40 (libc.so.6:strncpy) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628f50 (libc.so.6:strcasecmp) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627790 (libc.so.6:strcat) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627d70 (libc.so.6:rindex) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x662a7c0 (libc.so.6:rawmemchr) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628de0 (libc.so.6:mempcpy) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628c10 (libc.so.6:bcmp) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627d00 (libc.so.6:strncmp) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627800 (libc.so.6:strcmp) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628d40 (libc.so.6:memset) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x66460f0 (libc.so.6:wcschr) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627ca0 (libc.so.6:strnlen) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627870 (libc.so.6:strcspn) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628fa0 (libc.so.6:strncasecmp) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627840 (libc.so.6:strcpy) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x66290e0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to
 0x4a2a6e0 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627da0 (libc.so.6:strpbrk) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x66277c0 (libc.so.6:index) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6627c70 (libc.so.6:strlen) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x66326c0 (libc.so.6:memrchr) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628ff0 (libc.so.6:strcasecmp_l) redirected to
 0x4a2a6e0 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628be0 (libc.so.6:memchr) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6646eb0 (libc.so.6:wcslen) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628050 (libc.so.6:strspn) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628f20 (libc.so.6:stpncpy) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628ef0 (libc.so.6:stpcpy) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x662a7f0 (libc.so.6:strchrnul) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6629040 (libc.so.6:strncasecmp_l) redirected to
 0x4a2a6e0 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x66bb8a0 (libc.so.6:__memcpy_chk) redirected to
 0x4a2a6e0 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x6628b20 (libc.so.6:strstr) redirected to 0x4a2a6e0
 (_vgnU_ifunc_wrapper)
 --34782-- REDIR: 0x67183c0 (libc.so.6:__strrchr_avx2) redirected to
 0x4c32730 (rindex)
 --34782-- REDIR: 0x6717fa0 (libc.so.6:__strchr_avx2) redirected to
 0x4c32950 (index)
 --34782-- REDIR: 0x6718590 (libc.so.6:__strlen_avx2) redirected to
 0x4c32cf0 (strlen)
 --34782-- REDIR: 0x670f510 (libc.so.6:__strncmp_sse42) redirected to
 0x4c33570 (__strncmp_sse42)
 --34782-- REDIR: 0x66f3d60 (libc.so.6:__strcmp_ssse3) redirected to
 0x4c33da0 (strcmp)
 --34782-- REDIR: 0x67181d0 (libc.so.6:__strchrnul_avx2) redirected to
 0x4c37020 (strchrnul)
 --34782-- REDIR: 0x6718ab0 (libc.so.6:__mempcpy_avx_unaligned_erms)
 redirected to 0x4c37130 (mempcpy)
 --34782-- REDIR: 0x66bbc70 (libc.so.6:__strcpy_chk) redirected to
 0x4c37090 (__strcpy_chk)
 --34782-- REDIR: 0x6628590 (libc.so.6:__GI_strstr) redirected to 0x4c37760
 (__strstr_sse2)
 ffmpeg version N-94969-gc2ab998ff3 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
   configuration: --cc=gcc --cxx=g++ --ld=gcc --enable-debug
   libavutil      56. 35.100 / 56. 35.100
   libavcodec     58. 57.100 / 58. 57.100
   libavformat    58. 32.104 / 58. 32.104
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 58.102 /  7. 58.102
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
 --34782-- REDIR: 0x6624d70 (libc.so.6:posix_memalign) redirected to
 0x4c31f60 (posix_memalign)
 --34782-- REDIR: 0x6718f50 (libc.so.6:__memset_avx2_unaligned_erms)
 redirected to 0x4c365d0 (memset)
 --34782-- REDIR: 0x6622c30 (libc.so.6:realloc) redirected to 0x4c31cb0
 (realloc)
 --34782-- REDIR: 0x6718ad0 (libc.so.6:__memcpy_avx_unaligned_erms)
 redirected to 0x4c366e0 (memmove)
 Splitting the commandline.
 Reading option '-t' ... matched as option 't' (record or transcode
 "duration" seconds of audio/video) with argument '3'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option '-i' ... matched as input url with argument
 'samples/png/chrome/83fcd9aa47ccb67acd70991b237046d95d1c4467'.
 Reading option '-target' ... matched as option 'target' (specify target
 file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes
 "pal-", "ntsc-" or "film-")) with argument 'vcd'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-map' ... matched as option 'map' (set input stream
 mapping) with argument '0'.
 Reading option '-c:' ... matched as option 'c' (codec name) with argument
 's:10'.
 Reading option 'vorbis' ... matched as output url.
 Reading option '-disposition:' ... matched as option 'disposition'
 (disposition) with argument 'v:195'.
 Reading option 'dca' ... matched as output url.
 Reading option '-aframes' ... matched as option 'aframes' (set the number
 of audio frames to output) with argument '64'.
 Reading option '-ab' ... matched as option 'ab' (audio bitrate (please use
 -b:a)) with argument '507k'.
 Reading option '-ac' ... matched as option 'ac' (set number of audio
 channels) with argument '22'.
 Reading option 'output/tmp.rsd' ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option y (overwrite output files) with argument 1.
 Applying option loglevel (set logging level) with argument 99.
 Successfully parsed a group of options.
 Parsing a group of options: input url
 samples/png/chrome/83fcd9aa47ccb67acd70991b237046d95d1c4467.
 Applying option t (record or transcode "duration" seconds of audio/video)
 with argument 3.
 Successfully parsed a group of options.
 Opening an input file:
 samples/png/chrome/83fcd9aa47ccb67acd70991b237046d95d1c4467.
 --34782-- REDIR: 0x6621950 (libc.so.6:free) redirected to 0x4c30cd0 (free)
 [NULL @ 0x73a70c0] Opening
 'samples/png/chrome/83fcd9aa47ccb67acd70991b237046d95d1c4467' for reading
 --34782-- REDIR: 0x6714300 (libc.so.6:__strspn_sse42) redirected to
 0x4c37990 (strspn)
 --34782-- REDIR: 0x6705950 (libc.so.6:__strcpy_ssse3) redirected to
 0x4c32dd0 (strcpy)
 [file @ 0x73a7f40] Setting default whitelist 'file,crypto'
 Probing apng score:100 size:2048
 --34782-- REDIR: 0x67146f0 (libc.so.6:__rawmemchr_avx2) redirected to
 0x4c37050 (rawmemchr)
 Probing mp3 score:1 size:2048
 --34782-- REDIR: 0x6714070 (libc.so.6:__strcspn_sse42) redirected to
 0x4c378d0 (strcspn)
 --34782-- REDIR: 0x6714ba0 (libc.so.6:__memcmp_avx2_movbe) redirected to
 0x4c35e00 (bcmp)
 Probing png_pipe score:99 size:2048
 [apng @ 0x73a70c0] Format apng probed with size=2048 and score=100
 [apng @ 0x73a70c0] num_frames: 50, num_play: 0
 [apng @ 0x73a70c0] Before avformat_find_stream_info() pos: 114 bytes
 read:32768 seeks:0 nb_streams:1
 [apng @ 0x73a70c0] decode_fctl_chunk: sequence_number: 0, width: 235,
 height: 148, x_offset: 0, y_offset: 0, delay_num: 510, delay_den: 1000,
 dispose_op: 0, blend_op: 0
 [apng @ 0x73a70c0] stream 0: start_time: -92233720368547.766 duration:
 -92233720368547.766
 [apng @ 0x73a70c0] format: start_time: -9223372036854.775 duration:
 -9223372036854.775 bitrate=0 kb/s
 [apng @ 0x73a70c0] Could not find codec parameters for stream 0 (Video:
 apng, 1 reference frame, none(pc), 235x148, 1/100000): unspecified pixel
 format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [apng @ 0x73a70c0] After avformat_find_stream_info() pos: 1109 bytes
 read:32768 seeks:0 frames:0
 Input #0, apng, from
 'samples/png/chrome/83fcd9aa47ccb67acd70991b237046d95d1c4467':
   Duration: N/A, bitrate: N/A
     Stream #0:0, 0, 1/100000: Video: apng, 1 reference frame, none(pc),
 235x148, 0/1, 100k tbr, 100k tbn, 100k tbc
 Successfully opened the file.
 Parsing a group of options: output url vorbis.
 Applying option target (specify target file type ("vcd", "svcd", "dvd",
 "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")) with
 argument vcd.
 Could not determine norm (PAL/NTSC/NTSC-Film) for target.
 Please prefix target with "pal-", "ntsc-" or "film-",
 or set a framerate with "-r xxx".
 [AVIOContext @ 0x73b0a40] Statistics: 32768 bytes read, 0 seeks
 ==34782==
 ==34782== HEAP SUMMARY:
 ==34782==     in use at exit: 1,875 bytes in 27 blocks
 ==34782==   total heap usage: 152 allocs, 125 frees, 88,492 bytes
 allocated
 ==34782==
 ==34782== Searching for pointers to 27 not-freed blocks
 ==34782== Checked 8,825,176 bytes
 ==34782==
 ==34782== 6 bytes in 1 blocks are still reachable in loss record 1 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55830: av_strdup (mem.c:256)
 ==34782==    by 0xF46D37: av_dict_set (dict.c:83)
 ==34782==    by 0x284BB9: init_parse_context (cmdutils.c:724)
 ==34782==    by 0x284BB9: split_commandline (cmdutils.c:763)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 6 bytes in 1 blocks are still reachable in loss record 2 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55830: av_strdup (mem.c:256)
 ==34782==    by 0xF46D37: av_dict_set (dict.c:83)
 ==34782==    by 0x285043: finish_group (cmdutils.c:685)
 ==34782==    by 0x285043: split_commandline (cmdutils.c:797)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 8 bytes in 1 blocks are still reachable in loss record 3 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55830: av_strdup (mem.c:256)
 ==34782==    by 0xF46CE0: av_dict_set (dict.c:87)
 ==34782==    by 0x284BB9: init_parse_context (cmdutils.c:724)
 ==34782==    by 0x284BB9: split_commandline (cmdutils.c:763)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 8 bytes in 1 blocks are still reachable in loss record 4 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55830: av_strdup (mem.c:256)
 ==34782==    by 0xF46CE0: av_dict_set (dict.c:87)
 ==34782==    by 0x285043: finish_group (cmdutils.c:685)
 ==34782==    by 0x285043: split_commandline (cmdutils.c:797)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 12 bytes in 2 blocks are still reachable in loss record 5 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55830: av_strdup (mem.c:256)
 ==34782==    by 0xF46D37: av_dict_set (dict.c:83)
 ==34782==    by 0x284CD7: finish_group (cmdutils.c:685)
 ==34782==    by 0x284CD7: split_commandline (cmdutils.c:779)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 16 bytes in 1 blocks are still reachable in loss record 6 of 20
 ==34782==    at 0x4C31E76: memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31F91: posix_memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55582: av_malloc (mem.c:87)
 ==34782==    by 0xF55788: av_mallocz (mem.c:238)
 ==34782==    by 0xF46CF8: av_dict_set (dict.c:89)
 ==34782==    by 0x284BB9: init_parse_context (cmdutils.c:724)
 ==34782==    by 0x284BB9: split_commandline (cmdutils.c:763)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 16 bytes in 1 blocks are still reachable in loss record 7 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF46D79: av_dict_set (dict.c:106)
 ==34782==    by 0x284BB9: init_parse_context (cmdutils.c:724)
 ==34782==    by 0x284BB9: split_commandline (cmdutils.c:763)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 16 bytes in 1 blocks are still reachable in loss record 8 of 20
 ==34782==    at 0x4C31E76: memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31F91: posix_memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55582: av_malloc (mem.c:87)
 ==34782==    by 0xF55788: av_mallocz (mem.c:238)
 ==34782==    by 0xF46CF8: av_dict_set (dict.c:89)
 ==34782==    by 0x285043: finish_group (cmdutils.c:685)
 ==34782==    by 0x285043: split_commandline (cmdutils.c:797)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 16 bytes in 1 blocks are still reachable in loss record 9 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF46D79: av_dict_set (dict.c:106)
 ==34782==    by 0x285043: finish_group (cmdutils.c:685)
 ==34782==    by 0x285043: split_commandline (cmdutils.c:797)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 16 bytes in 2 blocks are still reachable in loss record 10 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55830: av_strdup (mem.c:256)
 ==34782==    by 0xF46CE0: av_dict_set (dict.c:87)
 ==34782==    by 0x284CD7: finish_group (cmdutils.c:685)
 ==34782==    by 0x284CD7: split_commandline (cmdutils.c:779)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 32 bytes in 2 blocks are still reachable in loss record 11 of 20
 ==34782==    at 0x4C31E76: memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31F91: posix_memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55582: av_malloc (mem.c:87)
 ==34782==    by 0xF55788: av_mallocz (mem.c:238)
 ==34782==    by 0xF46CF8: av_dict_set (dict.c:89)
 ==34782==    by 0x284CD7: finish_group (cmdutils.c:685)
 ==34782==    by 0x284CD7: split_commandline (cmdutils.c:779)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 32 bytes in 2 blocks are still reachable in loss record 12 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF46D79: av_dict_set (dict.c:106)
 ==34782==    by 0x284CD7: finish_group (cmdutils.c:685)
 ==34782==    by 0x284CD7: split_commandline (cmdutils.c:779)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 40 bytes in 1 blocks are indirectly lost in loss record 13 of 20
 ==34782==    at 0x4C31E76: memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31F91: posix_memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55582: av_malloc (mem.c:87)
 ==34782==    by 0xF55788: av_mallocz (mem.c:238)
 ==34782==    by 0xF43B3C: av_buffer_create (buffer.c:35)
 ==34782==    by 0xF43C48: av_buffer_alloc (buffer.c:76)
 ==34782==    by 0x5F29C4: av_grow_packet (avpacket.c:139)
 ==34782==    by 0x580299: append_packet_chunked (utils.c:289)
 ==34782==    by 0x44D30B: apng_read_packet (apngdec.c:370)
 ==34782==    by 0x584EFD: ff_read_packet (utils.c:855)
 ==34782==    by 0x585AFB: read_frame_internal (utils.c:1581)
 ==34782==    by 0x5879C3: avformat_find_stream_info (utils.c:3785)
 ==34782==
 ==34782== 48 bytes in 1 blocks are still reachable in loss record 14 of 20
 ==34782==    at 0x4C31E76: memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31F91: posix_memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55582: av_malloc (mem.c:87)
 ==34782==    by 0xF55788: av_mallocz (mem.c:238)
 ==34782==    by 0x284B66: init_parse_context (cmdutils.c:714)
 ==34782==    by 0x284B66: split_commandline (cmdutils.c:763)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 48 bytes in 2 blocks are still reachable in loss record 15 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x2844B4: grow_array (cmdutils.c:2170)
 ==34782==    by 0x285161: add_opt (cmdutils.c:699)
 ==34782==    by 0x285161: split_commandline (cmdutils.c:815)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 72 bytes in 1 blocks are still reachable in loss record 16 of 20
 ==34782==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31D84: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x2844B4: grow_array (cmdutils.c:2170)
 ==34782==    by 0x284F8F: finish_group (cmdutils.c:668)
 ==34782==    by 0x284F8F: split_commandline (cmdutils.c:797)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 192 bytes in 3 blocks are still reachable in loss record 17 of
 20
 ==34782==    at 0x4C31D2F: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x2844B4: grow_array (cmdutils.c:2170)
 ==34782==    by 0x285161: add_opt (cmdutils.c:699)
 ==34782==    by 0x285161: split_commandline (cmdutils.c:815)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 216 bytes in 1 blocks are still reachable in loss record 18 of
 20
 ==34782==    at 0x4C31D2F: realloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x2844B4: grow_array (cmdutils.c:2170)
 ==34782==    by 0x284C23: finish_group (cmdutils.c:668)
 ==34782==    by 0x284C23: split_commandline (cmdutils.c:779)
 ==34782==    by 0x277FD0: ffmpeg_parse_options (ffmpeg_opt.c:3299)
 ==34782==    by 0x2706B1: main (ffmpeg.c:4872)
 ==34782==
 ==34782== 1,051 bytes in 1 blocks are indirectly lost in loss record 19 of
 20
 ==34782==    at 0x4C31E76: memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31F91: posix_memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55582: av_malloc (mem.c:87)
 ==34782==    by 0xF43C28: av_buffer_alloc (buffer.c:72)
 ==34782==    by 0x5F29C4: av_grow_packet (avpacket.c:139)
 ==34782==    by 0x580299: append_packet_chunked (utils.c:289)
 ==34782==    by 0x44D30B: apng_read_packet (apngdec.c:370)
 ==34782==    by 0x584EFD: ff_read_packet (utils.c:855)
 ==34782==    by 0x585AFB: read_frame_internal (utils.c:1581)
 ==34782==    by 0x5879C3: avformat_find_stream_info (utils.c:3785)
 ==34782==    by 0x276197: open_input_file (ffmpeg_opt.c:1127)
 ==34782==    by 0x278101: open_files (ffmpeg_opt.c:3277)
 ==34782==    by 0x278101: ffmpeg_parse_options (ffmpeg_opt.c:3317)
 ==34782==
 ==34782== 1,115 (24 direct, 1,091 indirect) bytes in 1 blocks are
 definitely lost in loss record 20 of 20
 ==34782==    at 0x4C31E76: memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0x4C31F91: posix_memalign (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==34782==    by 0xF55582: av_malloc (mem.c:87)
 ==34782==    by 0xF55788: av_mallocz (mem.c:238)
 ==34782==    by 0xF43B74: av_buffer_create (buffer.c:49)
 ==34782==    by 0xF43C48: av_buffer_alloc (buffer.c:76)
 ==34782==    by 0x5F29C4: av_grow_packet (avpacket.c:139)
 ==34782==    by 0x580299: append_packet_chunked (utils.c:289)
 ==34782==    by 0x44D30B: apng_read_packet (apngdec.c:370)
 ==34782==    by 0x584EFD: ff_read_packet (utils.c:855)
 ==34782==    by 0x585AFB: read_frame_internal (utils.c:1581)
 ==34782==    by 0x5879C3: avformat_find_stream_info (utils.c:3785)
 ==34782==
 ==34782== LEAK SUMMARY:
 ==34782==    definitely lost: 24 bytes in 1 blocks
 ==34782==    indirectly lost: 1,091 bytes in 2 blocks
 ==34782==      possibly lost: 0 bytes in 0 blocks
 ==34782==    still reachable: 760 bytes in 24 blocks
 ==34782==         suppressed: 0 bytes in 0 blocks
 ==34782==
 ==34782== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
 ==34782== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

 }}}

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


More information about the FFmpeg-trac mailing list