Created attachment 18993 [details] file that triggered issue Observed in Ghostscript 9.51, both Debian sid version and macOS Homebrew version. The command: gs -q -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -dFirstPage=1 -o out.png -f vector.pdf causes a SIGFPE, unlike Ghostscript 9.50 and all older versions. If `-dFirstPage=1` is removed, there is no issue.
This should be fixed by this commit: http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=aaf5edb15fceaae962569bae30eb4633480c1d15 I checked before and after with the supplied file and could reproduce the problem before, it did not reproduce afterwards.