[FFmpeg-trac] #6820(undetermined:new): Segfault with DASH live stream
FFmpeg
trac at avcodec.org
Wed Nov 8 22:29:26 EET 2017
#6820: Segfault with DASH live stream
-------------------------------------+-------------------------------------
Reporter: mrskman | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by mrskman):
Full GBD output:
{{{
gdb ffmpeg_g
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from
/opt/ffmpeg/3.4-test/sources/ffmpeg-3.4/ffmpeg_g...done.
(gdb) r -i http://vysilani.zaktv.cz:8000/live/dash/jtv.mpd
Starting program: /opt/ffmpeg/3.4-test/sources/ffmpeg-3.4/ffmpeg_g -i
http://vysilani.zaktv.cz:8000/live/dash/jtv.mpd
warning: no loadable sections found in added symbol-file system-supplied
DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/opt/ffmpeg/3.4-test/build --cc= --cxx= --objcc=
--dep-cc= --extra-cflags= --extra-cxxflags= --extra-
ldflags='-Wl,-rpath,/opt/ffmpeg/3.4-test/build/lib
-L/opt/ffmpeg/3.4-test/build/lib' --bindir=/opt/ffmpeg/3.4-test/build/bin
--enable-shared --disable-static --disable-doc --disable-htmlpages
--disable-manpages --disable-podpages --disable-txtpages --enable-gpl
--enable-libass --enable-libbluray --enable-libcelt --enable-libfdk-aac
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxml2 --enable-nonfree --enable-openssl --enable-rpath
--enable-version3
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff737cddd in ?? () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
(gdb) bt
#0 0x00007ffff737cddd in ?? () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#1 0x00007ffff737fac4 in ?? () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#2 0x00007ffff737febf in ?? () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#3 0x00007ffff7380223 in ?? () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#4 0x00007ffff736f6fe in ?? () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#5 0x00007ffff7370034 in avio_read () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#6 0x00007ffff739a3d1 in av_probe_input_buffer2 () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#7 0x00007ffff739a5a9 in av_probe_input_buffer () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#8 0x00007ffff737c85b in ?? () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#9 0x00007ffff737d5d5 in ?? () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#10 0x00007ffff7380701 in ?? () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#11 0x00007ffff74948b6 in avformat_open_input () from
/opt/ffmpeg/3.4-test/build/lib/libavformat.so.57
#12 0x000000000040dbfd in open_input_file (o=0x7fffffffdef0,
filename=<optimized out>) at fftools/ffmpeg_opt.c:1060
#13 0x000000000040b38c in open_files (inout=0x42efc0 "input",
open_file=0x40d830 <open_input_file>, l=<optimized out>) at
fftools/ffmpeg_opt.c:3278
#14 0x00000000004130b7 in ffmpeg_parse_options (argc=<optimized out>,
argv=<optimized out>) at fftools/ffmpeg_opt.c:3318
#15 0x0000000000409366 in main (argc=3, argv=0x7fffffffe528) at
fftools/ffmpeg.c:4794
(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0x7ffff737cdbd to 0x7ffff737cdfd:
0x00007ffff737cdbd: add %al,(%rax)
0x00007ffff737cdbf: jmpq 0x7ffff7370190 <avio_seek>
0x00007ffff737cdc4: nopl 0x0(%rax)
0x00007ffff737cdc8: mov $0xffffffffffffffda,%rax
0x00007ffff737cdcf: retq
0x00007ffff737cdd0: push %rbp
0x00007ffff737cdd1: push %rbx
0x00007ffff737cdd2: sub $0x18,%rsp
0x00007ffff737cdd6: mov 0x118(%rdi),%rax
=> 0x00007ffff737cddd: mov 0x18(%rax),%rbx
0x00007ffff737cde1: mov 0x190(%rdi),%eax
0x00007ffff737cde7: test %eax,%eax
0x00007ffff737cde9: jne 0x7ffff737ce70
0x00007ffff737cdef: mov 0x1a0(%rdi),%esi
0x00007ffff737cdf5: test %esi,%esi
0x00007ffff737cdf7: je 0x7ffff737ce30
0x00007ffff737cdf9: movslq %esi,%rax
0x00007ffff737cdfc: add 0x1b0(%rdi),%rax
End of assembler dump.
(gdb) info all-registers
rax 0x0 0
rbx 0x6594a0 6657184
rcx 0x7ffff4d90740 140737301251904
rdx 0x679a20 6789664
rsi 0xffffffff 4294967295
rdi 0x65bc40 6667328
rbp 0x65a4e0 0x65a4e0
rsp 0x7fffffffc9d0 0x7fffffffc9d0
r8 0x0 0
r9 0x679f00 6790912
r10 0x0 0
r11 0x6 6
r12 0x65bc40 6667328
r13 0x0 0
r14 0x659670 6657648
r15 0x65c300 6669056
rip 0x7ffff737cddd 0x7ffff737cddd
eflags 0x10202 [ IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
st0 0 (raw 0x00000000000000000000)
st1 0 (raw 0x00000000000000000000)
st2 0 (raw 0x00000000000000000000)
st3 0 (raw 0x00000000000000000000)
st4 0 (raw 0x00000000000000000000)
st5 0 (raw 0x00000000000000000000)
st6 0 (raw 0x00000000000000000000)
st7 0 (raw 0x00000000000000000000)
fctrl 0x37f 895
fstat 0x0 0
ftag 0xffff 65535
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
mxcsr 0x1fa0 [ PE IM DM ZM OM UM PM ]
ymm0 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x8000000000000000, 0x0, 0x0}, v32_int8 = {0x0 <repeats
14 times>, 0xff, 0xff, 0x0 <repeats 16 times>}, v16_int16 = {0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v8_int32 = {0x0, 0x0, 0x0, 0xffff0000, 0x0, 0x0, 0x0, 0x0},
v4_int64 = {0x0, 0xffff000000000000, 0x0, 0x0}, v2_int128 = {
0xffff0000000000000000000000000000,
0x00000000000000000000000000000000}}
ymm1 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x8000000000000000, 0x0, 0x0, 0x0}, v32_int8 = {0x6a, 0x74,
0x76, 0x2d, 0x24, 0x54, 0x69, 0x6d, 0x65, 0x24, 0x2e, 0x6d, 0x34,
0x61, 0x0 <repeats 18 times>}, v16_int16 = {0x746a, 0x2d76, 0x5424,
0x6d69, 0x2465, 0x6d2e, 0x6134, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v8_int32 = {0x2d76746a, 0x6d695424, 0x6d2e2465, 0x6134,
0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x6d6954242d76746a, 0x61346d2e2465,
0x0, 0x0}, v2_int128 = {0x000061346d2e24656d6954242d76746a,
0x00000000000000000000000000000000}}
ymm2 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>},
v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 =
{0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm3 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>},
v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 =
{0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm4 {v8_float = {0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0x10, 0x41, 0x0
<repeats 28 times>}, v16_int16 = {0x0, 0x4110,
0x0 <repeats 14 times>}, v8_int32 = {0x41100000, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int64 = {0x41100000, 0x0, 0x0, 0x0}, v2_int128 =
{0x00000000000000000000000041100000,
0x00000000000000000000000000000000}}
ymm5 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x74, 0x3d, 0x22, 0x32,
0x33, 0x37, 0x38, 0x34, 0x32, 0x31, 0x22, 0x20, 0x64, 0x3d, 0x22,
0x35, 0x0 <repeats 16 times>}, v16_int16 = {0x3d74, 0x3222, 0x3733,
0x3438, 0x3132, 0x2022, 0x3d64, 0x3522, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v8_int32 = {0x32223d74, 0x34383733, 0x20223132,
---Type <return> to continue, or q <return> to quit---
0x35223d64, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x3438373332223d74,
0x35223d6420223132, 0x0, 0x0}, v2_int128 =
{0x35223d64202231323438373332223d74, 0x00000000000000000000000000000000}}
ymm6 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x33, 0x32, 0x30, 0x22,
0x2f, 0x3e, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x0 <repeats 16 times>}, v16_int16 = {0x3233, 0x2230, 0x3e2f, 0x200a,
0x2020, 0x2020, 0x2020, 0x2020, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v8_int32 = {0x22303233, 0x200a3e2f, 0x20202020, 0x20202020,
0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x200a3e2f22303233,
0x2020202020202020, 0x0, 0x0}, v2_int128 =
{0x2020202020202020200a3e2f22303233, 0x00000000000000000000000000000000}}
ymm7 {v8_float = {0x3c200000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_double = {0x8000000000000000, 0x8000000000000000, 0x0, 0x0},
v32_int8 = {0x20, 0x3c, 0x2f, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e,
0x74, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x0 <repeats 16 times>},
v16_int16 = {0x3c20, 0x532f, 0x6765, 0x656d, 0x746e, 0x6954, 0x656d,
0x696c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {
0x532f3c20, 0x656d6765, 0x6954746e, 0x696c656d, 0x0, 0x0, 0x0, 0x0},
v4_int64 = {0x656d6765532f3c20, 0x696c656d6954746e, 0x0, 0x0}, v2_int128 =
{0x696c656d6954746e656d6765532f3c20,
0x00000000000000000000000000000000}}
ymm8 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x8000000000000000, 0x0, 0x0}, v32_int8 = {0x6e, 0x65,
0x3e, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3c,
0x2f, 0x53, 0x65, 0x0 <repeats 16 times>}, v16_int16 = {0x656e, 0xa3e,
0x2020, 0x2020, 0x2020, 0x2020, 0x2f3c, 0x6553, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v8_int32 = {0xa3e656e, 0x20202020,
0x20202020, 0x65532f3c, 0x0, 0x0, 0x0, 0x0}, v4_int64 =
{0x202020200a3e656e, 0x65532f3c20202020, 0x0, 0x0}, v2_int128 =
{0x65532f3c20202020202020200a3e656e, 0x00000000000000000000000000000000}}
ymm9 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x8000000000000000, 0x0, 0x0, 0x0}, v32_int8 = {0x67, 0x6d,
0x65, 0x6e, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
0x3e, 0xa, 0x20, 0x0 <repeats 16 times>}, v16_int16 = {0x6d67, 0x6e65,
0x5474, 0x6d65, 0x6c70, 0x7461, 0x3e65, 0x200a, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v8_int32 = {0x6e656d67, 0x6d655474,
0x74616c70, 0x200a3e65, 0x0, 0x0, 0x0, 0x0}, v4_int64 =
{0x6d6554746e656d67, 0x200a3e6574616c70, 0x0, 0x0}, v2_int128 =
{0x200a3e6574616c706d6554746e656d67, 0x00000000000000000000000000000000}}
ymm10 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>},
v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 =
{0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm11 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x66, 0x94, 0x48, 0xf, 0x11,
0x14, 0xe3, 0x39, 0x0 <repeats 24 times>}, v16_int16 = {0x9466,
0xf48, 0x1411, 0x39e3, 0x0 <repeats 12 times>}, v8_int32 = {0xf489466,
0x39e31411, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x39e314110f489466,
0x0, 0x0, 0x0}, v2_int128 = {
0x000000000000000039e314110f489466,
0x00000000000000000000000000000000}}
ymm12 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0xb8, 0x8, 0xdb, 0x19, 0xa0,
0x1, 0x2a, 0xbf, 0x0 <repeats 24 times>}, v16_int16 = {0x8b8,
0x19db, 0x1a0, 0xbf2a, 0x0 <repeats 12 times>}, v8_int32 =
{0x19db08b8, 0xbf2a01a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 =
{0xbf2a01a019db08b8, 0x0, 0x0, 0x0}, v2_int128 = {
0x0000000000000000bf2a01a019db08b8,
0x00000000000000000000000000000000}}
ymm13 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0xd9, 0x7e, 0x9a, 0x7b,
0xe2, 0x1d, 0xc7, 0x3e, 0x0 <repeats 24 times>}, v16_int16 = {0x7ed9,
0x7b9a, 0x1de2, 0x3ec7, 0x0 <repeats 12 times>}, v8_int32 =
{0x7b9a7ed9, 0x3ec71de2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 =
{0x3ec71de27b9a7ed9, 0x0, 0x0, 0x0}, v2_int128 = {
0x00000000000000003ec71de27b9a7ed9,
0x00000000000000000000000000000000}}
ymm14 {v8_float = {0xffffff82, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x59, 0xdf, 0xfc,
0xc2, 0xff, 0xdd, 0x5a, 0xbe, 0x0 <repeats 24 times>}, v16_int16 = {
0xdf59, 0xc2fc, 0xddff, 0xbe5a, 0x0 <repeats 12 times>}, v8_int32 =
{0xc2fcdf59, 0xbe5addff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 =
{0xbe5addffc2fcdf59, 0x0, 0x0, 0x0}, v2_int128 = {
0x0000000000000000be5addffc2fcdf59,
0x00000000000000000000000000000000}}
ymm15 {v8_float = {0x92854080, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x7f, 0xf5, 0xda,
0xce, 0xf0, 0x39, 0xc1, 0x3f, 0x0 <repeats 24 times>}, v16_int16 = {
0xf57f, 0xceda, 0x39f0, 0x3fc1, 0x0 <repeats 12 times>}, v8_int32 =
{0xcedaf57f, 0x3fc139f0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 =
{0x3fc139f0cedaf57f, 0x0, 0x0, 0x0}, v2_int128 = {
0x00000000000000003fc139f0cedaf57f,
0x00000000000000000000000000000000}}
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6820#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list