Bug 690132 - colorimage results in rangecheck on AMD64
Summary: colorimage results in rangecheck on AMD64
Status: RESOLVED FIXED
Alias: None
Product: Artifex GSview
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Linux
: P4 normal
Assignee: Russell Lang
URL: http://trac.crystalspace3d.org/trac/C...
Keywords:
Depends on: 689709
Blocks:
  Show dependency tree
 
Reported: 2008-10-23 12:29 UTC by Frank Richter
Modified: 2010-08-01 23:33 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
snap0.eps.gz -- local copy of the sample file. (26.89 KB, application/gzip)
2008-10-23 15:30 UTC, Alex Cherepanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Richter 2008-10-23 12:29:35 UTC
When displaying above EPS file with GS 8.63 through gsview on AMD64 Linux it
results in the following error:

GSview 4.8 2006-02-25
play_sound: not implemented
debug=0
Unknown in Comments section at line 5:
  %%DocumentFonts: (atend)

GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying DSC file
/home/res/sources/CS/docs/texinfo/usingcs/ownprojects/msvc7proj/snap0.eps
without pages
Error: /rangecheck in --colorimage--
Operand stack:
   --nostringval--  
(\335\333\2743B4\022Q%"R$"Q$"R%"R5"R5"R5"R5"R5"R5"b5"R5"b5"R5#b53b53b53b53b53b53b53b53RE3c63bF3c53cE3cF3cF3cF3cF3cF4cF3cF4cFDcF4cFDcFDsFDcFDtVDtVDtVDtWDtVDtWDtWDtWEtWEtWEtWUtWU\204WU\204WU\204WU\204WU\204gU\205gU\204gU\205gU\204gU\205hU\204gU\205hU\204...)
  4278190419
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   false
  1   %stopped_push   1905   1   3   %oparray_pop   1904   1   3   %oparray_pop
  1888   1   3   %oparray_pop   1771   1   3   %oparray_pop   --nostringval--  
%errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--
  2   %stopped_push   --nostringval--   1808   7   3   %oparray_pop
Dictionary stack:
   --dict:1147/1684(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--
Current allocation mode is local
Last OS error: 2

--- Begin offending input ---

--- End offending input ---
file offset = 4273
gsapi_run_string_continue returns -101


WM_GSTEXTINDEX not implemented

-- however, displaying the same file on Win32 (specifically, Wine) no problem
occurs. This suggests some problem on 64-bit platforms?
Comment 1 Alex Cherepanov 2008-10-23 15:30:34 UTC
Created attachment 4538 [details]
snap0.eps.gz  -- local copy of the sample file.

I confirm that the problem doesn't occur on 32-bit windows with
with gs8.63, or current dev. version under GSview 4.8 or gswin32c.exe .
Comment 2 Marcos H. Woehrmann 2008-10-24 21:56:10 UTC
I confirm this does happen on my amd64 Linux box.

However, calling Ghostcript 8.63 from the command line does not produce the error (at least not with the 
options I've tried).
Comment 3 Ray Johnston 2008-10-30 09:46:19 UTC
Assigning to Russell since we can't reproduce this with the ghostscript
command line.
Comment 4 Hin-Tak Leung 2010-06-08 20:24:36 UTC
This appears to be the same/similiar to Bug 689709 - a range check in image/colorimage which is specific to the 64-bit gsview environment, around gs 8.62/8.63 . Probably can be looked at together.
Comment 5 Hin-Tak Leung 2010-08-01 23:33:57 UTC
64-bit gsview 4.9 + gs 8.71 no longer show problem this file.