Menu

#7 GS fails to read the source PS file provided

v1.0_(example)
closed
None
1
2021-09-07
2021-09-06
No

When I try to process a PS file I get an invalidaccess error on run, reporting the name of the PS file that I supplied on the pstoedit command line. I've tried both just using the file name (executing pstoedit in the same directory), and using the full file path. If I supply the name of a file that doesn't exist pstoedit reports that (apparently before it gets as far as trying to call GS).

I note that GS both set SAFER as on by default in 9.50, and changed exactly what it does; I'm speculating that might be part of the issue here?

You'll see that I'm using -nb as well; if I don't I get an undefined error on .makeoperator. I don't think that's related.

pstoedit: version 3.71 / DLL interface 108 (built: Apr 1 2018 - release build - MS VC++ 1912 - 64-bit) : Copyright (C) 1993 - 2018 Wolfgang Glunz
running-win command line: C:\Program Files\gs\gs9.54.0\bin\gswin64c.exe -q -dNOBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS C:/Users/martinb/AppData/Local/Temp/psin25

*** WARNING - you have selected SAFER, indicating you want Ghostscript
to execute in a safer environment, but at the same time
have selected WRITESYSTEMDICT. Unless you use this option with
care and specifically, remember to execute code like:
"systemdict readonly pop"
it is possible that malicious code may be able to evade the
limited security offered by the SAFER option.
Error: /invalidfileaccess in --run--
Operand stack:
(C:/Users/martinb/GGSource/Hacks/DXF-contour/spottest.ps) (r)
Execution stack:
%interp_exit .runexec2 --nostringval-- run --nostringval-- 2 %stopped_push --nostringval-- run run false 1 %stopped_push 1990 1 3 %oparray_pop 1989 1 3 %oparray_pop 1977 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- run --nostringval-- 2 %stopped_push --nostringval-- 1990 1 3 %oparray_pop run
Dictionary stack:
--dict:736/1123(G)-- --dict:0/20(G)-- --dict:299/300(L)--
Current allocation mode is local
Last OS error: Permission denied
Current file position is 92953
GPL Ghostscript 9.54.0: Unrecoverable error, exit code 1
The interpreter seems to have failed, cannot proceed !

Discussion

  • Wolfgang Glunz

    Wolfgang Glunz - 2021-09-07
    • status: open --> closed
    • assigned_to: Wolfgang Glunz
     
  • Wolfgang Glunz

    Wolfgang Glunz - 2021-09-07

    This is fixed in later releases. Current release is 3.77.

     

Log in to post a comment.

MongoDB Logo MongoDB