Bug 691740 - Error: /rangecheck in --run-- reading PDF file
Summary: Error: /rangecheck in --run-- reading PDF file
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: master
Hardware: All All
: P2 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 03:12 UTC by Marcos H. Woehrmann
Modified: 2010-11-04 06:29 UTC (History)
0 users

See Also:
Customer: 384
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2010-10-29 03:12:20 UTC
Ghostscript head (r11864) produces a Error: /rangecheck in --run-- when trying to read page 100 of the attached pdf file, earlier versions of Ghostscript can't read this file either.  Apple Preview, evince, and mupdf can all read the entire file, but Adobe Acrobat 9 has problem with page 100 as well.

The command line I'm using for testing:

  bin/gs -sDEVICE=ppmraw -o test.ppm ./14537248.PDF
Comment 2 Marcos H. Woehrmann 2010-10-29 03:14:41 UTC
Here's the tail of -dPDFDEBUG output:

.
.
.
/R6169 7.69543 Tf
%Resolving: [6214 0]
%Resolving: [6169 0]
50.3705 -0.0065625 Td
(!) Tj
/R6165 7.69543 Tf
%Resolving: [6214 0]
%Resolving: [6165 0]
2.79844 0.0065625 Td
[
(H) 0.441618 (O) 0.443521 (L) 0.451135 (L) 0.453039 (O) 0.441618 (W) 0.441618 (A) 0.447328 (Y) 0.445425 (,) 0.45875 ( ) 0.451135 (L) 0.454942 (I) 0.439714 (S) 0.441618 (A) 776 ]
TJ
ET
Q
Q
q
771.887 123.016 m
853.504 123.016 l
853.504 210.469 l
771.887 210.469 l
h
W
n
q
83.2 0 0 88.2 770.9 122.9 cm
/R6211 Do
%Resolving: [6213 0]
%Resolving: [6211 0]
%Resolving: [-1 0]
Error: /rangecheck in --run--
Operand stack:
   --dict:10/19(L)--   --dict:11/19(L)--   --dict:0/17(L)--   -1   0   -1   511   --nostringval--   8388607
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1894   1   3   %oparray_pop   1893   1   3   %oparray_pop   1877   1   3   %oparray_pop   --nostringval--   --nostringval--   101   1   100   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   false   1   %stopped_push   --nostringval--   %loop_continue   --nostringval--   574216   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1152/1684(ro)(G)--   --dict:1/20(G)--   --dict:82/200(L)--   --dict:82/200(L)--   --dict:108/127(ro)(G)--   --dict:295/300(ro)(G)--   --dict:23/30(L)--   --dict:6/8(L)--   --dict:21/40(L)--   --dict:1/1(ro)(G)--   --dict:1/1(ro)(G)--   --dict:1/1(ro)(G)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript SVN PRE-RELEASE 9.01: Unrecoverable error, exit code 1
Exit 1
Comment 3 Alex Cherepanov 2010-10-30 03:43:36 UTC
The PDF file is incorrect. It has an indirect reference to -1 0 R .
Rev 11876 considers such reference as null and issues a warning.