[FFmpeg-trac] #1892(avcodec:open): smackaud: huge memory allocation

FFmpeg trac at avcodec.org
Tue Nov 6 23:24:22 CET 2012


#1892: smackaud: huge memory allocation
--------------------------------------+-----------------------------------
             Reporter:  ami_stuff     |                    Owner:
                 Type:  defect        |                   Status:  open
             Priority:  normal        |                Component:  avcodec
              Version:  git-master    |               Resolution:
             Keywords:  smacker leak  |               Blocked By:
             Blocking:                |  Reproduced by developer:  1
Analyzed by developer:  0             |
--------------------------------------+-----------------------------------
Changes (by cehoyos):

 * keywords:   => smacker leak
 * status:  new => open
 * version:  unspecified => git-master
 * component:  undetermined => avcodec
 * reproduced:  0 => 1


Comment:

 {{{
 $ valgrind ./ffmpeg_g -acodec smackaud -i Bach1-1.aiff -f null -
 ==6166== Memcheck, a memory error detector
 ==6166== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
 ==6166== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
 ==6166== Command: ./ffmpeg_g -acodec smackaud -i Bach1-1.aiff -f null -
 ==6166==
 ffmpeg version N-46501-g29d46d7 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Nov  6 2012 23:16:24 with gcc 4.7 (SUSE Linux)
   configuration: --disable-indev=jack --enable-gpl --enable-libvorbis
   libavutil      52.  5.100 / 52.  5.100
   libavcodec     54. 71.100 / 54. 71.100
   libavformat    54. 36.100 / 54. 36.100
   libavdevice    54.  3.100 / 54.  3.100
   libavfilter     3. 21.106 /  3. 21.106
   libswscale      2.  1.102 /  2.  1.102
   libswresample   0. 16.100 /  0. 16.100
   libpostproc    52.  1.100 / 52.  1.100
 [aiff @ 0x6fb6de0] max_analyze_duration 5000000 reached at 5153590
 Input #0, aiff, from 'Bach1-1.aiff':
   Metadata:
     title           : No name specified
     author          : No author specified
     copyright       : No copyright specified
   Duration: 00:00:11.55, start: 0.000000, bitrate: 178 kb/s
     Stream #0:0: Audio: smackaudio, 22254 Hz, mono, u8, 178 kb/s
 Output #0, null, to 'pipe:':
   Metadata:
     title           : No name specified
     author          : No author specified
     copyright       : No copyright specified
     encoder         : Lavf54.36.100
     Stream #0:0: Audio: pcm_s16le, 22254 Hz, mono, s16, 356 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (smackaud -> pcm_s16le)
 Press [q] to stop, [?] for help
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 Multiple frames in a packet from stream 0
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 3 times
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 1 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 2 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 1 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 size=       0kB time=00:12:39.06 bitrate=   0.0kbits/s    ^Mget_buffer()
 failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 ==6166== Warning: set address range perms: large range [0x3943e080,
 0x59781d00) (undefined)
 ==6166== Warning: set address range perms: large range [0x217f5080,
 0x329b10c8) (undefined)
 ==6166== Warning: set address range perms: large range [0x59782080,
 0x69923ec4) (undefined)
 ==6166== Warning: set address range perms: large range [0x59782070,
 0x69923ed4) (noaccess)
 ==6166== Warning: set address range perms: large range [0x3943e070,
 0x59781d10) (noaccess)
 Error while decoding stream #0:0: Operation not permitted
 size=       0kB time=01:41:12.94 bitrate=   0.0kbits/s    ^MSound: no data
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 1 times
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 2 times
 [smackaud @ 0x6fcdf00] sample format mismatch
 Error while decoding stream #0:0: Invalid argument
 size=       0kB time=00:13:17.53 bitrate=   0.0kbits/s
 Sound: no data
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 size=       0kB time=00:25:19.04 bitrate=   0.0kbits/s
 channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 10 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 7 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 54 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 length too long
 [smackaud @ 0x6fcdf00] invalid vlc
 Error while decoding stream #0:0: Invalid data found when processing input
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] sample format mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 1 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] sample format mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 3 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 1 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 2 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 3 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] sample format mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 1 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 2 times
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
 ==6166== Warning: set address range perms: large range [0x3943e080,
 0x5157f3a0) (undefined)
     Last message repeated 1 times
 Error while decoding stream #0:0: Operation not permitted
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 size=       0kB time=00:25:19.04 bitrate=   0.0kbits/s    ^MSound: no data
 [smackaud @ 0x6fcdf00] sample format mismatch
 Error while decoding stream #0:0: Invalid argument
 Error while decoding stream #0:0: Operation not permitted
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 2 times
 [smackaud @ 0x6fcdf00] sample format mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] Sound: no data
     Last message repeated 1 times
 [smackaud @ 0x6fcdf00] sample format mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] channels mismatch
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] get_buffer() failed
 Error while decoding stream #0:0: Invalid argument
 [smackaud @ 0x6fcdf00] sample format mismatch
 Error while decoding stream #0:0: Invalid argument
 size=       0kB time=00:12:45.30 bitrate=   0.0kbits/s    ^Msize=
 0kB time=00:12:45.30 bitrate=   0.0kbits/s    ^M
 video:0kB audio:429722kB subtitle:0 global headers:0kB muxing overhead
 -100.000000%
 ==6166== Warning: set address range perms: large range [0x217f5070,
 0x329b10d8) (noaccess)
 ==6166== Warning: set address range perms: large range [0x3943e070,
 0x5157f3b0) (noaccess)
 ==6166==
 ==6166== HEAP SUMMARY:
 ==6166==     in use at exit: 26,624 bytes in 16 blocks
 ==6166==   total heap usage: 599 allocs, 583 frees, 2,671,640,631 bytes
 allocated
 ==6166==
 ==6166== LEAK SUMMARY:
 ==6166==    definitely lost: 26,624 bytes in 16 blocks
 ==6166==    indirectly lost: 0 bytes in 0 blocks
 ==6166==      possibly lost: 0 bytes in 0 blocks
 ==6166==    still reachable: 0 bytes in 0 blocks
 ==6166==         suppressed: 0 bytes in 0 blocks
 ==6166== Rerun with --leak-check=full to see details of leaked memory
 ==6166==
 ==6166== For counts of detected and suppressed errors, rerun with: -v
 ==6166== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1892#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list