gs does not terminate and does not produce output when writing with pdfwrite

Bug #1653787 reported by Nico Orrù
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GS-GPL
Fix Released
Undecided
Unassigned
ghostscript (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The following command never terminates, one CPU/thread up 100%:

gs -sDEVICE=pdfwrite -sOutputFile=test.pdf -f test.ps

This is more or less what

ps2pdf test.ps

does.

I have obtained this test case from an old debian bug report at the URL below, as I have originally encountered the problem with a *much larger* postscript file (214MB), which I've left running for 24 hours with no progress. I have attached both files.

Both files (the small one and the large one) get read by gv and displayed perfectly on screen.

Terminating the process with ctrl+c, output file is generated but contains no data.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786827

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: ghostscript 9.19~dfsg+1-0ubuntu6.3
ProcVersionSignature: Ubuntu 4.8.0-32.34-lowlatency 4.8.11
Uname: Linux 4.8.0-32-lowlatency x86_64
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
CurrentDesktop: X-Cinnamon
Date: Tue Jan 3 20:48:44 2017
InstallationDate: Installed on 2016-10-20 (74 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
SourcePackage: ghostscript
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nico Orrù (nigu-orru) wrote :
Revision history for this message
Nico Orrù (nigu-orru) wrote :

Small file

Revision history for this message
Nico Orrù (nigu-orru) wrote :

Large file (bunzip to manual.ps to reproduce)

description: updated
description: updated
Nico Orrù (nigu-orru)
description: updated
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Reported to Ghostscript upstream:

https://bugs.ghostscript.com/show_bug.cgi?id=697462

Revision history for this message
dino99 (9d9) wrote :

Fixed upstream (697462#1)

Changed in gs-gpl:
importance: Unknown → Undecided
status: Unknown → New
status: New → Fix Released
Changed in ghostscript (Ubuntu):
status: New → Invalid
Revision history for this message
dino99 (9d9) wrote :

This is an unsupported release now. Please think to install the next LTS 'Bionic 18.04'

http://cdimage.ubuntu.com/ubuntu-next/daily-live/current/
https://www.omgubuntu.co.uk/2018/02/ubuntu-18-04-minimal-install-option

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.