Steps to reproduce: ezyang@sabre:~$ Dev/ghostpdl/gs/bin/gs %stdin GPL Ghostscript GIT PRERELEASE 9.16 (2014-09-22) Copyright (C) 2014 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Segmentation fault (core dumped) Expected result: It doesn't segfault. This bug is pretty old, it affects versions as early as 9.10. https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/1374271
Fixed in: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=9ef2c818