[Bug-gs] bug in gs 7.04 ?

Ray Johnston ray@artifex.com
Wed, 20 Feb 2002 11:36:43 -0800


Dear Pavel,

The file is damaged. When I attempt to read this with Adobe Acrobat
Reader 5, it first performs a "Rebuild" which tells me that AR5
also encountered an invalid xref table. Then AR5 gets a fatal error
while processing the page and cannot display it.

It may be that this file has been subjected to unix2dos line end
conversion. I did see that some of the Flate compressed streams
had suspicious looking <0d> characters before <0a> characters
in what is supposed to be binary data.

Regards,
Ray
_______________________________________________________________________

Pavel.Pokorny@vscht.cz wrote:
> 
>    Dear maintainer of gs
> 
> thank you for gs 7.04 very much.
> Enclosed please find details of one problem.
> 
> --
> Pavel Pokorny
> Math Dept, Prague Institute of Chemical Technology
> http://staffold.vscht.cz/mat/Pavel.Pokorny
> 
> ------------------------------------------------------------------------
> Symptoms:
> 
> The file fail.pdf can be found at
>     http://staffold.vscht.cz/mat/Pavel.Pokorny/fail.pdf
> and it has 125978 bytes.
> 
> $ gs fail.pdf
> AFPL Ghostscript 7.04 (2002-01-31)
> Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> Error: /syntaxerror in readxref
> Operand stack:
> 
> Execution stack:
>    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   %loop_continue   --nostringval--   --nostringval--   --nostringval--
> Dictionary stack:
>    --dict:1005/1123(ro)(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:71/200(L)--   --dict:97/127(ro)(G)--   --dict:220/230(ro)(G)--   --dict:16/24(L)--
> Current allocation mode is local
> AFPL Ghostscript 7.04: Unrecoverable error, exit code 1
> ------------------------------------------------------------------------
> Ghostscript version (or include output from "gs -h"): 7.04
> ------------------------------------------------------------------------
> Where you got Ghostscript:
> http://www.cs.wisc.edu/~ghost/doc/AFPL/get704.htm
> ------------------------------------------------------------------------
> Hardware system you are using (including printer model if the problem
> involves printing): hp 9000/712
> ------------------------------------------------------------------------
> Operating system you are using: HP-UX 10.20
> ------------------------------------------------------------------------
> If you are using X Windows, and your problem involved output to the
> screen, the output from running xdpyinfo and xwininfo:
> 
> name of display:    math.vscht.cz:0.0
> version number:    11.0
> vendor string:    Hewlett-Packard Company
> vendor release number:    600000
> maximum request size:  4194300 bytes
> motion buffer size:  100
> bitmap unit, bit order, padding:    32, MSBFirst, 32
> image byte order:    MSBFirst
> number of supported pixmap formats:    3
> supported pixmap formats:
>     depth 1, bits_per_pixel 1, scanline_pad 32
>     depth 8, bits_per_pixel 8, scanline_pad 32
>     depth 16, bits_per_pixel 16, scanline_pad 32
> keycode range:    minimum 16, maximum 150
> focus:  window 0x400000e, revert to PointerRoot
> number of extensions:    22
>     BIG-REQUESTS
>     DOUBLE-BUFFER
>     DPMS
>     Get-RGB-Image
>     HP-COLOR-RECOVERY
>     HPExtension
>     LBX
>     MIT-SHM
>     MIT-SUNDRY-NONSTANDARD
>     Multi-Buffering
>     RECORD
>     SECURITY
>     SHAPE
>     SLSd
>     SYNC
>     X3D-PEX
>     XC-APPGROUP
>     XC-MISC
>     XIE
>     XInputExtension
>     XTEST
>     XTestExtension1
> default screen number:    0
> number of screens:    1
> 
> screen #0:
>   dimensions:    1280x1024 pixels (342x273 millimeters)
>   resolution:    95x95 dots per inch
>   depths (3):    1, 8, 16
>   root window id:    0x24
>   depth of root window:    8 planes
>   number of colormaps:    minimum 1, maximum 2
>   default colormap:    0x22
>   default number of colormap cells:    256
>   preallocated pixels:    black 0, white 1
>   options:    backing-store YES, save-unders YES
>   largest cursor:    64x64
>   current input event mask:    0x30003c
>     ButtonPressMask          ButtonReleaseMask        EnterWindowMask
>     LeaveWindowMask          SubstructureRedirectMask FocusChangeMask
>   number of visuals:    2
>   default visual id:  0x20
>   visual:
>     visual id:    0x20
>     class:    PseudoColor
>     depth:    8 planes
>     available colormap entries:    256
>     red, green, blue masks:    0x0, 0x0, 0x0
>     significant bits in color specification:    8 bits
>   visual:
>     visual id:    0x21
>     class:    TrueColor
>     depth:    8 planes
>     available colormap entries:    8 per subfield
>     red, green, blue masks:    0xe0, 0x1c, 0x3
>     significant bits in color specification:    8 bits
> 
> ------------------------------------------------------------------------
> xwininfo: Please select the window about which you
>           would like information by clicking the
>           mouse in that window.
> 
> xwininfo: Window id: 0x400000e "lovesongs3.mp3"
> 
>   Absolute upper-left X:  21
>   Absolute upper-left Y:  45
>   Relative upper-left X:  0
>   Relative upper-left Y:  0
>   Width: 984
>   Height: 964
>   Depth: 8
>   Visual Class: PseudoColor
>   Border width: 0
>   Class: InputOutput
>   Colormap: 0x22 (installed)
>   Bit Gravity State: NorthWestGravity
>   Window Gravity State: NorthWestGravity
>   Backing Store State: NotUseful
>   Save Under State: no
>   Map State: IsViewable
>   Override Redirect State: no
>   Corners:  +21+45  -275+45  -275-15  +21-15
>   -geometry 98x48+15-9
> ------------------------------------------------------------------------
> C compiler you are using, including its version, if you compiled
> Ghostscript yourself: gcc 3.0.1
> ------------------------------------------------------------------------
> If you compiled Ghostscript yourself, changes you made to the makefiles:
> none
> ------------------------------------------------------------------------
> Environment variables:
> 
> $ echo $GS_DEVICE
> 
> $ echo $GS_FONTPATH
> 
> $ echo $GS_LIB
> 
> $ echo $GS_OPTIONS
> 
> ------------------------------------------------------------------------
> Command line:
> $ gs fail.pdf
> ------------------------------------------------------------------------
> URL or FTP location of test files (include the data at the end of this
> form if 500K or less):
>     http://staffold.vscht.cz/mat/Pavel.Pokorny/fail.pdf
> ------------------------------------------------------------------------
> Suggested fix, if any:
> ?
> ------------------------------------------------------------------------
> Other comments:
>     Thank you for Ghostscript very much.
> ------------------------------------------------------------------------
> 
> Copyright  1996, 2001 artofcode LLC. All rights reserved.
> 
> This file is part of AFPL Ghostscript. See the Aladdin Free Public License
> (the "License") for full details of the terms of using, copying, modifying,
> and redistributing AFPL Ghostscript.
> 
> Ghostscript version 7.04, 31 January 2002
> _______________________________________________
> Bug-gs mailing list
> Bug-gs@ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/bug-gs