Bug 230699 - ps2epsi invalidfileaccess
Summary: ps2epsi invalidfileaccess
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Writer (show other bugs)
Version: master
Hardware: All All
: P2 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-01 05:48 UTC by Jack Moffitt
Modified: 2007-12-13 12:55 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Moffitt 2001-02-01 05:48:28 UTC
Originally reported by: schlut@users.sourceforge.net
The following error occures while trying to use ps2epsi that
came with ghostscript 6.50  It works correctly in ghostscript 6.01.  The operating system is sparc
Solaris 2.6.

$ ps2epsi figure1.prn
Error: /invalidfileaccess in (w)
Operand stack:
   (figure1.prn.epsi)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3
%oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--
 2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   2   4
   %oparray_pop   --nostringval--   --nostringval--
Dictionary stack:
   --dict:986/1476(ro)(G)--   --dict:0/20(G)--   --dict:67/200(L)--   --dict:14/
30(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 8658
AFPL Ghostscript 6.50: Unrecoverable error, exit code 1
sed: command garbled: /^%%BeginPreview:/,/^%%EndPreview[

The file produces is called figure1.prn.epsi and contains
the following:

save countdictstack mark newpath /showpage {} def /setpagedevice {pop} def
%%EndProlog
%%Page 1 1
%%Trailer
cleartomark countdictstack exch sub { end } repeat restore
%%EOF

I can provide the file figure1.prn and further information
if needed.
Comment 1 Alex Cherepanov 2001-04-02 21:38:41 UTC
Comment originally by alexcher@users.sourceforge.net
Logged In: YES 
user_id=65750

Fixed: -dDELAYSAFER flag added; concatenation operator fixed
in Windows and OS/2 scripts. See the diff file.
Comment 2 Alex Cherepanov 2001-04-03 22:51:21 UTC
Comment originally by alexcher@users.sourceforge.net
Logged In: YES 
user_id=65750

Commited to HEAD and GS_6_5 brances incliding
the fix for sed script.