[FFmpeg-trac] #5536(undetermined:new): Segmentation fault (core dumped) on large file

FFmpeg trac at avcodec.org
Thu May 12 12:58:21 CEST 2016


#5536: Segmentation fault (core dumped) on large file
-------------------------------------+-------------------------------------
             Reporter:  Sap1ens      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by cehoyos):

 The following works fine here:
 {{{
 $ ffmpeg -loop 1 -i full_013244.tif -f rawvideo -pix_fmt yuv420p -vframes
 100 - | x265 --input-res 3662x8250 --fps=30 --input - --output out.hevc
 }}}
 The following commands all crash:
 {{{
 $ ffmpeg -loop 1 -i full_013244.tif -f rawvideo -pix_fmt yuv420p -vframes
 100 - | ffmpeg -f rawvideo -s 3662x8250 -i - -threads 1 -x265-params
 pools=none out.hevc
 }}}
 {{{
 $ ffmpeg -loop 1 -i full_013244.tif -f rawvideo -pix_fmt yuv420p -vframes
 100 - | ffmpeg -f rawvideo -s 3662x8250 -i - out.hevc
 }}}
 {{{
 $ ffmpeg -loop 1 -i full_013244.tif -pix_fmt yuv420p -vframes 100 out.hevc
 ffmpeg version N-79948-gd1cacbb Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libx265
   libavutil      55. 24.100 / 55. 24.100
   libavcodec     57. 41.102 / 57. 41.102
   libavformat    57. 36.100 / 57. 36.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 45.100 /  6. 45.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 [tiff_pipe @ 0x3813500] Stream #0: not enough frames to estimate rate;
 consider increasing probesize
 Input #0, tiff_pipe, from 'full_013244.tif':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: tiff, gray, 3662x8250 [SAR 1:1 DAR 1831:4125], 25
 tbr, 25 tbn
 x265 [info]: HEVC encoder version 1.9+163-10763a24dfb9
 x265 [info]: build info [Linux][GCC 4.7.1][64 bit] 8bit
 x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
 x265 [info]: Main profile, Level-6 (Main tier)
 x265 [info]: Thread pool created using 8 threads
 x265 [info]: frame threads / pool features       : 3 / wpp(129 rows)
 x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
 x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
 x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
 x265 [info]: Keyframe min / max / scenecut       : 25 / 250 / 40
 x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
 x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
 x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
 x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
 x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60
 x265 [info]: tools: rd=3 psy-rd=2.00 signhide tmvp strong-intra-smoothing
 x265 [info]: tools: lslices=8 deblock sao
 [hevc @ 0x381b080] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
 Output #0, hevc, to 'out.hevc':
   Metadata:
     encoder         : Lavf57.36.100
     Stream #0:0: Video: hevc, yuv420p, 3662x8250 [SAR 1:1 DAR 1831:4125],
 q=2-31, 25 fps, 25 tbn
     Metadata:
       encoder         : Lavc57.41.102 libx265
 Stream mapping:
   Stream #0:0 -> #0:0 (tiff (native) -> hevc (libx265))
 Press [q] to stop, [?] for help
 Segmentation fault
 }}}
 Works fine with much lower frame count and lower thread count or
 significantly lower frame count (2).
 {{{
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x7fffe5120700 (LWP 28572)]
 0x000000000140f871 in x265_filterPixelToShort_64x64_ssse3 ()
 (gdb) bt
 #0  0x000000000140f871 in x265_filterPixelToShort_64x64_ssse3 ()
 #1  0x000000000147ecc3 in x265::Predict::motionCompensation(x265::CUData
 const&, x265::PredictionUnit const&, x265::Yuv&, bool, bool) ()
 #2  0x0000000001460749 in
 x265::Analysis::checkMerge2Nx2N_rd0_4(x265::Mode&, x265::Mode&,
 x265::CUGeom const&) ()
 #3  0x0000000001466538 in
 x265::Analysis::compressInterCU_rd0_4(x265::CUData const&, x265::CUGeom
 const&, int) ()
 #4  0x000000000146b30e in x265::Analysis::compressCTU(x265::CUData&,
 x265::Frame&, x265::CUGeom const&, x265::Entropy const&) ()
 #5  0x0000000001222e79 in x265::FrameEncoder::processRowEncoder(int,
 x265::ThreadLocalData&) ()
 #6  0x00000000012213ba in x265::FrameEncoder::processRow(int, int) ()
 #7  0x000000000145b872 in x265::WaveFront::findJob(int) ()
 #8  0x000000000120bd12 in x265::WorkerThread::threadMain() ()
 #9  0x000000000120b60a in x265::ThreadShim(void*) ()
 #10 0x00007ffff6485e0e in start_thread () from /lib64/libpthread.so.0
 #11 0x00007ffff4f652cd in clone () from /lib64/libc.so.6
 }}}

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


More information about the FFmpeg-trac mailing list