[FFmpeg-trac] #4014(undetermined:new): SIGSEGV might occur if you press first the q key in libvpx-vp9

FFmpeg trac at avcodec.org
Wed Oct 8 17:11:00 CEST 2014


#4014: SIGSEGV might occur if you press first the q key in libvpx-vp9
-------------------------------------+-------------------------------------
             Reporter:  Einguste     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:
              Version:  git-master   |  undetermined
             Keywords:  crash        |               Resolution:
  SIGSEGV libvpx                     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by Einguste):

 I test on Ubuntu linux too.
 {{{
 valgrind ./ffmpeg_g -y -i ../sample.mp4 -c:v libvpx-vp9 -c:a copy
 sample.mkv
 ==19392== Memcheck, a memory error detector
 ==19392== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
 ==19392== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for
 copyright info
 ==19392== Command: ./ffmpeg_g -y -i ../sample.mp4 -c:v libvpx-vp9 -c:a
 copy sample.mkv
 ==19392==
 ffmpeg version N-66700-g1d4480d Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Oct  8 2014 23:52:47 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
   configuration: --enable-libvpx
   libavutil      54.  9.100 / 54.  9.100
   libavcodec     56.  3.101 / 56.  3.101
   libavformat    56.  7.104 / 56.  7.104
   libavdevice    56.  1.100 / 56.  1.100
   libavfilter     5.  1.103 /  5.  1.103
   libswscale      3.  1.100 /  3.  1.100
   libswresample   1.  1.100 /  1.  1.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../sample.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf56.4.101
   Duration: 00:05:05.11, start: 0.000000, bitrate: 487 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 512x288 [SAR 1:1 DAR 16:9], 354 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc
 (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
 fltp, 128 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 [libvpx-vp9 @ 0x5a9dea0] v1.3.0-4530-g2faff64
 [libvpx-vp9 @ 0x5a9dea0] Failed to set VP8E_SET_NOISE_SENSITIVITY codec
 control: Unspecified internal error
 Output #0, matroska, to 'sample.mkv':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf56.7.104
     Stream #0:0(und): Video: vp9 (libvpx-vp9) (VP90 / 0x30395056),
 yuv420p, 512x288 [SAR 1:1 DAR 16:9], q=-1--1, 200 kb/s, 24 fps, 1k tbn, 24
 tbc (default)
     Metadata:
       handler_name    : VideoHandler
       encoder         : Lavc56.3.101 libvpx-vp9
     Stream #0:1(und): Audio: aac ([255][0][0][0] / 0x00FF), 44100 Hz,
 stereo, 128 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> vp9 (libvpx-vp9))
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 ==19392== Invalid read of size 4
 ==19392==    at 0xDDA960: vp9_lookahead_pop (in /home/einguste/ffmpeg
 /ffmpeg-build/ffmpeg_g)
 ==19392==    by 0xCEFEC2: vp9_get_compressed_data (in
 /home/einguste/ffmpeg/ffmpeg-build/ffmpeg_g)
 ==19392==    by 0xCDBF29: encoder_encode (in /home/einguste/ffmpeg/ffmpeg-
 build/ffmpeg_g)
 ==19392==    by 0xCB4F9D: vpx_codec_encode (in /home/einguste/ffmpeg
 /ffmpeg-build/ffmpeg_g)
 ==19392==    by 0x822B5B: vp8_encode (libvpxenc.c:724)
 ==19392==    by 0x990C21: avcodec_encode_video2 (utils.c:2071)
 ==19392==    by 0x4638E1: main (ffmpeg.c:1570)
 ==19392==  Address 0x4 is not stack'd, malloc'd or (recently) free'd
 ==19392==
 ==19392==
 ==19392== Process terminating with default action of signal 11 (SIGSEGV)
 ==19392==  Access not within mapped region at address 0x4
 ==19392==    at 0xDDA960: vp9_lookahead_pop (in /home/einguste/ffmpeg
 /ffmpeg-build/ffmpeg_g)
 ==19392==    by 0xCEFEC2: vp9_get_compressed_data (in
 /home/einguste/ffmpeg/ffmpeg-build/ffmpeg_g)
 ==19392==    by 0xCDBF29: encoder_encode (in /home/einguste/ffmpeg/ffmpeg-
 build/ffmpeg_g)
 ==19392==    by 0xCB4F9D: vpx_codec_encode (in /home/einguste/ffmpeg
 /ffmpeg-build/ffmpeg_g)
 ==19392==    by 0x822B5B: vp8_encode (libvpxenc.c:724)
 ==19392==    by 0x990C21: avcodec_encode_video2 (utils.c:2071)
 ==19392==    by 0x4638E1: main (ffmpeg.c:1570)
 ==19392==  If you believe this happened as a result of a stack
 ==19392==  overflow in your program's main thread (unlikely but
 ==19392==  possible), you can try to increase the size of the
 ==19392==  main thread stack using the --main-stacksize= flag.
 ==19392==  The main thread stack size used in this run was 8388608.
 ==19392==
 ==19392== HEAP SUMMARY:
 ==19392==     in use at exit: 18,958,986 bytes in 18,362 blocks
 ==19392==   total heap usage: 19,605 allocs, 1,243 frees, 21,608,609 bytes
 allocated
 ==19392==
 ==19392== LEAK SUMMARY:
 ==19392==    definitely lost: 0 bytes in 0 blocks
 ==19392==    indirectly lost: 0 bytes in 0 blocks
 ==19392==      possibly lost: 15,625,722 bytes in 18,148 blocks
 ==19392==    still reachable: 3,333,264 bytes in 214 blocks
 ==19392==         suppressed: 0 bytes in 0 blocks
 ==19392== Rerun with --leak-check=full to see details of leaked memory
 ==19392==
 ==19392== For counts of detected and suppressed errors, rerun with: -v
 ==19392== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
 強制終了
 }}}

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


More information about the FFmpeg-trac mailing list