[Ffmpeg-devel] Memory leakage when using libavcodec with ffmpeg2theora

Viktor Kompaneyets vato
Fri May 13 13:28:27 CEST 2005


? ????????? ?? ???????, 13-???-2005 00:07 Daniel Serpell ???????(a):
> Hi!
>
> El Thu, May 12, 2005 at 09:29:00PM +0300, Viktor Kompaneyets escribio:
> > I'll do it tomorrow, but this is situation, in which valgrind don't help
> > - the programs ran out of memory (even swap) after a couple days of
> > encoding. But, if we stops them - the heap is freed! So only hard leaks
> > we can see.
>
> You could test ffmpeg under MemProf: http://wwww.gnome.org/projects/memprof
>
> With memprof, you can do leak analisys without stopping ffmpeg, and you can
> create a profile of allocations/deallocations. Send a profile obtained
> after a couple of hours.

Done:

Leaked 0x8a2fa90 (300 bytes)
 av_malloc(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/mem.c:93
 av_mallocz(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/utils.c:77
 av_encode(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:1468
 main(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:3600
 [0xb7d43974]
 _start(): ../sysdeps/i386/elf/start.S:105
Leaked 0x8a17700 (300 bytes)
 av_malloc(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/mem.c:93
 av_mallocz(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/utils.c:77
 av_encode(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:1468
 main(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:3600
 [0xb7d43974]
 _start(): ../sysdeps/i386/elf/start.S:105
Leaked 0x8a176b0 (60 bytes)
 av_malloc(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/mem.c:93
 av_mallocz(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/utils.c:77
 av_encode(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:1419
 main(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:3600
 [0xb7d43974]
 _start(): ../sysdeps/i386/elf/start.S:105
Leaked 0x84793d0 (8 bytes)
 av_malloc(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/mem.c:93
 av_mallocz(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/utils.c:77
 av_encode(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:1464
 main(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:3600
 [0xb7d43974]
 _start(): ../sysdeps/i386/elf/start.S:105
Leaked 0x8465bb0 (20 bytes)
 av_malloc(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/mem.c:93
 av_mallocz(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/utils.c:77
 av_encode(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:1399
 main(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:3600
 [0xb7d43974]
 _start(): ../sysdeps/i386/elf/start.S:105
Leaked 0x844e330 (8 bytes)
 av_malloc(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/mem.c:93
 av_mallocz(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/libavcodec/utils.c:77
 av_encode(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:1413
 main(): /home/vato/local/compile/ffmpeg2theora/ffmpeg/ffmpeg.c:3600
 [0xb7d43974]
 _start(): ../sysdeps/i386/elf/start.S:105

Used last CVS version of ffmpeg_g:

ffmpeg version 0.4.9-pre1, build 4754, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --disable-faad --disable-mp3lame --disable-faac --enable-pp 
--enable-a52 --enable-pthreads --disable-vhook --disable-v4l --enable-dts 
--disable-audio-oss --disable-dv1394 --enable-ffmpeg --disable-ffserver 
--enable-network --enable-ogg --enable-vorbis--enable-libogg --enable-theora 
--enable-gpl
  built on May 12 2005 20:01:02, gcc: 3.3.5 (Debian 1:3.3.5-8)

-- 
Viktor Kompaneyets
Wnet ISP





More information about the ffmpeg-devel mailing list