[FFmpeg-soc] BFI Decoder

Sisir Koppaka sisir.koppaka at gmail.com
Wed Apr 16 23:54:35 CEST 2008


On Thu, Apr 17, 2008 at 3:17 AM, Michael Niedermayer <michaelni at gmx.at>
wrote:

> On Thu, Apr 17, 2008 at 03:12:29AM +0530, Sisir Koppaka wrote:
> > On Thu, Apr 17, 2008 at 3:03 AM, Michael Niedermayer <michaelni at gmx.at>
> > wrote:
> >
> > > On Thu, Apr 17, 2008 at 02:22:09AM +0530, Sisir Koppaka wrote:
> > > > 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 :) ).
> > > > >
> > > [...]
> > > > 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
> > >
> > > retry with a audio encoder which is supported by your ffmpeg
> > >
> >
> > sisir at sisir-laptop:~/Desktop/ffmpegcompile/trunk$ ./ffmpeg -i
> > ~/Desktop/bfi/2287.bfi test.wav
>
> with ffmpeg_g under valgrind
>

sisir at sisir-laptop:~/Desktop/ffmpegcompile/trunk$ valgrind --tool=memcheck
-v --leak-check=full ./ffmpeg_g -i ~/Desktop/bfi/2287.bfi test1.wav
==12421== Memcheck, a memory error detector.
==12421== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==12421== Using LibVEX rev 1732, a library for dynamic binary translation.
==12421== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==12421== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation
framework.
==12421== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==12421==
--12421-- Command line
--12421--    ./ffmpeg_g
--12421--    -i
--12421--    /home/sisir/Desktop/bfi/2287.bfi
--12421--    test1.wav
--12421-- Startup, with flags:
--12421--    --tool=memcheck
--12421--    -v
--12421--    --leak-check=full
--12421-- Contents of /proc/version:
--12421--   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
--12421-- Arch and hwcaps: X86, x86-sse1-sse2
--12421-- Page sizes: currently 4096, max supported 4096
--12421-- Valgrind library directory: /usr/lib/valgrind
--12421-- Reading syms from /lib/ld-2.6.1.so (0x4000000)
--12421-- Reading debug info from /lib/ld-2.6.1.so...
--12421-- ... CRC mismatch (computed B27DA0E3 wanted C257421F)
--12421--    object doesn't have a symbol table
--12421-- Reading syms from /home/sisir/Desktop/ffmpegcompile/trunk/ffmpeg_g
(0x8048000)
--12421-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck
(0x38000000)
--12421--    object doesn't have a dynamic symbol table
--12421-- Reading suppressions file: /usr/lib/valgrind/default.supp
--12421-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so
(0x401E000)
--12421-- Reading syms from
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4020000)
--12421-- Reading syms from /usr/lib/libz.so.1.2.3.3 (0x4036000)
--12421-- Reading debug info from /usr/lib/libz.so.1.2.3.3...
--12421-- ... CRC mismatch (computed C9689B05 wanted F7144738)
--12421--    object doesn't have a symbol table
--12421-- Reading syms from /lib/tls/i686/cmov/libm-2.6.1.so (0x404B000)
--12421-- Reading debug info from /lib/tls/i686/cmov/libm-2.6.1.so...
--12421-- ... CRC mismatch (computed 730B6839 wanted 90F5DF67)
--12421--    object doesn't have a symbol table
--12421-- Reading syms from /lib/tls/i686/cmov/libdl-2.6.1.so (0x4071000)
--12421-- Reading debug info from /lib/tls/i686/cmov/libdl-2.6.1.so...
--12421-- ... CRC mismatch (computed A25EF760 wanted 765B986D)
--12421--    object doesn't have a symbol table
--12421-- Reading syms from /lib/tls/i686/cmov/libc-2.6.1.so (0x4075000)
--12421-- Reading debug info from /lib/tls/i686/cmov/libc-2.6.1.so...
--12421-- ... CRC mismatch (computed 5A96C3FD wanted BC190F62)
--12421--    object doesn't have a symbol table
--12421-- REDIR: 0x40E5920 (rindex) redirected to 0x4023350 (rindex)
--12421-- REDIR: 0x40E10B0 (memalign) redirected to 0x40218E2 (memalign)
--12421-- REDIR: 0x40E67B0 (memset) redirected to 0x4023880 (memset)
--12421-- REDIR: 0x40E5020 (strcmp) redirected to 0x40235D0 (strcmp)
--12421-- REDIR: 0x40E5550 (strlen) redirected to 0x4023500 (strlen)
--12421-- 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)
--12421-- REDIR: 0x40E5090 (strcpy) redirected to 0x4024520 (strcpy)
--12421-- REDIR: 0x40E2960 (realloc) redirected to 0x402278F (realloc)
--12421-- REDIR: 0x40E6CA0 (memcpy) redirected to 0x40242C0 (memcpy)
--12421-- REDIR: 0x40E2770 (free) redirected to 0x40222FA (free)
--12421-- 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
Output #0, wav, to 'test1.wav':
    Stream #0.0: Audio: pcm_s16le, 11025 Hz, mono, 176 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
size=     140kB time=6.5 bitrate= 176.5kbits/s
video:0kB audio:140kB global headers:0kB muxing overhead 0.030610%
==12421==
==12421== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
--12421--
--12421-- supp:   17 dl-hack3
==12421== malloc/free: in use at exit: 998,908 bytes in 11 blocks.
==12421== malloc/free: 271 allocs, 260 frees, 2,473,175 bytes allocated.
==12421==
==12421== searching for pointers to 11 not-freed blocks.
==12421== checked 1,189,612 bytes.
==12421==
==12421== LEAK SUMMARY:
==12421==    definitely lost: 0 bytes in 0 blocks.
==12421==      possibly lost: 0 bytes in 0 blocks.
==12421==    still reachable: 998,908 bytes in 11 blocks.
==12421==         suppressed: 0 bytes in 0 blocks.
==12421== Reachable blocks (those to which a pointer was found) are not
shown.
==12421== To see them, rerun with: --leak-check=full --show-reachable=yes
--12421--  memcheck: sanity checks: 18 cheap, 1 expensive
--12421--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--12421--  memcheck: auxmaps: 0 searches, 0 comparisons
--12421--  memcheck: SMs: n_issued      = 37 (592k, 0M)
--12421--  memcheck: SMs: n_deissued    = 1 (16k, 0M)
--12421--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--12421--  memcheck: SMs: max_undefined = 15 (240k, 0M)
--12421--  memcheck: SMs: max_defined   = 108 (1728k, 1M)
--12421--  memcheck: SMs: max_non_DSM   = 36 (576k, 0M)
--12421--  memcheck: max sec V bit nodes:    0 (0k, 0M)
--12421--  memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--12421--  memcheck: max shadow mem size:   880k, 0M
--12421-- translate:            fast SP updates identified: 4,499 ( 88.5%)
--12421-- translate:   generic_known SP updates identified: 426 (  8.3%)
--12421-- translate: generic_unknown SP updates identified: 154 (  3.0%)
--12421--     tt/tc: 9,663 tt lookups requiring 9,951 probes
--12421--     tt/tc: 9,663 fast-cache updates, 2 flushes
--12421--  transtab: new        4,797 (112,617 -> 1,691,286; ratio 150:10)
[0 scs]
--12421--  transtab: dumped     0 (0 -> ??)
--12421--  transtab: discarded  0 (0 -> ??)
--12421-- scheduler: 1,896,591 jumps (bb entries).
--12421-- scheduler: 18/6,724 major/minor sched events.
--12421--    sanity: 19 cheap, 1 expensive checks.
--12421--    exectx: 30,011 lists, 42 contexts (avg 0 per list)
--12421--    exectx: 548 searches, 506 full compares (923 per 1000)
--12421--    exectx: 12 cmp2, 38 cmp4, 0 cmpAll
---------------------------------------
still 11 unfreed blocks but error summary says 0

-----------------
Sisir Koppaka



More information about the FFmpeg-soc mailing list