--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: ps2ps + ps2epsi ceased to work
- From: Jens-Wolfhard Schicke <drahflow@gmx.de>
- Date: Tue, 26 Jun 2007 19:22:21 +0200
- Message-id: <46814B4D.6060101@gmx.de>
Package: gs-common
Version: 0.3.13
After using ps2ps to sanitize a PS file, applying ps2epsi on the same
file exits with code 0 (!) after outputting the following dump (I
shortened the \000 lines a bit further):
ERROR: /rangecheck in --.getbitsrect--
Operand stack:
-1 839 (\000\000\000\000\000\000\000\000...) --nostringval--
0 839 595 842 0 --nostringval--
(\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop
1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push --nostringval--
--nostringval-- --nostringval-- 840 1 3369 --nostringval--
%for_pos_int_continue --nostringval-- --nostringval-- 6 5
%oparray_pop --nostringval--
Dictionary stack:
--dict:1127/1686(ro)(G)-- --dict:0/20(G)-- --dict:105/200(L)--
--dict:26/30(L)-- --dict:26/30(L)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 815.03: Unrecoverable error, exit code 1
Actually ps2epsi produces an epsi file, but that file does not contain
any bounding box, and thus is not embeddable. Obviously it should not
crash, and secondly if it crashes, why does it not return an error code?
I tried with older versions of gs-common I still had in the archives,
and 0.3.11 did not have this bug.
Steps to reproduce the problem:
~/ps % cat wtf.ps
%!PS-Adobe-3.0 WTF
initclip newpath clippath pathbbox
/PageTop exch def
/PageRight exch def
/PageBottom exch def
/PageLeft exch def
/DefaultFont /Helvetica-Bold findfont
[300 0 0 300 0 0] makefont def
DefaultFont setfont
400 50 moveto
90 rotate
(WTF) show
showpage
~/ps % gv wtf.ps
~/ps % ps2ps wtf.ps wtf.tmp
~/ps % ps2epsi wtf.tmp wtf.epsi
< ... see above ... >
ESP Ghostscript 815.03: Unrecoverable error, exit code 1
~/ps % echo $? # huh?
0
~/ps % gv wtf.epsi # viewable, correct display
~/ps % vim wtf.epsi # but no bounding box
~/ps %
--- End Message ---