#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 |
Description
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)
Change History (7)
comment:1 by , 6 years ago
by , 6 years ago
by , 6 years ago
Attachment: | output.txt added |
---|
comment:3 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 4 years ago
Component: | undetermined → avdevice |
---|---|
Keywords: | x11grab added |
Version: | unspecified → git-master |
comment:5 by , 4 years ago
Keywords: | crash SIGSEGV added |
---|---|
Priority: | normal → important |
Note:
See TracTickets
for help on using tickets.
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 https://ffmpeg.org/bugreports.html to make this a valid ticket.