[FFmpeg-trac] #5683(undetermined:new): crashes of ffmpeg and ffplay when using zscale
FFmpeg
trac at avcodec.org
Fri Jul 1 09:56:07 CEST 2016
#5683: crashes of ffmpeg and ffplay when using zscale
-------------------------------------+-------------------------------------
Reporter: ponpon | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
thank for good apps
ffmpeg and ffplay crash when using zscale.
Summary of the bug:
How to reproduce:
ffmpeg
{{{
ffmpeg -i "akiyo_qcif.y4m" -vf "zscale=size=cif:f=lanczos" -f null -
ffmpeg version N-80892-g2a8dadb Copyright (c) 2000-2016 the FFmpeg
developers
built with clang version 3.7.1 (tags/RELEASE_371/final)
configuration: --prefix=/sw --disable-shared --enable-static --enable-
gpl --enable-version3 --enable-nonfree --enable-pthreads --cc=clang
--cxx=clang++ --optflags=-Ofast --extra-cflags=' -march=native
-I/sw/include -I/opt/local/include ' --extra-ldflags=' -L/sw/lib
-L/opt/local/lib -fopenmp' --extra-ldlibflags='-L/sw/lib -L/opt/local/lib
-static' --target-os=darwin --arch=x86_64 --cpu=corei7-avx --enable-
avresample --enable-libfaac --enable-libfdk-aac --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
--enable-libopus --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid
--enable-libfreetype --enable-librubberband --enable-libebur128 --enable-
openssl --enable-gnutls --enable-gcrypt --enable-gmp --enable-librtmp
--enable-libass --enable-fontconfig --enable-libfribidi --enable-libbluray
--enable-libdc1394 --enable-libschroedinger --enable-libmodplug --enable-
lzma --enable-libx264 --enable-libx265 --enable-libzimg --enable-
libvidstab --enable-libsoxr --enable-opengl --enable-opencl --pkg-config-
flags=' --libs --static'
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, yuv4mpegpipe, from '/Users/m/scale_test/akiyo_qcif.y4m':
Duration: 00:00:10.01, start: 0.000000, bitrate: 9116 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144,
SAR 128:117 DAR 1408:1053, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
[null @ 0x7fab79029800] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream.codecpar instead.
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf57.41.100
Stream #0:0: Video: wrapped_avframe, yuv420p, 352x288 [SAR 128:117 DAR
1408:1053], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
Metadata:
encoder : Lavc57.48.101 wrapped_avframe
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Segmentation fault: 11
}}}
lldb log
{{{
lldb ./ffmpeg_g
(lldb) target create "./ffmpeg_g"
Current executable set to './ffmpeg_g' (x86_64).
(lldb) r -i "akiyo_qcif.y4m" -vf "zscale=size=cif:f=lanczos" -f null -
Process 41886 launched: './ffmpeg_g' (x86_64)
ffmpeg version N-80892-g2a8dadb Copyright (c) 2000-2016 the FFmpeg
developers
built with clang version 3.7.1 (tags/RELEASE_371/final)
configuration: --prefix=/sw --disable-shared --enable-static --enable-
gpl --enable-version3 --enable-nonfree --enable-pthreads --cc=clang
--cxx=clang++ --optflags=-Ofast --extra-cflags=' -march=native
-I/sw/include -I/opt/local/include ' --extra-ldflags=' -L/sw/lib
-L/opt/local/lib -fopenmp' --extra-ldlibflags='-L/sw/lib -L/opt/local/lib
-static' --target-os=darwin --arch=x86_64 --cpu=corei7-avx --enable-
avresample --enable-libfaac --enable-libfdk-aac --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
--enable-libopus --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid
--enable-libfreetype --enable-librubberband --enable-libebur128 --enable-
openssl --enable-gnutls --enable-gcrypt --enable-gmp --enable-librtmp
--enable-libass --enable-fontconfig --enable-libfribidi --enable-libbluray
--enable-libdc1394 --enable-libschroedinger --enable-libmodplug --enable-
lzma --enable-libx264 --enable-libx265 --enable-libzimg --enable-
libvidstab --enable-libsoxr --enable-opengl --enable-opencl --pkg-config-
flags=' --libs --static'
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, yuv4mpegpipe, from '/Users/m/scale_test/akiyo_qcif.y4m':
Duration: 00:00:10.01, start: 0.000000, bitrate: 9116 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144,
SAR 128:117 DAR 1408:1053, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
[null @ 0x106012800] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream.codecpar instead.
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf57.41.100
Stream #0:0: Video: wrapped_avframe, yuv420p, 352x288 [SAR 128:117 DAR
1408:1053], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
Metadata:
encoder : Lavc57.48.101 wrapped_avframe
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Process 41886 stopped
* thread #1: tid = 0x7e628, 0x0000000100ca2773
ffmpeg_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195, queue = 'com.apple.main-thread',
stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
frame #0: 0x0000000100ca2773
ffmpeg_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195
ffmpeg_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195:
-> 0x100ca2773: vmovdqa (%rdi,%rax), %xmm2
0x100ca2778: vpmovzxbw %xmm2, %xmm3
0x100ca277d: vpunpckhbw %xmm1, %xmm2, %xmm2
0x100ca2781: vpsllw %xmm0, %xmm3, %xmm3
(lldb) bt
* thread #1: tid = 0x7e628, 0x0000000100ca2773
ffmpeg_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195, queue = 'com.apple.main-thread',
stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
* frame #0: 0x0000000100ca2773
ffmpeg_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195
frame #1: 0x0000000100cbdf60 ffmpeg_g`zimg::graph::(anonymous
namespace)::FilterNodeUV::generate_line(zimg::graph::(anonymous
namespace)::ExecutionState*, zimg::graph::ImageBuffer<void> const*,
unsigned int, bool) const + 272
frame #2: 0x0000000100cbdf18 ffmpeg_g`zimg::graph::(anonymous
namespace)::FilterNodeUV::generate_line(zimg::graph::(anonymous
namespace)::ExecutionState*, zimg::graph::ImageBuffer<void> const*,
unsigned int, bool) const + 200
frame #3: 0x0000000100cbdf18 ffmpeg_g`zimg::graph::(anonymous
namespace)::FilterNodeUV::generate_line(zimg::graph::(anonymous
namespace)::ExecutionState*, zimg::graph::ImageBuffer<void> const*,
unsigned int, bool) const + 200
frame #4: 0x0000000100cbdf18 ffmpeg_g`zimg::graph::(anonymous
namespace)::FilterNodeUV::generate_line(zimg::graph::(anonymous
namespace)::ExecutionState*, zimg::graph::ImageBuffer<void> const*,
unsigned int, bool) const + 200
frame #5: 0x0000000100cc04e9
ffmpeg_g`zimg::graph::FilterGraph::impl::process(zimg::graph::ImageBuffer<void
const> const*, zimg::graph::ImageBuffer<void> const*, void*,
zimg::graph::FilterGraph::callback, zimg::graph::FilterGraph::callback)
const + 713
frame #6: 0x0000000100cbce3b
ffmpeg_g`zimg::graph::FilterGraph::process(zimg::graph::ImageBuffer<void
const> const*, zimg::graph::ImageBuffer<void> const*, void*,
zimg::graph::FilterGraph::callback, zimg::graph::FilterGraph::callback)
const + 27
frame #7: 0x0000000100ccdd43 ffmpeg_g`zimg_filter_graph_process + 387
frame #8: 0x0000000100148652
ffmpeg_g`filter_frame(link=0x0000000104501b60, in=<unavailable>) + 2738 at
vf_zscale.c:574
frame #9: 0x000000010006da99
ffmpeg_g`ff_filter_frame_framed(link=0x0000000104501b60,
frame=<unavailable>) + 585 at avfilter.c:1125
frame #10: 0x000000010006f04a
ffmpeg_g`ff_filter_frame(link=0x0000000104501b60, frame=<unavailable>) +
602 at avfilter.c:1223
frame #11: 0x000000010007372b
ffmpeg_g`request_frame(link=0x0000000104501b60) + 59 at buffersrc.c:450
frame #12: 0x000000010007328a
ffmpeg_g`av_buffersrc_add_frame_internal(ctx=0x0000000104501920,
frame=<unavailable>, flags=<unavailable>) + 410 at buffersrc.c:239
frame #13: 0x0000000100073016
ffmpeg_g`av_buffersrc_add_frame_flags(ctx=0x0000000104501920,
frame=0x0000000104502e00, flags=4) + 86 at buffersrc.c:164
frame #14: 0x000000010001db6d ffmpeg_g`process_input_packet [inlined]
decode_video(ist=<unavailable>, pkt=<unavailable>,
got_output=<unavailable>) + 62 at ffmpeg.c:2196
frame #15: 0x000000010001db2f
ffmpeg_g`process_input_packet(ist=0x0000000104500600, pkt=<unavailable>,
no_eof=<unavailable>) + 5119 at ffmpeg.c:2340
frame #16: 0x0000000100019bd4 ffmpeg_g`transcode [inlined]
process_input + 1382 at ffmpeg.c:4020
frame #17: 0x000000010001966e ffmpeg_g`transcode [inlined]
transcode_step + 6121 at ffmpeg.c:4108
frame #18: 0x0000000100017e85 ffmpeg_g`transcode + 10581 at
ffmpeg.c:4162
frame #19: 0x0000000100014ef8 ffmpeg_g`main(argc=<unavailable>,
argv=<unavailable>) + 328 at ffmpeg.c:4355
frame #20: 0x00007fff8ccc15fd libdyld.dylib`start + 1
frame #21: 0x00007fff8ccc15fd libdyld.dylib`start + 1
(lldb) register read --all
General Purpose Registers:
rax = 0x0000000000000000
rbx = 0x0000000000000001
rcx = 0x0000000000000000
rdx = 0x0000000000000000
rdi = 0x000000010600ef58
rsi = 0x0000000106050b40
rbp = 0x00007fff5fbfa060
rsp = 0x00007fff5fbfa060
r8 = 0x0000000000000058
r9 = 0x0000000000000008
r10 = 0x0000000000000050
r11 = 0x0000000000000000
r12 = 0x00007fff5fbfa3e0
r13 = 0x0000000104503aa0
r14 = 0x0000000106050a00
r15 = 0x00007fff5fbfa2a8
rip = 0x0000000100ca2773
ffmpeg_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195
rflags = 0x0000000000010283
cs = 0x000000000000002b
fs = 0x0000000000000000
gs = 0x0000000000000000
eax = 0x00000000
ebx = 0x00000001
ecx = 0x00000000
edx = 0x00000000
edi = 0x0600ef58
esi = 0x06050b40
ebp = 0x5fbfa060
esp = 0x5fbfa060
r8d = 0x00000058
r9d = 0x00000008
r10d = 0x00000050
r11d = 0x00000000
r12d = 0x5fbfa3e0
r13d = 0x04503aa0
r14d = 0x06050a00
r15d = 0x5fbfa2a8
ax = 0x0000
bx = 0x0001
cx = 0x0000
dx = 0x0000
di = 0xef58
si = 0x0b40
bp = 0xa060
sp = 0xa060
r8w = 0x0058
r9w = 0x0008
r10w = 0x0050
r11w = 0x0000
r12w = 0xa3e0
r13w = 0x3aa0
r14w = 0x0a00
r15w = 0xa2a8
ah = 0x00
bh = 0x00
ch = 0x00
dh = 0x00
al = 0x00
bl = 0x01
cl = 0x00
dl = 0x00
dil = 0x58
sil = 0x40
bpl = 0x60
spl = 0x60
r8l = 0x58
r9l = 0x08
r10l = 0x50
r11l = 0x00
r12l = 0xe0
r13l = 0xa0
r14l = 0x00
r15l = 0xa8
Floating Point Registers:
fctrl = 0x037f
fstat = 0x0000
ftag = 0x00
fop = 0x0000
fioff = 0x00000000
fiseg = 0x0000
fooff = 0x00000000
foseg = 0x0000
mxcsr = 0x00001fa8
mxcsrmask = 0x0000ffff
stmm0 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
stmm1 = {0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
stmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
stmm3 = {0x1a 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
stmm4 = {0x00 0xe5 0xe9 0xff 0x00 0x00 0x00 0x00 0xff 0xff}
stmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
stmm6 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
stmm7 = {0x44 0xfd 0xb0 0xff 0x00 0x00 0x00 0x00 0xff 0xff}
ymm0 = {0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm3 = {0x00 0x82 0x00 0x81 0x00 0x81 0x00 0x81 0x00 0x81 0x00 0x81
0x00 0x82 0x00 0x81 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm4 = {0x00 0x80 0xff 0xff 0x00 0x80 0xff 0xff 0x00 0x80 0xff 0xff
0x00 0x80 0xff 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm5 = {0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80
0x00 0x80 0x00 0x80 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm6 = {0x2b 0x80 0xff 0xff 0x27 0x80 0xff 0xff 0x1f 0x80 0xff 0xff
0x1a 0x80 0xff 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm7 = {0x00 0x88 0x2c 0x42 0x00 0x40 0x1d 0x42 0x00 0x60 0xfb 0x41
0x00 0x98 0xcc 0x41 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm8 = {0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm9 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm10 = {0x50 0x27 0x44 0x28 0xae 0x27 0x7a 0x29 0xa5 0x28 0xa5 0x28
0x12 0x29 0x71 0x29 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm11 = {0x7d 0x1f 0x6c 0x1f 0x41 0x20 0x6d 0x20 0x7f 0x20 0x7f 0x20
0xb9 0x20 0x7d 0x21 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm12 = {0x9c 0x30 0x45 0x13 0x9c 0x30 0x45 0x13 0x9c 0x30 0x45 0x13
0x9c 0x30 0x45 0x13 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm13 = {0xa6 0xfb 0x79 0x00 0xa6 0xfb 0x79 0x00 0xa6 0xfb 0x79 0x00
0xa6 0xfb 0x79 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm14 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm15 = {0x00 0x20 0x00 0x00 0x00 0x20 0x00 0x00 0x00 0x20 0x00 0x00
0x00 0x20 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
xmm0 = {0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm3 = {0x00 0x82 0x00 0x81 0x00 0x81 0x00 0x81 0x00 0x81 0x00 0x81
0x00 0x82 0x00 0x81}
xmm4 = {0x00 0x80 0xff 0xff 0x00 0x80 0xff 0xff 0x00 0x80 0xff 0xff
0x00 0x80 0xff 0xff}
xmm5 = {0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80
0x00 0x80 0x00 0x80}
xmm6 = {0x2b 0x80 0xff 0xff 0x27 0x80 0xff 0xff 0x1f 0x80 0xff 0xff
0x1a 0x80 0xff 0xff}
xmm7 = {0x00 0x88 0x2c 0x42 0x00 0x40 0x1d 0x42 0x00 0x60 0xfb 0x41
0x00 0x98 0xcc 0x41}
xmm8 = {0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff}
xmm9 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm10 = {0x50 0x27 0x44 0x28 0xae 0x27 0x7a 0x29 0xa5 0x28 0xa5 0x28
0x12 0x29 0x71 0x29}
xmm11 = {0x7d 0x1f 0x6c 0x1f 0x41 0x20 0x6d 0x20 0x7f 0x20 0x7f 0x20
0xb9 0x20 0x7d 0x21}
xmm12 = {0x9c 0x30 0x45 0x13 0x9c 0x30 0x45 0x13 0x9c 0x30 0x45 0x13
0x9c 0x30 0x45 0x13}
xmm13 = {0xa6 0xfb 0x79 0x00 0xa6 0xfb 0x79 0x00 0xa6 0xfb 0x79 0x00
0xa6 0xfb 0x79 0x00}
xmm14 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm15 = {0x00 0x20 0x00 0x00 0x00 0x20 0x00 0x00 0x00 0x20 0x00 0x00
0x00 0x20 0x00 0x00}
Exception State Registers:
trapno = 0x0000000d
err = 0x00000000
faultvaddr = 0x0000000100ca3650
ffmpeg_g`zimg::depth::ordered_dither_w2b_sse2(float const*, unsigned int,
unsigned int, void const*, void*, float, float, unsigned int, unsigned
int, unsigned int)
}}}
ffplay
{{{
ffplay -i "akiyo_qcif.y4m" -vf "zscale=size=cif:f=lanczos"
ffplay version N-80892-g2a8dadb Copyright (c) 2003-2016 the FFmpeg
developers
built with clang version 3.7.1 (tags/RELEASE_371/final)
configuration: --prefix=/sw --disable-shared --enable-static --enable-
gpl --enable-version3 --enable-nonfree --enable-pthreads --cc=clang
--cxx=clang++ --optflags=-Ofast --extra-cflags=' -march=native
-I/sw/include -I/opt/local/include ' --extra-ldflags=' -L/sw/lib
-L/opt/local/lib -fopenmp' --extra-ldlibflags='-L/sw/lib -L/opt/local/lib
-static' --target-os=darwin --arch=x86_64 --cpu=corei7-avx --enable-
avresample --enable-libfaac --enable-libfdk-aac --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
--enable-libopus --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid
--enable-libfreetype --enable-librubberband --enable-libebur128 --enable-
openssl --enable-gnutls --enable-gcrypt --enable-gmp --enable-librtmp
--enable-libass --enable-fontconfig --enable-libfribidi --enable-libbluray
--enable-libdc1394 --enable-libschroedinger --enable-libmodplug --enable-
lzma --enable-libx264 --enable-libx265 --enable-libzimg --enable-
libvidstab --enable-libsoxr --enable-opengl --enable-opencl --pkg-config-
flags=' --libs --static'
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, yuv4mpegpipe, from '/Users/m/scale_test/akiyo_qcif.y4m':
Duration: 00:00:10.01, start: 0.000000, bitrate: 9116 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144,
SAR 128:117 DAR 1408:1053, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
Segmentation fault: 11
}}}
lldb log
{{{
lldb ./ffplay_g
(lldb) target create "./ffplay_g"
Current executable set to './ffplay_g' (x86_64).
(lldb) r -i "akiyo_qcif.y4m" -vf "zscale=size=cif:f=lanczos"
Process 41944 launched: './ffplay_g' (x86_64)
ffplay version N-80892-g2a8dadb Copyright (c) 2003-2016 the FFmpeg
developers
built with clang version 3.7.1 (tags/RELEASE_371/final)
configuration: --prefix=/sw --disable-shared --enable-static --enable-
gpl --enable-version3 --enable-nonfree --enable-pthreads --cc=clang
--cxx=clang++ --optflags=-Ofast --extra-cflags=' -march=native
-I/sw/include -I/opt/local/include ' --extra-ldflags=' -L/sw/lib
-L/opt/local/lib -fopenmp' --extra-ldlibflags='-L/sw/lib -L/opt/local/lib
-static' --target-os=darwin --arch=x86_64 --cpu=corei7-avx --enable-
avresample --enable-libfaac --enable-libfdk-aac --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
--enable-libopus --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid
--enable-libfreetype --enable-librubberband --enable-libebur128 --enable-
openssl --enable-gnutls --enable-gcrypt --enable-gmp --enable-librtmp
--enable-libass --enable-fontconfig --enable-libfribidi --enable-libbluray
--enable-libdc1394 --enable-libschroedinger --enable-libmodplug --enable-
lzma --enable-libx264 --enable-libx265 --enable-libzimg --enable-
libvidstab --enable-libsoxr --enable-opengl --enable-opencl --pkg-config-
flags=' --libs --static'
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, yuv4mpegpipe, from '/Users/m/scale_test/akiyo_qcif.y4m':
Duration: 00:00:10.01, start: 0.000000, bitrate: 9116 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144,
SAR 128:117 DAR 1408:1053, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
Process 41944 stopped
* thread #9: tid = 0x8062d, 0x0000000100c93e63
ffplay_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195, stop reason = EXC_BAD_ACCESS
(code=EXC_I386_GPFLT)
frame #0: 0x0000000100c93e63
ffplay_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195
ffplay_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195:
-> 0x100c93e63: vmovdqa (%rdi,%rax), %xmm2
0x100c93e68: vpmovzxbw %xmm2, %xmm3
0x100c93e6d: vpunpckhbw %xmm1, %xmm2, %xmm2
0x100c93e71: vpsllw %xmm0, %xmm3, %xmm3
(lldb) bt
* thread #9: tid = 0x8062d, 0x0000000100c93e63
ffplay_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195, stop reason = EXC_BAD_ACCESS
(code=EXC_I386_GPFLT)
* frame #0: 0x0000000100c93e63
ffplay_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195
frame #1: 0x0000000100caf650 ffplay_g`zimg::graph::(anonymous
namespace)::FilterNodeUV::generate_line(zimg::graph::(anonymous
namespace)::ExecutionState*, zimg::graph::ImageBuffer<void> const*,
unsigned int, bool) const + 272
frame #2: 0x0000000100caf608 ffplay_g`zimg::graph::(anonymous
namespace)::FilterNodeUV::generate_line(zimg::graph::(anonymous
namespace)::ExecutionState*, zimg::graph::ImageBuffer<void> const*,
unsigned int, bool) const + 200
frame #3: 0x0000000100caf608 ffplay_g`zimg::graph::(anonymous
namespace)::FilterNodeUV::generate_line(zimg::graph::(anonymous
namespace)::ExecutionState*, zimg::graph::ImageBuffer<void> const*,
unsigned int, bool) const + 200
frame #4: 0x0000000100caf608 ffplay_g`zimg::graph::(anonymous
namespace)::FilterNodeUV::generate_line(zimg::graph::(anonymous
namespace)::ExecutionState*, zimg::graph::ImageBuffer<void> const*,
unsigned int, bool) const + 200
frame #5: 0x0000000100cb1bd9
ffplay_g`zimg::graph::FilterGraph::impl::process(zimg::graph::ImageBuffer<void
const> const*, zimg::graph::ImageBuffer<void> const*, void*,
zimg::graph::FilterGraph::callback, zimg::graph::FilterGraph::callback)
const + 713
frame #6: 0x0000000100cae52b
ffplay_g`zimg::graph::FilterGraph::process(zimg::graph::ImageBuffer<void
const> const*, zimg::graph::ImageBuffer<void> const*, void*,
zimg::graph::FilterGraph::callback, zimg::graph::FilterGraph::callback)
const + 27
frame #7: 0x0000000100cbf433 ffplay_g`zimg_filter_graph_process + 387
frame #8: 0x0000000100139ab2
ffplay_g`filter_frame(link=0x000000010450cfa0, in=<unavailable>) + 2738 at
vf_zscale.c:574
frame #9: 0x000000010005eef9
ffplay_g`ff_filter_frame_framed(link=0x000000010450cfa0,
frame=<unavailable>) + 585 at avfilter.c:1125
frame #10: 0x00000001000604aa
ffplay_g`ff_filter_frame(link=0x000000010450cfa0, frame=<unavailable>) +
602 at avfilter.c:1223
frame #11: 0x0000000100064b8b
ffplay_g`request_frame(link=0x000000010450cfa0) + 59 at buffersrc.c:450
frame #12: 0x000000010005ebca
ffplay_g`ff_request_frame_to_filter(link=0x000000010450cfa0) + 90 at
avfilter.c:387
frame #13: 0x0000000100062cc8
ffplay_g`ff_filter_graph_run_once(graph=<unavailable>) + 136 at
avfiltergraph.c:1434
frame #14: 0x0000000100063819
ffplay_g`av_buffersink_get_frame_flags(ctx=<unavailable>,
frame=<unavailable>, flags=<unavailable>) + 89 at buffersink.c:144
frame #15: 0x000000010000f751
ffplay_g`video_thread(arg=0x00000001096f6000) + 3137 at ffplay.c:2236
frame #16: 0x0000000102e2a2a5 libSDL-1.2.0.dylib`SDL_RunThread + 53
frame #17: 0x0000000102e68eb9 libSDL-1.2.0.dylib`RunThread + 9
frame #18: 0x00007fff8fe47899 libsystem_pthread.dylib`_pthread_body +
138
frame #19: 0x00007fff8fe4772a libsystem_pthread.dylib`_pthread_start +
137
frame #20: 0x00007fff8fe4bfc9 libsystem_pthread.dylib`thread_start +
13
(lldb) register read --all
General Purpose Registers:
rax = 0x0000000000000000
rbx = 0x0000000000000001
rcx = 0x0000000000000000
rdx = 0x0000000000000000
rdi = 0x000000010701fb58
rsi = 0x000000010702eb40
rbp = 0x000000010b344e00
rsp = 0x000000010b344e00
r8 = 0x0000000000000058
r9 = 0x0000000000000008
r10 = 0x0000000000000050
r11 = 0x0000000000000000
r12 = 0x000000010b345180
r13 = 0x000000010460af20
r14 = 0x000000010702ea00
r15 = 0x000000010b345048
rip = 0x0000000100c93e63
ffplay_g`zimg::depth::left_shift_b2w_sse2(void const*, void*, unsigned
int, unsigned int, unsigned int) + 195
rflags = 0x0000000000010283
cs = 0x000000000000002b
fs = 0x0000000000000000
gs = 0x0000000000000000
eax = 0x00000000
ebx = 0x00000001
ecx = 0x00000000
edx = 0x00000000
edi = 0x0701fb58
esi = 0x0702eb40
ebp = 0x0b344e00
esp = 0x0b344e00
r8d = 0x00000058
r9d = 0x00000008
r10d = 0x00000050
r11d = 0x00000000
r12d = 0x0b345180
r13d = 0x0460af20
r14d = 0x0702ea00
r15d = 0x0b345048
ax = 0x0000
bx = 0x0001
cx = 0x0000
dx = 0x0000
di = 0xfb58
si = 0xeb40
bp = 0x4e00
sp = 0x4e00
r8w = 0x0058
r9w = 0x0008
r10w = 0x0050
r11w = 0x0000
r12w = 0x5180
r13w = 0xaf20
r14w = 0xea00
r15w = 0x5048
ah = 0x00
bh = 0x00
ch = 0x00
dh = 0x00
al = 0x00
bl = 0x01
cl = 0x00
dl = 0x00
dil = 0x58
sil = 0x40
bpl = 0x00
spl = 0x00
r8l = 0x58
r9l = 0x08
r10l = 0x50
r11l = 0x00
r12l = 0x80
r13l = 0x20
r14l = 0x00
r15l = 0x48
Floating Point Registers:
fctrl = 0x037f
fstat = 0x0000
ftag = 0x00
fop = 0x0000
fioff = 0x00000000
fiseg = 0x0000
fooff = 0x00000000
foseg = 0x0000
mxcsr = 0x00001fa8
mxcsrmask = 0x0000ffff
stmm0 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
stmm1 = {0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
stmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
stmm3 = {0x1a 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
stmm4 = {0x00 0xe5 0xe9 0xff 0x00 0x00 0x00 0x00 0xff 0xff}
stmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
stmm6 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
stmm7 = {0x44 0xfd 0xb0 0xff 0x00 0x00 0x00 0x00 0xff 0xff}
ymm0 = {0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm3 = {0x00 0x82 0x00 0x81 0x00 0x81 0x00 0x81 0x00 0x81 0x00 0x81
0x00 0x82 0x00 0x81 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm4 = {0x00 0x80 0xff 0xff 0x00 0x80 0xff 0xff 0x00 0x80 0xff 0xff
0x00 0x80 0xff 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm5 = {0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80
0x00 0x80 0x00 0x80 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm6 = {0x2b 0x80 0xff 0xff 0x27 0x80 0xff 0xff 0x1f 0x80 0xff 0xff
0x1a 0x80 0xff 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm7 = {0x00 0x88 0x2c 0x42 0x00 0x40 0x1d 0x42 0x00 0x60 0xfb 0x41
0x00 0x98 0xcc 0x41 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm8 = {0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm9 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm10 = {0x50 0x27 0x44 0x28 0xae 0x27 0x7a 0x29 0xa5 0x28 0xa5 0x28
0x12 0x29 0x71 0x29 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm11 = {0x7d 0x1f 0x6c 0x1f 0x41 0x20 0x6d 0x20 0x7f 0x20 0x7f 0x20
0xb9 0x20 0x7d 0x21 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm12 = {0x9c 0x30 0x45 0x13 0x9c 0x30 0x45 0x13 0x9c 0x30 0x45 0x13
0x9c 0x30 0x45 0x13 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm13 = {0xa6 0xfb 0x79 0x00 0xa6 0xfb 0x79 0x00 0xa6 0xfb 0x79 0x00
0xa6 0xfb 0x79 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm14 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
ymm15 = {0x00 0x20 0x00 0x00 0x00 0x20 0x00 0x00 0x00 0x20 0x00 0x00
0x00 0x20 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00}
xmm0 = {0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm3 = {0x00 0x82 0x00 0x81 0x00 0x81 0x00 0x81 0x00 0x81 0x00 0x81
0x00 0x82 0x00 0x81}
xmm4 = {0x00 0x80 0xff 0xff 0x00 0x80 0xff 0xff 0x00 0x80 0xff 0xff
0x00 0x80 0xff 0xff}
xmm5 = {0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80 0x00 0x80
0x00 0x80 0x00 0x80}
xmm6 = {0x2b 0x80 0xff 0xff 0x27 0x80 0xff 0xff 0x1f 0x80 0xff 0xff
0x1a 0x80 0xff 0xff}
xmm7 = {0x00 0x88 0x2c 0x42 0x00 0x40 0x1d 0x42 0x00 0x60 0xfb 0x41
0x00 0x98 0xcc 0x41}
xmm8 = {0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff}
xmm9 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm10 = {0x50 0x27 0x44 0x28 0xae 0x27 0x7a 0x29 0xa5 0x28 0xa5 0x28
0x12 0x29 0x71 0x29}
xmm11 = {0x7d 0x1f 0x6c 0x1f 0x41 0x20 0x6d 0x20 0x7f 0x20 0x7f 0x20
0xb9 0x20 0x7d 0x21}
xmm12 = {0x9c 0x30 0x45 0x13 0x9c 0x30 0x45 0x13 0x9c 0x30 0x45 0x13
0x9c 0x30 0x45 0x13}
xmm13 = {0xa6 0xfb 0x79 0x00 0xa6 0xfb 0x79 0x00 0xa6 0xfb 0x79 0x00
0xa6 0xfb 0x79 0x00}
xmm14 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00}
xmm15 = {0x00 0x20 0x00 0x00 0x00 0x20 0x00 0x00 0x00 0x20 0x00 0x00
0x00 0x20 0x00 0x00}
Exception State Registers:
trapno = 0x0000000d
err = 0x00000000
faultvaddr = 0x0000000101c15e90 ffplay_g`zimg::xmm_mask_table_r + 256
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5683>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list