Bug#627471: gv: fails to read bounding box (depending on the command line!)

2011-08-01 Thread Bernhard R. Link
Some little status update:

* Francesco Poli (wintermute) invernom...@paranoici.org [110520 23:07]:
 The problem occurs at least with EPS files generated by the grace package,
 which have the bounding box written at the end.

This starts to qualify to be the worst heisenbug I ever encountered.
I simple time(NULL) inserted into more then a dozen lines (not to speak
about printfs) with no appearent side effects in the assembler code
can switch the behaviour here on the same file.

(And I could never reproduce it to depend in the filename, it either
works both absolute and relative or neither)

Bernhard R. Link



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#627471: gv: fails to read bounding box (depending on the command line!)

2011-05-20 Thread Francesco Poli (wintermute)
Package: gv
Version: 1:3.7.2-1
Severity: normal

Hi!

I think I found an awkward regression.
After the following upgrade on Debian testing systems:

[UPGRADE] gv 1:3.7.1-3 - 1:3.7.2-1

gv behaves in a very strange way with EPS files.

It sometimes fails to read the bounding box, and thus displays the EPS
file in A4 layout, without allowing the user to switch to BBox layout.

The problem occurs at least with EPS files generated by the grace package,
which have the bounding box written at the end.

The really surprising fact is that gv seems to behave differently on
the *same* file, depending on how the file is passed on the gv command
line (different, yet equivalent paths)!

Steps to reproduce on my box with the attached trivial test EPS
file:

  $ gv test.eps

the file is displayed in A4 layout, despite having a bounding box:

  $ head -n 7 test.eps 
  %!PS-Adobe-3.0 EPSF-3.0
  %%BoundingBox: (atend)
  %%LanguageLevel: 2
  %%Creator: Grace-5.1.22
  %%CreationDate: Fri May 20 21:52:16 2011
  %%DocumentData: Clean8Bit
  %%Orientation: Portrait
  $ tail -n 4 test.eps 
  %%Trailer
  %%BoundingBox: 63 72 712 528
  %%DocumentNeededResources: font Times-Roman
  %%EOF

Please note that the bounding was not read: the BBox menu entry for
the layout is grayed out, and I cannot select it.

Now, the fun:

  $ gv $HOME/tmp/TEST/test.eps

the *same* file is displayed correctly in BBox layout.

Please note that gv/1:3.7.1-3 did not show this behavior: downgrading
fixes the bug.

I hope the issue may be successfully investigated and solved soon.

Thanks for your time!


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gv depends on:
ii  dpkg  1.16.0.3   Debian package management system
ii  ghostscript-x 9.02~dfsg-2interpreter for the PostScript lan
ii  install-info  4.13a.dfsg.1-6 Manage installed documentation in 
ii  libc6 2.13-4 Embedded GNU C Library: Shared lib
ii  libx11-6  2:1.4.3-1  X11 client-side library
ii  libxinerama1  2:1.1.1-1  X11 Xinerama extension library
ii  libxmu6   2:1.1.0-2  X11 miscellaneous utility library
ii  libxt61:1.1.1-1  X11 toolkit intrinsics library
ii  xaw3dg1.5+E-18   Xaw3d widget set

Versions of packages gv recommends:
ii  xaw3dg1.5+E-18   Xaw3d widget set

gv suggests no packages.

-- no debconf information
# Grace project file
#
# Trivial test Grace project file
#
# Copyright (c) 2011 Francesco Poli
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# Software), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
@version 50122
@page size 792, 612
@page scroll 5%
@page inout 5%
@link page off
@map font 8 to Courier, Courier
@map font 10 to Courier-Bold, Courier-Bold
@map font 11 to Courier-BoldOblique, Courier-BoldOblique
@map font 9 to Courier-Oblique, Courier-Oblique
@map font 4 to Helvetica, Helvetica
@map font 6 to Helvetica-Bold, Helvetica-Bold
@map font 7 to Helvetica-BoldOblique, Helvetica-BoldOblique
@map font 5 to Helvetica-Oblique, Helvetica-Oblique
@map font 14 to NimbusMonoL-BoldOblique, NimbusMonoL-BoldOblique
@map font 15 to NimbusMonoL-Regular, NimbusMonoL-Regular
@map font 16 to NimbusMonoL-RegularOblique, NimbusMonoL-RegularOblique
@map font 17 to NimbusRomanNo9L-Medium, NimbusRomanNo9L-Medium
@map font 18 to NimbusRomanNo9L-MediumItalic, NimbusRomanNo9L-MediumItalic
@map font 19 to NimbusRomanNo9L-Regular, NimbusRomanNo9L-Regular
@map font 20 to NimbusRomanNo9L-RegularItalic, NimbusRomanNo9L-RegularItalic
@map font 21 to NimbusSansL-Bold, NimbusSansL-Bold
@map font 22 to NimbusSansL-BoldCondensed, NimbusSansL-BoldCondensed
@map font 23 to NimbusSansL-BoldCondensedItalic,