Bug 689776 - PDF causing crash - "Error: /typecheck in --astore--"
Summary: PDF causing crash - "Error: /typecheck in --astore--"
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: 8.62
Hardware: PC Windows XP
: P4 normal
Assignee: Default assignee
URL:
Keywords:
: 689873 689921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-01 06:08 UTC by Shaun Wilde
Modified: 2008-12-19 08:31 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments
PDF that causes issue described (171.96 KB, application/pdf)
2008-04-01 06:10 UTC, Shaun Wilde
Details
patch (760 bytes, patch)
2008-04-06 00:10 UTC, Alex Cherepanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***