Opened 6 years ago

Closed 4 years ago

Last modified 4 years ago

#7312 closed defect (fixed)

crash while encoding from x11grab when source goes away

Reported by: Omry Yadan Owned by:
Priority: important Component: avdevice
Version: git-master Keywords: x11grab crash SIGSEGV
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 Yadan 6 years ago.
output.txt (2.3 KB ) - added by Omry Yadan 6 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Carl Eugen Hoyos, 6 years ago

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.

by Omry Yadan, 6 years ago

Attachment: gdb.txt added

by Omry Yadan, 6 years ago

Attachment: output.txt added

comment:2 by Omry Yadan, 6 years ago

Added requested outputs.

comment:3 by Andriy Gelman, 4 years ago

Resolution: fixed
Status: newclosed

comment:4 by Carl Eugen Hoyos, 4 years ago

Component: undeterminedavdevice
Keywords: x11grab added
Version: unspecifiedgit-master

comment:5 by Carl Eugen Hoyos, 4 years ago

Keywords: crash SIGSEGV added
Priority: normalimportant
Note: See TracTickets for help on using tickets.