[FFmpeg-trac] #6846(avformat:new): Segmentation fault when opening a specific m3u8 stream
FFmpeg
trac at avcodec.org
Mon Nov 20 03:22:15 EET 2017
#6846: Segmentation fault when opening a specific m3u8 stream
----------------------------------+--------------------------------------
Reporter: kyl416 | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
Summary of the bug:
I get a segmentaton fault when I try to play the HLS stream for aragon tv
How to reproduce:
Try to open this URL in ffmpeg or ffplay
http://aragontv.stream.flumotion.com/aragontv/hls-live/main.m3u8
{{{
ffmpeg -i http://aragontv.stream.flumotion.com/aragontv/hls-live/main.m3u8
ffmpeg version N-89124-c9cd990dcc8 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 7 (Ubuntu 7.2.0-8ubuntu3)
configuration: --prefix=/home/kyle --enable-gpl --enable-version3
--enable-nonfree --enable-static --enable-postproc --enable-libx264
--enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libdc1394 --enable-libmp3lame --enable-libtheora --enable-
libopenjpeg --enable-libvpx --enable-libgsm --enable-libspeex --enable-
libvorbis --enable-libxvid --cpu=broadwell --enable-libxavs --enable-
libfreetype --enable-libvo-amrwbenc --enable-libcelt --enable-openal
--enable-libcdio --enable-libmodplug --enable-libpulse --enable-libv4l2
--enable-libass --enable-libbluray --enable-libiec61883 --enable-libopus
--enable-libcaca --enable-libfdk-aac --enable-libilbc --enable-libtwolame
--enable-librtmp --enable-libsoxr --enable-libflite --enable-libgme
--enable-libzvbi --enable-libssh --enable-libwavpack --enable-ladspa
--enable-fontconfig --enable-libzmq --enable-libshine --enable-opengl
--enable-libx265 --disable-ffserver --disable-doc --enable-avresample
--disable-htmlpages --disable-manpages --disable-podpages --disable-
txtpages --disable-shared --disable-ffprobe --enable-libsmbclient
--enable-libwebp --enable-libbs2b --enable-libfribidi --enable-libsnappy
--enable-gcrypt --enable-gmp --enable-gnutls --enable-opencl --enable-
librubberband --enable-libtesseract --enable-debug --enable-libopenmpt
--enable-librsvg --enable-libmysofa --disable-stripping
libavutil 56. 0.100 / 56. 0.100
libavcodec 58. 3.103 / 58. 3.103
libavformat 58. 2.100 / 58. 2.100
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 2.100 / 7. 2.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
Segmentation fault (core dumped)
}}}
Here's the backtrace when I run it with gdb
{{{
Program received signal SIGSEGV, Segmentation fault.
ffurl_get_short_seek (h=0x0) at libavformat/avio.c:650
650 if (!h->prot->url_get_short_seek)
(gdb) bt
#0 0x000055555589d8f0 in ffurl_get_short_seek (h=0x0)
at libavformat/avio.c:650
#1 0x000055555589f0a8 in avio_seek (s=s at entry=0x55555756b960,
offset=offset at entry=0, whence=<optimized out>, whence at entry=0) at
libavformat/aviobuf.c:275
#2 0x00005555558d9ac5 in id3v2_read_internal (pb=0x55555756b960,
metadata=0x55555755f780, s=s at entry=0x0, magic=magic at entry=0x555556426ebb
"ID3", extra_meta=0x7fffffffcec8,
extra_meta at entry=0x7fffffffce28,
max_search_size=max_search_size at entry=0)
at libavformat/id3v2.c:1100
#3 0x00005555558d9f80 in id3v2_read_internal (max_search_size=0,
extra_meta=0x7fffffffce28, magic=magic at entry=0x555556426ebb "ID3", s=0x0,
metadata=<optimized out>, pb=<optimized out>) at libavformat/id3v2.c:1111
#4 0x00005555558d9f80 in ff_id3v2_read_dict (pb=<optimized out>,
metadata=<optimized out>, magic=magic at entry=0x555556426ebb "ID3",
extra_meta=extra_meta at entry=0x7fffffffcec8) at libavformat/id3v2.c:1112
#5 0x00005555559bb5e6 in avformat_open_input (ps=ps at entry=0x7fffffffcf88,
filename=filename at entry=0x7fffffffe1fc
"http://aragontv.stream.flumotion.com/aragontv/hls-live/main.m3u8",
fmt=fmt at entry=0x0, options=0x55555755ef88)
at libavformat/utils.c:596
#6 0x00005555556e5206 in open_input_file (o=o at entry=0x7fffffffd140,
filename=<optimized out>) at fftools/ffmpeg_opt.c:1071
#7 0x00005555556e6b24 in open_files (l=0x55555755eeb8, l=0x55555755eeb8,
open_file=0x5555556e3780 <open_input_file>, inout=0x55555644d5c1 "input")
at fftools/ffmpeg_opt.c:3296
#8 0x00005555556e6b24 in ffmpeg_parse_options (argc=<optimized out>,
argv=<optimized out>) at fftools/ffmpeg_opt.c:3336
#9 0x00005555556dc7ad in main (argc=3, argv=0x7fffffffde38)
at fftools/ffmpeg.c:4775
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6846>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list