Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#6493 closed defect (needs_more_info)

filter_complex Segmentation fault (core dumped)

Reported by: wwng Owned by:
Priority: important Component: undetermined
Version: git-master Keywords: crash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi all,
i use ffmpeg to add watermark at twitch stream, then i got Segmentation fault (core dumped)

i use:

ffmpeg -i 'https://video-edge-c67b10.cdg02.hls.ttvnw.net/v0/CtgBwk7ubWy8LXl_uWuOcaIIipDd9o29h7zCOdSVnqLjJIaF5P8u35ny6Q1fNDBA7HGiOwAiwnpmrC-BiI20okHgq4_JbIbkrnbq1J0rkL2LsrtpW1O1R2hPbdpMw_x59itrg3lKlSYjSfG8LbM857ZxkXgMpq05uyVy1_ZV7xNmPq2I_ekFiT4PJ4E5bzu7_kxiNVcRGB2Wp_ibP3Q2MBQtG2rRvbUOYfPZ4SlCzEAb0Mry26uSSCUiYNqgY0wRkW9fB6yhCo4s0KWLyIYynRi54xd2ak5cafVuEhDV49XnRCQ-DCVJABbF3BxeGgysR19eL9-xr8NFvWY/index-live.m3u8' -i /tmp/watermark.png -filter_complex 'overlay=0:0' -acodec aac -strict -2 -f flv -y 'rtmp://192.168.1.11/live/test2' -report

ffmpeg version:

root@9bd2d21e0670:/www# ffmpeg
ffmpeg version 3.3.2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

then i got a log

Here is the log:

https://ufile.io/719ba

Attachments (1)

ffmpeg-20170627-120414.log (1.8 MB ) - added by wwng 7 years ago.

Download all attachments as: .zip

Change History (7)

by wwng, 7 years ago

Attachment: ffmpeg-20170627-120414.log added

comment:1 by Leo Izen, 7 years ago

The log you provided does not contain any indication that there was a segmentation fault. In particular, it does not say "Segmentation fault (core dumped)" as you have claimed. Either you're not providing the full log, or there doesn't appear to actually be any segfault happening.

comment:2 by Cigaes, 7 years ago

The log provided was produced by ffmpeg using the -report option: of course it does not contain “segmentation fault”, it is like expecting someone's autobiography to contain the cause of their death. The “segmentation fault” message is produced by the calling shell, and thus not written in ffmpeg's log file.

On the other hand, a bug is more likely to get more attention if the command-line was already simplified by the reporter to make it possible for developers to reproduce the issue and start investigating. Otherwise, they are likely to suspect the bug to be present in a part of the code not their concern.

in reply to:  1 comment:3 by wwng, 7 years ago

Replying to thebombzen:

The log you provided does not contain any indication that there was a segmentation fault. In particular, it does not say "Segmentation fault (core dumped)" as you have claimed. Either you're not providing the full log, or there doesn't appear to actually be any segfault happening.

i try this again and i got

root@9bd2d21e0670:/www# ffmpeg -i 'https://video-edge-c67b10.cdg02.hls.ttvnw.net/v0/CtgBwk7ubWy8LXl_uWuOcaIIipDd9o29h7zCOdSVnqLjJIaF5P8u35ny6Q1fNDBA7HGiOwAiwnpmrC-BiI20okHgq4_JbIbkrnbq1J0rkL2LsrtpW1O1R2hPbdpMw_x59itrg3lKlSYjSfG8LbM857ZxkXgMpq05uyVy1_ZV7xNmPq2I_ekFiT4PJ4E5bzu7_kxiNVcRGB2Wp_ibP3Q2MBQtG2rRvbUOYfPZ4SlCzEAb0Mry26uSSCUiYNqgY0wRkW9fB6yhCo4s0KWLyIYynRi54xd2ak5cafVuEhDV49XnRCQ-DCVJABbF3BxeGgysR19eL9-xr8NFvWY/index-live.m3u8' -i /tmp/watermark.png -filter_complex 'overlay=0:0' -acodec aac -strict -2 -f flv -y 'rtmp://192.168.1.11/live/test2' -report
ffmpeg started on 2017-06-27 at 12:47:30
Report written to "ffmpeg-20170627-124730.log"
ffmpeg version 3.3.2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[hls,applehttp @ 0x5b9a3c0] Opening 'https://video-edge-c67b10.cdg02.hls.ttvnw.net/v0/CtgBwk7ubWy8LXl_uWuOcaIIipDd9o29h7zCOdSVnqLjJIaF5P8u35ny6Q1fNDBA7HGiOwAiwnpmrC-BiI20okHgq4_JbIbkrnbq1J0rkL2LsrtpW1O1R2hPbdpMw_x59itrg3lKlSYjSfG8LbM857ZxkXgMpq05uyVy1_ZV7xNmPq2I_ekFiT4PJ4E5bzu7_kxiNVcRGB2Wp_ibP3Q2MBQtG2rRvbUOYfPZ4SlCzEAb0Mry26uSSCUiYNqgY0wRkW9fB6yhCo4s0KWLyIYynRi54xd2ak5cafVuEhDV49XnRCQ-DCVJABbF3BxeGgysR19eL9-xr8NFvWY/index-0000053447-oiKK.ts' for reading
Input #0, hls,applehttp, from 'https://video-edge-c67b10.cdg02.hls.ttvnw.net/v0/CtgBwk7ubWy8LXl_uWuOcaIIipDd9o29h7zCOdSVnqLjJIaF5P8u35ny6Q1fNDBA7HGiOwAiwnpmrC-BiI20okHgq4_JbIbkrnbq1J0rkL2LsrtpW1O1R2hPbdpMw_x59itrg3lKlSYjSfG8LbM857ZxkXgMpq05uyVy1_ZV7xNmPq2I_ekFiT4PJ4E5bzu7_kxiNVcRGB2Wp_ibP3Q2MBQtG2rRvbUOYfPZ4SlCzEAb0Mry26uSSCUiYNqgY0wRkW9fB6yhCo4s0KWLyIYynRi54xd2ak5cafVuEhDV49XnRCQ-DCVJABbF3BxeGgysR19eL9-xr8NFvWY/index-live.m3u8':
  Duration: N/A, start: 11498.669311, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 0
Input #1, png_pipe, from '/tmp/watermark.png':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba(pc), 184x184 [SAR 3780:3780 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:1 (h264) -> overlay:main (graph 0)
  Stream #1:0 (png) -> overlay:overlay (graph 0)
  overlay (graph 0) -> Stream #0:0 (flv)
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, flv, to 'rtmp://192.168.1.11/live/test2':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 50 fps, 1k tbn, 50 tbc (default)
    Metadata:
      encoder         : Lavc57.89.100 flv
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      variant_bitrate : 0
      encoder         : Lavc57.89.100 aac
[hls,applehttp @ 0x5b9a3c0] Opening 'https://video-edge-c67b10.cdg02.hls.ttvnw.net/v0/CtgBwk7ubWy8LXl_uWuOcaIIipDd9o29h7zCOdSVnqLjJIaF5P8u35ny6Q1fNDBA7HGiOwAiwnpmrC-BiI20okHgq4_JbIbkrnbq1J0rkL2LsrtpW1O1R2hPbdpMw_x59itrg3lKlSYjSfG8LbM857ZxkXgMpq05uyVy1_ZV7xNmPq2I_ekFiT4PJ4E5bzu7_kxiNVcRGB2Wp_ibP3Q2MBQtG2rRvbUOYfPZ4SlCzEAb0Mry26uSSCUiYNqgY0wRkW9fB6yhCo4s0KWLyIYynRi54xd2ak5cafVuEhDV49XnRCQ-DCVJABbF3BxeGgysR19eL9-xr8NFvWY/index-0000053448-Q40d.ts' for reading
Segmentation fault (core dumped)

but i can't find the core dumped file.

Last edited 7 years ago by wwng (previous) (diff)

comment:4 by bubbleguuum, 7 years ago

If static compiled ffmpeg uses dlopen() to open a dynamic library to perform the watermark, then that's the cause of the segfault.

To know if dlopen() is used, start ffmpeg under strace and look for a dlopen() call before the crash.

Last edited 7 years ago by bubbleguuum (previous) (diff)

comment:5 by Elon Musk, 6 years ago

Resolution: needs_more_info
Status: newclosed

comment:6 by Carl Eugen Hoyos, 6 years ago

Keywords: crash added; filter_complex removed
Priority: normalimportant
Note: See TracTickets for help on using tickets.