With v9.56.1:
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pnggray -g20x20 -dPDFFitPage -dUseCropBox -sOutputFile=out.png out.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 1990 1 3 %oparray_pop 1989 1 3 %oparray_pop 1977 1 3 %oparray_pop 1978 1 3 %oparray_pop runpdf runpdf 2 1 1 runpdf %for_pos_int_continue runpdf runpdf runpdf
Dictionary stack:--dict:765/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 free(): double free detected in tcache 2As ghostscript is only used by the tests for comparison purposes, and this does not affect the output of libpdf-builder-perl, I propose that we forward this to ghostscript and skip these two tests until we have a fix.
out.pdf
Description: Adobe PDF document
OpenPGP_signature
Description: OpenPGP digital signature