[Bug 696814] New: ghostscript crash rendering PDF from ps2pdf
https://bugzilla.novell.com/show_bug.cgi?id=696814 https://bugzilla.novell.com/show_bug.cgi?id=696814#c0 Summary: ghostscript crash rendering PDF from ps2pdf Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: volker3204@paradise.net.nz QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/4.6; Linux) KHTML/4.6.0 (like Gecko) SUSE ghostscript dies reading its own PDF created with ps2pdf from a PS created with enscript. Reproducible: Always Steps to Reproduce: #!/bin/sh -x # openSUSE 11.4, all updates installed, x86_64 echo "This resulting PDF will segfault ghostscript" date >test-gs enscript --media=A4 --output=- --mark-wrapped-lines=arrow --ps-level=1 \ --font=Courier10 --baselineskip 1.0 --columns=1 --portrait --marg=50 \ --header='test-gs|$D{%a %d-%h-%Y %T}|Page $% of $= ' \ --no-header --title=test-gs test-gs \ > test-gs.ps ps2pdf14 -sPAPERSIZE=a4 -dFIXEDMEDIA -dPDFSETTINGS=/printer \ -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true \ -dCompressFonts=true -dUseCIEColor -dHaveTrueTypes=true \ -dHaveTransparency=true \ test-gs.ps echo "(test-gs.pdf)run" | gs Save to file or run directly. Output: > sh -x gs-crash.sh + echo 'This resulting PDF will segfault ghostscript' This resulting PDF will segfault ghostscript + date + enscript --media=A4 --output=- --mark-wrapped-lines=arrow --ps-level=1 --font=Courier10 --baselineskip 1.0 --columns=1 --portrait --marg=50 '--header=test-gs|$D{%a %d-%h-%Y %T}|Page $% of $= ' --no-header --title=test-gs test-gs [ 1 pages * 1 copy ] left in - + ps2pdf14 -sPAPERSIZE=a4 -dFIXEDMEDIA -dPDFSETTINGS=/printer -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -dCompressFonts=true -dUseCIEColor -dHaveTrueTypes=true -dHaveTransparency=true test-gs.ps + echo '(test-gs.pdf)run' + gs GPL Ghostscript 9.00 (2010-09-14) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file COPYING for details. GS>Processing pages 1 through 1. Page 1 gs-crash.sh: line 15: 3946 Done echo "(test-gs.pdf)run" 3947 Segmentation fault | gs Exit 139 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=696814 https://bugzilla.novell.com/show_bug.cgi?id=696814#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |jsmeix@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=696814 https://bugzilla.novell.com/show_bug.cgi?id=696814#c1 Volker Kuhlmann <volker3204@paradise.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |volker3204@paradise.net.nz --- Comment #1 from Volker Kuhlmann <volker3204@paradise.net.nz> 2011-06-03 23:48:43 UTC --- I narrowed down the problem. It's related to -dUseCIEColor. I use a script ps2pdf-print, which runs ps2pdf for output aimed at high quality printing (and archiving). Hence -dPDFSETTINGS=/printer, which implies -sColorConversionStrategy=UseDeviceIndependentColor, which generates a gs warning GPL Ghostscript 9.00: Set UseCIEColor for UseDeviceIndependentColor to work properly. See /usr/share/ghostscript/9.00/doc/Ps2pdf.htm
echo "(test-gs.pdf)run" | gs GPL Ghostscript 9.00 (2010-09-14) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file COPYING for details. GS>Processing pages 1 through 1. Page 1 Segmentation fault Exit 139
-dUseCIEColor=false produces a gs warning, but the resulting pdf can be processed by gs, okular, acroread. -dUseCIEColor=true removes the gs warning, but the resulting pdf is hugely(!) bigger (43%), and crashes gs, but shows in okular and acroread. And GPL Ghostscript 8.62 (2008-02-29) (of oS 11.1) So, ghostscript bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=696814 https://bugzilla.novell.com/show_bug.cgi?id=696814#c2 --- Comment #2 from Volker Kuhlmann <volker3204@paradise.net.nz> 2011-06-03 23:52:27 UTC --- Yep: http://bugs.ghostscript.com/show_bug.cgi?id=691883 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=696814 https://bugzilla.novell.com/show_bug.cgi?id=696814#c3 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform|Other |All Version|Factory |Final Resolution| |UPSTREAM Summary|ghostscript crash rendering |ghostscript crash rendering |PDF from ps2pdf |PDF from ps2pdf if | |"UseCIEColor true" is used OS/Version|Other |openSUSE 11.4 --- Comment #3 from Johannes Meixner <jsmeix@novell.com> 2011-06-07 07:23:52 UTC --- Volker Kuhlmann, very many thanks for your analysis! Accordingly I close this report as "upstream". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com