[FFmpeg-trac] #7312(undetermined:new): crash while encoding from x11grab when source goes away

FFmpeg trac at avcodec.org
Tue Jul 10 20:16:11 EEST 2018


#7312: crash while encoding from x11grab when source goes away
-------------------------------------+-------------------------------------
             Reporter:  omry         |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 ffmpeg crashes when it's grabbing frames using x11grab if the source of
 the frames shutsdown unexpectedly.

 How to reproduce:
 {{{
 # Start an xvfb vistual frame buffer:
 Xvfb :100 -screen 0 1600x1200x24

 # Optional, run something inside:
 DISPLAY=:100 xterm

 # Capture frames to a file
 ~/build/bin/ffmpeg -f x11grab -video_size 1024x768 -i :100 -codec:v
 libx264  out.mp4 -y

 # Ctrl C the Xvfb process, the ffmpeg process will segfault reliably.
 }}}

 I initially saw it on 2.8.14-0ubuntu0.16.04.1,  but reproduced after
 building from the latest source from git as of July/9/2018).

 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7312>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list