Opened 2 years ago

Last modified 2 years ago

#7312 new defect

crash while encoding from x11grab when source goes away

Reported by: omry Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


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.

Attachments (2)

gdb.txt (10.3 KB) - added by omry 2 years ago.
output.txt (2.3 KB) - added by omry 2 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 2 years ago by cehoyos

Please test current FFmpeg git head and provide the command line including complete, uncut console output and backtrace, disassembly and register dump as explained on to make this a valid ticket.

Changed 2 years ago by omry

Changed 2 years ago by omry

comment:2 Changed 2 years ago by omry

Added requested outputs.

Note: See TracTickets for help on using tickets.