FS#22006 - [ghostscript] Segmentation fault when joining serveral PDF files into one
Attached to Project:
Arch Linux
Opened by Musikolo (Musikolo) - Tuesday, 07 December 2010, 11:15 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 19 December 2010, 09:44 GMT
Opened by Musikolo (Musikolo) - Tuesday, 07 December 2010, 11:15 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 19 December 2010, 09:44 GMT
|
Details
* Description:
Hi, I've tried to join several PDF files into one by issuing the next command: gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf but I get a "Segmentation fault" message. I found the above command at http://www.linux.com/archive/feed/36815 * Additional info: - package version(s) ghostscript 9.00-1 * Steps to reproduce: Just issue the mentioned command. |
This task depends upon
Any PDF files are fine to reproduce this error, for instance, the next two files show the "Segmentation fault" message on my PC:
- https://wiki.mozilla.org/images/e/ed/Analyst_report_Q1_2010.pdf
- http://www.boe.es/boe/dias/2005/12/30/pdfs/A42905-43094.pdf
[musikolo@MyPC ~]$ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf A42905-43094.pdf Analyst_report_Q1_2010.pdf
Segmentation fault
Best regards!
I tested with other command line another pdf ( http://marketing.optomausa.com/PDFs/datasheets/Optoma_HD66_Datasheet.pdf ) and also fails.
gs -sDEVICE=png16m -sOutputFile=x -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q Optoma_HD66_Datasheet.pdf -c showpage -c quit
ghostscript 8.71 works OK
My time is limited now, can anyone report this to upstream? Thanks. http://bugs.ghostscript.com/
Done: http://bugs.ghostscript.com/show_bug.cgi?id=691827
Thanks for your support! ;)
I've tried my builds of v. 9.00 and the current development version
on Linux and Windows. The crash is not reproduced.
Please try to rebuild your gs and check how does it work.
- http://bugs.ghostscript.com/show_bug.cgi?id=691827#c2
Best regards-
It's been fixed upstream with a single line fix. It was relative to a GCC 4.5.1 issue (at least for x86_64). It may be interesting to backport that fix at least. Or maybe build ghostscript with an older GCC version. Clang also does not seem to be concerned by that problem.
[~]% gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf A42905-43094.pdf Analyst_report_Q1_2010.pdf
zsh: segmentation fault gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf
[~]% gs-svn -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf A42905-43094.pdf Analyst_report_Q1_2010.pdf
[~]%
That fix may be relative to other fixes thought.
Some minor cleanups have been made to the pkg, please test ghostsript 9.00-2 from testing. Both here reported issues are solved for me (x86_64).
Thanks for fixing it so quickly! ;-)