Bug 689776

Summary: PDF causing crash - "Error: /typecheck in --astore--"
Product: Ghostscript Reporter: Shaun Wilde <shaun_wilde>
Component: GeneralAssignee: Default assignee <ghostpdl-bugs>
Status: NOTIFIED FIXED    
Severity: normal CC: faxguy, leonidas
Priority: P4    
Version: 8.62   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---
Attachments: PDF that causes issue described
patch

Description Shaun Wilde 2008-04-01 06:08:15 UTC
I have a PDF that causes ghostscript to crash thus

(I can send the PDF - can't see if it is possible to attach PDF to this item)

Processing pages 1 through 1.
Page 1
Error: /typecheck in --astore--
Operand stack:
   --nostringval--   --dict:12/21(L)--   1011.86   657.099   6372   2   11   0
 1
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push   1905   1   3   %oparray_pop   1904   1   3   %oparray_
pop   1888   1   3   %oparray_pop   --nostringval--   --nostringval--   2   1
1   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--
  --nostringval--   --nostringval--   %array_continue   --nostringval--   false
  1   %stopped_push   --nostringval--   %loop_continue   --nostringval--   eofil
l   (pattern accumulator)   4   %pattern_paint_finish   --nostringval--   --nost
ringval--   (gstatetype)   --dict:0/0(L)--   --nostringval--   false   1   %stop
ped_push   --nostringval--   %loop_continue   --nostringval--
Dictionary stack:
   --dict:1146/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--   --dict:75
/200(L)--   --dict:108/127(ro)(G)--   --dict:275/300(ro)(G)--   --dict:22/25(L)-
-   --dict:4/6(L)--   --dict:22/40(L)--   --dict:7/8(L)--   --dict:5/8(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.62: Unrecoverable error, exit code 1
Comment 1 Shaun Wilde 2008-04-01 06:10:16 UTC
Created attachment 3909 [details]
PDF that causes issue described
Comment 2 Alex Cherepanov 2008-04-06 00:10:53 UTC
Created attachment 3919 [details]
patch

Fix PDF empty stack offset (/pdfemptycount) in the pattern. Operator scn
depends
on the correct value of /pdfemptycount. This bug was introduced in the rev.
8308.
Comment 3 Alex Cherepanov 2008-04-06 01:02:32 UTC
The patch is committed as a rev. 8625.
Regression testing shows no differences; we had no files that exercise scn
inside a pattern stream.

Rev. 8626 adds a PDF file based on the sample pattern from PLRM that exercises
scn operator inside a tiling pattern stream.

Comment 4 Alex Cherepanov 2008-05-27 18:47:23 UTC
*** Bug 689873 has been marked as a duplicate of this bug. ***
Comment 5 Alex Cherepanov 2008-06-25 07:59:25 UTC
*** Bug 689921 has been marked as a duplicate of this bug. ***