After upgrading ghostscript from 9.55.0-2.fc35 to 9.56.1-1.fc35, a perl-PDF-Builder fails. The reason is that ghostscript fails like this: $ ls -l /tmp/test.pdf -rw-r--r--. 1 petr petr 1361 1. zář 16.20 /tmp/test.pdf $ gs -q -dNOPAUSE -dBATCH -sDEVICE=pnggray -g20x20 -dPDFFitPage -sOutputFile=/tmp/out.png /tmp/test.pdf Error: /typecheck in --runpdf-- Operand stack: --dict:6/14(L)-- --dict:6/14(L)-- --dict:6/14(L)-- MediaBox --nostringval-- 20.0 20.0 20.0 20.0 false 20.0 2 Execution stack: %interp_exit .runexec2 --nostringval-- runpdf --nostringval-- 2 %stopped_push --nostringval-- runpdf runpdf false 1 %stopped_push 1974 1 3 %oparray_pop 1973 1 3 %oparray_pop 1961 1 3 %oparray_pop 1962 1 3 %oparray_pop runpdf runpdf 2 1 1 runpdf %for_pos_int_continue runpdf runpdf runpdf Dictionary stack: --dict:764/1123(ro)(G)-- --dict:0/20(G)-- --dict:76/200(L)-- --dict:18/20(L)-- Current allocation mode is local Last OS error: No such file or directory GPL Ghostscript 9.56.1: Unrecoverable error, exit code 1 If I remove -dPDFFitPage option, the command succeeds.
Created attachment 1908973 [details] test.pdf
A plain display works "gs /tmp/test.pdf". With the -dPDFFitPage option ( gs -dPDFFitPage /tmp/test.pdf) I receive SIGABRT: GPL Ghostscript 9.56.1 (2022-04-04) Copyright (C) 2022 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. Processing pages 1 through 1. Error: /typecheck in --runpdf-- Operand stack: --dict:6/14(L)-- --dict:6/14(L)-- --dict:6/14(L)-- MediaBox --nostringval-- 20.0 20.0 594.268 841.607 false 841.607 2 Execution stack: %interp_exit .runexec2 --nostringval-- runpdf --nostringval-- 2 %stopped_push --nostringval-- runpdf runpdf false 1 %stopped_push 1974 1 3 %oparray_pop 1973 1 3 %oparray_pop 1961 1 3 %oparray_pop 1962 1 3 %oparray_pop runpdf runpdf 2 1 1 runpdf %for_pos_int_continue runpdf runpdf runpdf Dictionary stack: --dict:763/1123(ro)(G)-- --dict:0/20(G)-- --dict:76/200(L)-- --dict:18/20(L)-- Current allocation mode is local Last OS error: Resource temporarily unavailable GPL Ghostscript 9.56.1: Unrecoverable error, exit code 1 free(): double free detected in tcache 2
For your information this happens also in Fedora 38 (when I install an F37 build there).
Same problem on F36 with the build from updates-testing. Apparantly, this is a problem with the new PDF interpreter, as things work with "-dNEWPDF=false".
Filed upstream as: https://bugs.ghostscript.com/show_bug.cgi?id=705849
What an incredibly fast upstream! They fixed this on the master branch. Here are copr builds with a backport: https://copr.fedorainfracloud.org/coprs/mjg/ghostscript/ I'll submit this as a dist-git PR asap. (Fix works on F36 at least.)
FEDORA-2022-9538525c97 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9538525c97
FEDORA-2022-bf9ccbb1d1 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-bf9ccbb1d1
FEDORA-2022-f8c697678c has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f8c697678c
FEDORA-2022-bf9ccbb1d1 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-bf9ccbb1d1` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-bf9ccbb1d1 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-f8c697678c has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-f8c697678c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-f8c697678c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-9d6c59dcba has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9d6c59dcba
FEDORA-2022-9538525c97 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-9d6c59dcba has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-9d6c59dcba` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-9d6c59dcba See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-f8c697678c has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-bf9ccbb1d1 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-9d6c59dcba has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.