Opened 6 years ago

Last modified 6 years ago

#6964 new defect

Segmentation fault in Windows bash when using HTTP inputs

Reported by: Rogier Owned by:
Priority: important Component: undetermined
Version: unspecified Keywords: crash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% $ ffmpeg -i http://www.google.nl -f null -
ffmpeg version 3.4-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.4.0 (Debian 6.4.0-7) 20170920
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
  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
Segmentation fault (core dumped)

Bash version:

root:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

It happens with several different builds, and regardless if the input if a valid video/audio or not.

Change History (8)

comment:1 by Carl Eugen Hoyos, 6 years ago

Component: ffmpegundetermined
Keywords: crash added; #bash #ubuntu removed
Version: 3.4unspecified

Please verify that the issue is reproducible with current FFmpeg git head and provide backtrace, disassembly and register dump as required for crash reports and explained on http://ffmpeg.org/bugreports.html

comment:2 by Rogier, 6 years ago

I'm currently running an upgrade to Ubuntu 16 to rule that out. So it's still busy. I do however have a report of gdb I did before hand with the latest static build.
Ill update when the upgrade is complete.

(gdb) run -i http://<snip>/index.m3u8 -f null -
Starting program: /home/<snip>/test/ffmpeg-git-20180111-64bit-static/ffmpeg -i http://<snip>/index.m3u8 -f null -
ffmpeg version N-89773-g7fcbebbeaf-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.4.0 (Debian 6.4.0-11) 20171206
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
  libavutil      56.  7.100 / 56.  7.100
  libavcodec     58.  9.100 / 58.  9.100
  libavformat    58.  3.100 / 58.  3.100
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7. 11.101 /  7. 11.101
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100

Program received signal SIGSEGV, Segmentation fault.
0xffffffffff600000 in ?? ()
(gdb) bt
#0  0xffffffffff600000 in ?? ()
#1  0x00007ffffea9b12a in ?? ()
#2  0x00007fffff1f3d30 in ?? ()
#3  0x00007ffffffd5eac in ?? ()
#4  0x00007ffffffd5eb8 in ?? ()
#5  0x00000000000001e4 in ?? ()
#6  0x00007ffffffd5d70 in ?? ()
#7  0x00007ffffffd5e10 in ?? ()
#8  0x00007ffffffd5eb8 in ?? ()
#9  0x00007ffffea9ebc4 in ?? ()
#10 0x00007ffffffd5d60 in ?? ()
#11 0x74097064632d6568 in ?? ()
#12 0x0000000000000005 in ?? ()
#13 0x00007ffffffd5d30 in ?? ()
#14 0x00007ffffffd7300 in ?? ()
#15 0x0000000000000000 in ?? ()
Last edited 6 years ago by Rogier (previous) (diff)

comment:3 by Carl Eugen Hoyos, 6 years ago

You need a binary that was compiled without --disable-debug to produce usable debug data.

in reply to:  3 comment:4 by Rogier, 6 years ago

Replying to cehoyos:

You need a binary that was compiled without --disable-debug to produce usable debug data.

Ah shame. Sadly(?) the upgrade to Ubuntu 16 worked, and fixed the issue. I did work on 14 in the past, but stopped working a few weeks ago.

comment:5 by Carl Eugen Hoyos, 6 years ago

So there is no issue?

in reply to:  5 comment:6 by Rogier, 6 years ago

Replying to cehoyos:

So there is no issue?

Not with Ubuntu 16. So it might be related to version 16. By default Windows now installs version 16 if you install bash. However, if you installed it when it came out you were stuck at 14, unless you manually upgraded it.

comment:7 by Carl Eugen Hoyos, 6 years ago

Can you provide backtrace, disassembly and register dump for a debug version of FFmpeg on Ubuntu 14?

comment:8 by Hendrik, 6 years ago

Older versions of WSL have been quite incomplete, especially in regards to network functionality, so I wouldn't lose too much sleep over old WSL versions having issues with network-related functions.

The good news is that it has come a long way since then and works quite nicely today.

Note: See TracTickets for help on using tickets.