--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: gv: PDF with full pathname + change settings = crash
- From: "Silas S. Brown" <ssb22@cam.ac.uk>
- Date: Thu, 07 Jul 2005 07:09:01 +0100
- Message-id: <20050707060901.993EC6D65D@elgar.cl.cam.ac.uk>
Package: gv
Version: 1:3.6.1-10
Severity: normal
If you use gv to view a PDF file, and that PDF file has a
full pathname, e.g.
gv /tmp/flyer.pdf
and then use the drop-down box to change the zoom factor,
the gs interpreter crashes with the following message:
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 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1051/1123(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- --dict:100/127(ro)(G)-- --dict:230/230(G)--
Current allocation mode is local
GPL Ghostscript 8.01: Unrecoverable error, exit code 1
and then if you try to set the size back to 1.0, you just
get more of the same:
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 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1051/1123(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- --dict:100/127(ro)(G)-- --dict:230/230(G)--
Current allocation mode is local
GPL Ghostscript 8.01: Unrecoverable error, exit code 1
Error: /invalidfileaccess in --file--
Operand stack:
(/tmp/flyer.pdf) (r)
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 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1051/1123(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- --dict:100/127(ro)(G)-- --dict:230/230(G)--
Current allocation mode is local
GPL Ghostscript 8.01: Unrecoverable error, exit code 1
Similar things happen when you try to change the paper size
and orientation.
However, if when launching gv you do:
cd /tmp
gv flyer.pdf
then everything works fine. However, the bug is still
effective if you do
cd /tmp
gv /tmp/flyer.pdf
so it's the presence of a pathname on the command line that
causes the bug, not the value of the current directory.
Incidentally the bug does NOT take effect if you do
cd /
gv tmp/flyer.pdf
so it must be the leading / that is causing a problem. I
have tested this on different PDFs and it is consistent.
The bug does NOT manifest itself with PostScript files, only
with PDF files. This bug was not present on Woody's gv.
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.23
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB)
Versions of packages gv depends on:
ii gs 8.01-5 Transitional package
ii gs-gpl [gs] 8.01-5 The GPL Ghostscript PostScript int
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libice6 4.3.0.dfsg.1-14 Inter-Client Exchange library
ii libsm6 4.3.0.dfsg.1-14 X Window System Session Management
ii libx11-6 4.3.0.dfsg.1-14 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-14 X Window System miscellaneous exte
ii libxmu6 4.3.0.dfsg.1-14 X Window System miscellaneous util
ii libxpm4 4.3.0.dfsg.1-14 X pixmap library
ii libxt6 4.3.0.dfsg.1-14 X Toolkit Intrinsics
ii xaw3dg 1.5+E-8 Xaw3d widget set
ii xlibs 4.3.0.dfsg.1-14 X Keyboard Extension (XKB) configu
-- no debconf information
--- End Message ---