apple / cups

Apple CUPS Sources
https://www.cups.org
Apache License 2.0
1.95k stars 464 forks source link

Another PDF file which ESP GhostScript does not display/print #823

Closed michaelrsweet closed 19 years ago

michaelrsweet commented 20 years ago

Version: 7.07-current CUPS.org User: till.kamppeter

Original report (file referred to is attached to this report):


Hi, Till

This file crash when I use gs:

http://market.mandrakesoft.com/private/Mandrakeonline/MDKonlineFR.pdf

ESP Ghostscript 7.07 (2003-11-19) Copyright 2003 artofcode LLC and Easy Software Products, all rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 4. Page 1 Segmentation fault

Could you look at it please.


XPDF and Acrobat Reader display the file without problems.

michaelrsweet commented 20 years ago

CUPS.org User: till.kamppeter

Here is a backtrace done with gdb:


[root@majax p]# gs -sDEVICE=x11 /home/test/MDKonlineFR.pdf ESP Ghostscript 7.07 (2003-11-19) Copyright 2003 artofcode LLC and Easy Software Products, all rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 4. Page 1 Loading NimbusSanL-Bold font from /usr/share/fonts/default/Type1/n019004l.pfb... 2186548 781170 1682900 381901 2 done. Using NimbusSansL-Bold font for NimbusSanL-Bold. Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 2303692 899046 1682900 391509 2 done. Using NimbusSansL-Regu font for NimbusSanL-Regu. Segmentation fault (core dumped)

[root@majax p]# gdb -c core.12793 /usr/bin/gs GNU gdb 6.0-2mdk (Mandrake Linux) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-mandrake-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `gs -sDEVICE=x11 /home/test/MDKonlineFR.pdf'. Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /usr/lib/libgmodule-1.2.so.0...done. Loaded symbols for /usr/lib/libgmodule-1.2.so.0 Reading symbols from /usr/lib/libglib-1.2.so.0...done. Loaded symbols for /usr/lib/libglib-1.2.so.0 Reading symbols from /lib/libdl.so.2... Reading symbols from /usr/lib/debug//lib/libdl-2.3.3.so.debug...done. done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libstdc++.so.6...done. Loaded symbols for /usr/lib/libstdc++.so.6 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /usr/lib/libgimpprint.so.1...done. Loaded symbols for /usr/lib/libgimpprint.so.1 Reading symbols from /usr/lib/libttf.so.2...done. Loaded symbols for /usr/lib/libttf.so.2 Reading symbols from /usr/lib/libfontconfig.so.1...done. Loaded symbols for /usr/lib/libfontconfig.so.1 Reading symbols from /usr/lib/libfreetype.so.6...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/lib/libpng.so.3...done. Loaded symbols for /usr/lib/libpng.so.3 Reading symbols from /usr/lib/libcupsimage.so.2...done. Loaded symbols for /usr/lib/libcupsimage.so.2 Reading symbols from /usr/lib/libcups.so.2...done. Loaded symbols for /usr/lib/libcups.so.2 Reading symbols from /lib/tls/libm.so.6... ---Type to continue, or q to quit--- Reading symbols from /usr/lib/debug//lib/tls/libm-2.3.3.so.debug...done. done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /usr/lib/libtiff.so.3...done. Loaded symbols for /usr/lib/libtiff.so.3 Reading symbols from /usr/lib/libjpeg.so.62...done. Loaded symbols for /usr/lib/libjpeg.so.62 Reading symbols from /usr/lib/libssl.so.0.9.7...done. Loaded symbols for /usr/lib/libssl.so.0.9.7 Reading symbols from /usr/lib/libcrypto.so.0.9.7...done. Loaded symbols for /usr/lib/libcrypto.so.0.9.7 Reading symbols from /lib/libnsl.so.1... Reading symbols from /usr/lib/debug//lib/libnsl-2.3.3.so.debug...done. done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/tls/libc.so.6... Reading symbols from /usr/lib/debug//lib/tls/libc-2.3.3.so.debug...done. done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /usr/lib/libexpat.so.0...done. Loaded symbols for /usr/lib/libexpat.so.0 Reading symbols from /usr/lib/ghostscript/7.07/X11.so...done. Loaded symbols for /usr/lib/ghostscript/7.07/X11.so Reading symbols from /usr/X11R6/lib/libXt.so.6...done. Loaded symbols for /usr/X11R6/lib/libXt.so.6 Reading symbols from /usr/X11R6/lib/libSM.so.6...done. Loaded symbols for /usr/X11R6/lib/libSM.so.6 Reading symbols from /usr/X11R6/lib/libICE.so.6...done. Loaded symbols for /usr/X11R6/lib/libICE.so.6 Reading symbols from /usr/X11R6/lib/libXext.so.6...done. Loaded symbols for /usr/X11R6/lib/libXext.so.6 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /lib/libnss_files.so.2... Reading symbols from /usr/lib/debug//lib/libnss_files-2.3.3.so.debug...done. done. Loaded symbols for /lib/libnss_files.so.2 ---Type to continue, or q to quit--- Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done. Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2

0 0x082cbaa3 in gx_device_retain (dev=0x811cabc, retained=1)

at ./src/gsdevice.c:438

438 ./src/gsdevice.c: No such file or directory. in ./src/gsdevice.c (gdb) bt

0 0x082cbaa3 in gx_device_retain (dev=0x811cabc, retained=1)

at ./src/gsdevice.c:438

1 0x0813e86c in gx_begin_image3x_generic (dev=0x8b2074c, pis=0x89f8a24,

pmat=0x89f8a88, pic=0xbfffe600, prect=0x0, pdcolor=0x8b2e290,
pcpath=0x8b2e114, mem=0x89e64a4, make_mid=0x813efbc <make_midx_default>,
make_mcde=0x813f11f <make_mcdex_default>, pinfo=0xbfffe578)
at ./src/gximag3x.c:329

2 0x0813f283 in gx_begin_image3x (dev=0x8b2074c, pis=0x89f8a24, pmat=0x0,

pic=0xbfffe600, prect=0x0, pdcolor=0x8b2e290, pcpath=0x8b2e114,
mem=0x89e64a4, pinfo=0xbfffe578) at ./src/gximag3x.c:566

3 0x0831ffa6 in gx_default_begin_typed_image (dev=0x8b2074c, pis=0x89f8a24,

pmat=0x0, pic=0xbfffe600, prect=0x0, pdcolor=0x8b2e290, pcpath=0x8b2e114,
memory=0x89e64a4, pinfo=0xbfffe578) at ./src/gdevddrw.c:633

4 0x0814475d in pdf14_begin_typed_image (dev=0x8b13024, pis=0x89f8a24,

pmat=0x0, pic=0xbfffe600, prect=0x0, pdcolor=0x8b2e290, pcpath=0x8b2e114,
mem=0x89e64a4, pinfo=0xbfffe578) at ./src/gdevp14.c:877

5 0x082d56a4 in gs_image_begin_typed (pic=0xbfffe600, pgs=0x89f8a24,

uses_color=0, ppie=0xbfffe578) at ./src/gsimage.c:168

6 0x08112a4c in zimage_setup (i_ctx_p=0x8a091f0, pim=0xbfffe600,

sources=0xbfffe5b4, uses_color=0, npop=1) at ./src/zimage.c:151

7 0x0813d248 in zimage3x (i_ctx_p=0x8a091f0) at ./src/ztrans.c:364

8 0x080e5666 in interp (pi_ctx_p=0x874dc04, pref=0xbfffed40,

perror_object=0xbfffeeb8) at ./src/interp.c:1121

9 0x080e3df2 in gs_call_interp (pi_ctx_p=0x874dc04, pref=0xbfffedf8,

---Type to continue, or q to quit--- user_errors=1, pexit_code=0xbfffeec4, perror_object=0xbfffeeb8) at ./src/interp.c:486

10 0x080e3c57 in gs_interpret (pi_ctx_p=0x874dc04, pref=0xbfffedf8,

user_errors=1, pexit_code=0xbfffeec4, perror_object=0xbfffeeb8)
at ./src/interp.c:444

11 0x080d988b in gs_main_interpret (minst=0x874da00, pref=0xbfffee30,

user_errors=1, pexit_code=0xbfffeec4, perror_object=0xbfffeeb8)
at ./src/imain.c:292

12 0x080da3c4 in gs_main_run_string_end (minst=0x874da00, user_errors=1,

pexit_code=0xbfffeec4, perror_object=0xbfffeeb8) at ./src/imain.c:593

13 0x080da278 in gs_main_run_string_with_length (minst=0x874da00,

str=0x8b1d478 "<2f686f6d652f746573742f4d444b6f6e6c696e6546522e706466>.runfile", length=62, user_errors=1, pexit_code=0xbfffeec4, perror_object=0xbfffeeb8)
at ./src/imain.c:551

14 0x080da1cb in gs_main_run_string (minst=0x874da00,

str=0x8b1d478 "<2f686f6d652f746573742f4d444b6f6e6c696e6546522e706466>.runfile", user_errors=1, pexit_code=0xbfffeec4, perror_object=0xbfffeeb8)
at ./src/imain.c:533

15 0x080dcd18 in run_string (minst=0x874da00,

str=0x8b1d478 "<2f686f6d652f746573742f4d444b6f6e6c696e6546522e706466>.runfile", options=3) at ./src/imainarg.c:768

16 0x080dccd9 in runarg (minst=0x874da00, pre=0x833de5b "",

arg=0xbffffa99 "/home/test/MDKonlineFR.pdf", post=0x833def5 ".runfile",
options=3) at ./src/imainarg.c:761

---Type to continue, or q to quit---

17 0x080dc97d in argproc (minst=0x874da00,

arg=0xbffffa99 "/home/test/MDKonlineFR.pdf") at ./src/imainarg.c:698

18 0x080db419 in gs_main_init_with_args (minst=0x874da00, argc=3,

argv=0xbffff924) at ./src/imainarg.c:205

19 0x08070450 in main (argc=3, argv=0xbffff924) at ./src/gs.c:45

(gdb) quit

[root@majax p]

michaelrsweet commented 20 years ago

CUPS.org User: till.kamppeter

I have also tested with GPL GhostScript 8.15, with that version the file is displayed perfectly.

michaelrsweet commented 19 years ago

CUPS.org User: mike

Fixed in Subversion repository.