gs 9.25 in ubuntu package crashes (but not same version from git repo)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghostscript (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
To reproduce this, in a fully updated Ubuntu 18.0.4, download https:/
and run:
$ pdf2ps dummy.pdf
It should generate a ps, but it crashes instead.
LONG DESCRIPTION:
I recently updated my Ubuntu 16.0.4 to Ubuntu 18.0.4 I have been unable to use my printer since them.
Looking in /var/log/
With the gs executable included in my distro, I get:
$ pdf2ps dummy.pdf
./base/
| ./base/
./base/
| ./base/
**** Unable to open the initial device, quitting.
I found information about this error in "https:/
So I downloaded ghostcript sources from git.ghostscript
To use the new gs executable I did
mv /usr/bin/gs /usr/bin/gs.orig
ln -s /home/j/
And now
$ pdf2ps myFile.pdf
Generates a ps
Both gs executables (the one in Ubuntu and the one I compiled) report they are 9.25 when I do gs --version.
I have reproduced with some personal pdfs, and also with the sample pdf in https:/
It seems to me that there is a problem in the patches you include/exclude in your packaging (but haven't taken a look at it).
- Information about my system:
$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
$ dpkg -l | grep ghost
ii ghostscript 9.25~dfsg+
ii ghostscript-x 9.25~dfsg+
rc gs-cjk-resource 1.20100103-3 all Resource files for gs-cjk, ghostscript CJK-TrueType extension
Some maybe relevant info from the uri I posted (https:/ /bugs.archlinux .org/task/ 59952):
Comment by Martin Pietsch (mpietsch) - Friday, 07 September 2018, 09:31 GMT
These three patches from the ghostscript git repository solve the problem:
https:/ /git.ghostscrip t.com/? p=ghostpdl. git;a=commit; h=c8c01f8c4164b c10281d9e8f87cf 96314d93104b /git.ghostscrip t.com/? p=ghostpdl. git;a=commit; h=13418541a5ae1 9b15f51cbb87faf 344902f5af98
https:/