[FFmpeg-soc] BFI Decoder

Sisir Koppaka sisir.koppaka at gmail.com
Wed Apr 16 22:52:09 CEST 2008


On Thu, Apr 17, 2008 at 2:16 AM, Mike Melanson <mike at multimedia.cx> wrote:

> Sisir Koppaka wrote:
> > There's no memory corruption/segfaults for ffmpeg. ffplay gets hit hard
> > though, and it gives a list of all sdl library files and .so files. That
> > output is listed below:
>
> That probably just means that 'ffmpeg' got lucky. Run the command line
> through valgrind (and use 'ffmpeg_g' so you get symbols) and see where
> your decoder is stepping on memory (I'm just guessing about the root
> problem here :) ).
>

sisir at sisir-laptop:~/Desktop/ffmpegcompile/trunk$ valgrind --tool=memcheck
-v --leak-check=full ./ffmpeg_g -i ~/Desktop/bfi/2287.bfi test.mov
==12333== Memcheck, a memory error detector.
==12333== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==12333== Using LibVEX rev 1732, a library for dynamic binary translation.
==12333== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==12333== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation
framework.
==12333== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==12333==
--12333-- Command line
--12333--    ./ffmpeg_g
--12333--    -i
--12333--    /home/sisir/Desktop/bfi/2287.bfi
--12333--    test.mov
--12333-- Startup, with flags:
--12333--    --tool=memcheck
--12333--    -v
--12333--    --leak-check=full
--12333-- Contents of /proc/version:
--12333--   Linux version 2.6.22-14-generic (buildd at palmer) (gcc version
4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Sun Oct 14
23:05:12 GMT 2007
--12333-- Arch and hwcaps: X86, x86-sse1-sse2
--12333-- Page sizes: currently 4096, max supported 4096
--12333-- Valgrind library directory: /usr/lib/valgrind
--12333-- Reading syms from /lib/ld-2.6.1.so (0x4000000)
--12333-- Reading debug info from /lib/ld-2.6.1.so...
--12333-- ... CRC mismatch (computed B27DA0E3 wanted C257421F)
--12333--    object doesn't have a symbol table
--12333-- Reading syms from /home/sisir/Desktop/ffmpegcompile/trunk/ffmpeg_g
(0x8048000)
--12333-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck
(0x38000000)
--12333--    object doesn't have a dynamic symbol table
--12333-- Reading suppressions file: /usr/lib/valgrind/default.supp
--12333-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so
(0x401E000)
--12333-- Reading syms from
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4020000)
--12333-- Reading syms from /usr/lib/libz.so.1.2.3.3 (0x4036000)
--12333-- Reading debug info from /usr/lib/libz.so.1.2.3.3...
--12333-- ... CRC mismatch (computed C9689B05 wanted F7144738)
--12333--    object doesn't have a symbol table
--12333-- Reading syms from /lib/tls/i686/cmov/libm-2.6.1.so (0x404B000)
--12333-- Reading debug info from /lib/tls/i686/cmov/libm-2.6.1.so...
--12333-- ... CRC mismatch (computed 730B6839 wanted 90F5DF67)
--12333--    object doesn't have a symbol table
--12333-- Reading syms from /lib/tls/i686/cmov/libdl-2.6.1.so (0x4071000)
--12333-- Reading debug info from /lib/tls/i686/cmov/libdl-2.6.1.so...
--12333-- ... CRC mismatch (computed A25EF760 wanted 765B986D)
--12333--    object doesn't have a symbol table
--12333-- Reading syms from /lib/tls/i686/cmov/libc-2.6.1.so (0x4075000)
--12333-- Reading debug info from /lib/tls/i686/cmov/libc-2.6.1.so...
--12333-- ... CRC mismatch (computed 5A96C3FD wanted BC190F62)
--12333--    object doesn't have a symbol table
--12333-- REDIR: 0x40E5920 (rindex) redirected to 0x4023350 (rindex)
--12333-- REDIR: 0x40E10B0 (memalign) redirected to 0x40218E2 (memalign)
--12333-- REDIR: 0x40E67B0 (memset) redirected to 0x4023880 (memset)
--12333-- REDIR: 0x40E5020 (strcmp) redirected to 0x40235D0 (strcmp)
--12333-- REDIR: 0x40E5550 (strlen) redirected to 0x4023500 (strlen)
--12333-- REDIR: 0x40E6810 (mempcpy) redirected to 0x4023DB0 (mempcpy)
FFmpeg version SVN-r2, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-libfaac --enable-libfaad --enable-libmp3lame
--enable-gpl
  libavutil version: 49.6.0
  libavcodec version: 51.52.0
  libavformat version: 52.11.0
  libavdevice version: 52.0.0
  built on Apr 10 2008 16:08:25, gcc: 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)
--12333-- REDIR: 0x40E5090 (strcpy) redirected to 0x4024520 (strcpy)
--12333-- REDIR: 0x40E2960 (realloc) redirected to 0x402278F (realloc)
--12333-- REDIR: 0x40E6CA0 (memcpy) redirected to 0x40242C0 (memcpy)
--12333-- REDIR: 0x40E2770 (free) redirected to 0x40222FA (free)
--12333-- REDIR: 0x40E4EB0 (index) redirected to 0x4023440 (index)
Input #0, bfi, from '/home/sisir/Desktop/bfi/2287.bfi':
  Duration: 00:01:18.7, start: 0.000000, bitrate: 88 kb/s
    Stream #0.0: Video: bfi, pal8, 320x140,  9.00 tb(r)
    Stream #0.1: Audio: pcm_u8, 11025 Hz, mono, 88 kb/s
File 'test.mov' already exists. Overwrite ? [y/N] y
Output #0, mov, to 'test.mov':
    Stream #0.0: Video: mpeg4, yuv420p, 320x140, q=2-31, 200 kb/s,  9.00
tb(c)
    Stream #0.1: Audio: 0x0000, 11025 Hz, mono, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Unsupported codec for output stream #0.1
==12333==
==12333== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
--12333--
--12333-- supp:   17 dl-hack3
==12333== malloc/free: in use at exit: 633,923 bytes in 97 blocks.
==12333== malloc/free: 100 allocs, 3 frees, 752,036 bytes allocated.
==12333==
==12333== searching for pointers to 97 not-freed blocks.
==12333== checked 1,418,920 bytes.
==12333==
==12333== LEAK SUMMARY:
==12333==    definitely lost: 0 bytes in 0 blocks.
==12333==      possibly lost: 0 bytes in 0 blocks.
==12333==    still reachable: 633,923 bytes in 97 blocks.
==12333==         suppressed: 0 bytes in 0 blocks.
==12333== Reachable blocks (those to which a pointer was found) are not
shown.
==12333== To see them, rerun with: --leak-check=full --show-reachable=yes
--12333--  memcheck: sanity checks: 24 cheap, 1 expensive
--12333--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--12333--  memcheck: auxmaps: 0 searches, 0 comparisons
--12333--  memcheck: SMs: n_issued      = 26 (416k, 0M)
--12333--  memcheck: SMs: n_deissued    = 1 (16k, 0M)
--12333--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--12333--  memcheck: SMs: max_undefined = 3 (48k, 0M)
--12333--  memcheck: SMs: max_defined   = 108 (1728k, 1M)
--12333--  memcheck: SMs: max_non_DSM   = 25 (400k, 0M)
--12333--  memcheck: max sec V bit nodes:    0 (0k, 0M)
--12333--  memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--12333--  memcheck: max shadow mem size:   704k, 0M
--12333-- translate:            fast SP updates identified: 4,330 ( 87.9%)
--12333-- translate:   generic_known SP updates identified: 419 (  8.5%)
--12333-- translate: generic_unknown SP updates identified: 176 (  3.5%)
--12333--     tt/tc: 9,816 tt lookups requiring 10,117 probes
--12333--     tt/tc: 9,816 fast-cache updates, 2 flushes
--12333--  transtab: new        4,880 (126,519 -> 1,779,142; ratio 140:10)
[0 scs]
--12333--  transtab: dumped     0 (0 -> ??)
--12333--  transtab: discarded  0 (0 -> ??)
--12333-- scheduler: 2,444,822 jumps (bb entries).
--12333-- scheduler: 24/6,334 major/minor sched events.
--12333--    sanity: 25 cheap, 1 expensive checks.
--12333--    exectx: 30,011 lists, 17 contexts (avg 0 per list)
--12333--    exectx: 120 searches, 103 full compares (858 per 1000)
--12333--    exectx: 112 cmp2, 38 cmp4, 0 cmpAll
 -----------------------------------------------------------------------------------------------------------
Both error summary and leak summary report zero, but there seem to be 97 not
freed blocks in the error summary and valgrind checks for them, but after
that there are no more messages regarding those 97 blocks?
-----------------
Sisir Koppaka



More information about the FFmpeg-soc mailing list