Bug 691902 - /ioerror in --image-- when rendering the given ps file
Summary: /ioerror in --image-- when rendering the given ps file
Status: RESOLVED INVALID
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 07:24 UTC by Jonathan Nieder
Modified: 2014-02-17 04:39 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
rebate ticket provoking /ioerror (99.31 KB, application/postscript)
2011-01-23 07:25 UTC, Jonathan Nieder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Nieder 2011-01-23 07:24:10 UTC
The attached ps file, generated by xpdf, causes an /ioerror during
rendering.  Details:

Tim Morgan <tim-debian@sentinelchicken.org> wrote:

> ERROR: /ioerror in --image--

Thanks for a clear test case.

[...]
> Last OS error: 2
> Current file position is 94506

I get error 11. Same file offset, somewhere in the middle of the image.

Reproducible with r12035 and 9.00.  Tim tried gs-esp 8.15.3
and gs-gpl of the same vintage.
See http://bugs.debian.org/458008 for the original report.

Ideas?

Reproduction recipe:
1. gs -dSAFER Shuttle56-101-038Dec03Dec3107tl24.ps

Expected result:
Shows a rebate ticket.

Actual result:
Starts to draw a ticket, then exits.

Error: /ioerror in --image--
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop   1909   1   3   %oparray_pop   1893   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   1814   1   8   %oparray_pop
Dictionary stack:
   --dict:1152/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--   --dict:65/75(L)--   --dict:18/25(L)--   --dict:0/15(L)--   --dict:8/15(L)--   --dict:0/15(L)--
Current allocation mode is local
Last OS error: 11
Current file position is 94506
GPL Ghostscript SVN PRE-RELEASE 9.01: Unrecoverable error, exit code 1
Comment 1 Jonathan Nieder 2011-01-23 07:25:29 UTC
Created attachment 7148 [details]
rebate ticket provoking /ioerror
Comment 2 Ken Sharp 2011-01-23 11:59:16 UTC
I haven't investigated in detail, but Adobe Acrobat Distiller *also* gives an error on this file:

%%[ Error: ioerror; OffendingCommand: imageDistiller; ErrorInfo: DCTDecodeFilter Input did not begin with a JPEG SOI marker ]%%

Stack:
-dict-


%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%

SO it looks like the image data in the file is potentially not valid.
Comment 3 Jonathan Nieder 2011-01-23 12:18:17 UTC
Thanks, Ken. In that case I think this should be investigated from the xpdf side. I'd suggest closing this bug for now.
Comment 4 Ray Johnston 2011-01-23 17:48:27 UTC
Thanks, Ken. Closing as invalid.