Bug 692393 - Ghostscript segfaults on PDF from digikam
Summary: Ghostscript segfaults on PDF from digikam
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: master
Hardware: PC Linux
: P4 major
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 16:49 UTC by Till Kamppeter
Modified: 2011-08-03 16:59 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Print output of digikam (3.45 MB, application/pdf)
2011-08-02 16:49 UTC, Till Kamppeter
Details
PPD file of this example (33.10 KB, text/plain)
2011-08-02 16:50 UTC, Till Kamppeter
Details
backtrace for full command line (3.38 KB, text/plain)
2011-08-02 17:17 UTC, Chris Liddell (chrisl)
Details
backtrace for simplified command line (2.34 KB, text/plain)
2011-08-02 17:17 UTC, Chris Liddell (chrisl)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Kamppeter 2011-08-02 16:49:11 UTC
Created attachment 7738 [details]
Print output of digikam

The attached file is the output of digikam when printing a photo. Ghostscript segfaults with the following command line (PPD file also attached):

cat digikam.pdf | PPD=Photosmart-Pro-B8800-series.ppd /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sMediaType=Glossy -sOutputType=2 -r1200x1200 -dDEVICEWIDTHPOINTS=303 -dDEVICEHEIGHTPOINTS=446 -dcupsMediaType=3 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=17 -dcupsInteger0=74 -scupsPageSizeName=Photo4x6.FB -I/usr/share/cups/fonts -c -f -_ > out.raster
Comment 1 Till Kamppeter 2011-08-02 16:50:19 UTC
Created attachment 7739 [details]
PPD file of this example
Comment 2 Till Kamppeter 2011-08-02 17:06:10 UTC
The segfault is independent of most of the parameters. This minimum command line is enough to reproduce it:

cat digikam.pdf | PPD=Photosmart-Pro-B8800-series.ppd /usr/bin/gs -dSAFER -sDEVICE=cups -dDEVICEWIDTHPOINTS=303 -dDEVICEHEIGHTPOINTS=446 -_ > out.raster

Removing any more parameter now, or removing the PPD env var setting lets the segfault go away.
Comment 3 Till Kamppeter 2011-08-02 17:13:16 UTC
Especially removing the -dSAFER or -dPARANOIDSAFER from the sample command lines lets the segfault go away.

So the first Ghostscript command line works perfectly well without -dPARANOIDSAFER.
Comment 4 Chris Liddell (chrisl) 2011-08-02 17:17:27 UTC
Created attachment 7740 [details]
backtrace for full command line
Comment 5 Chris Liddell (chrisl) 2011-08-02 17:17:56 UTC
Created attachment 7741 [details]
backtrace for simplified command line
Comment 6 Chris Liddell (chrisl) 2011-08-03 16:56:34 UTC
Fixed in:
b5ef299133e7248ca88819d2fa446828e173ad24

in master,

and:
a26ed9754118ab5a6027346f2e4d0c41077dfc1c

In the gs904 branch.