NetBSD Problem Report #30609

From www@netbsd.org  Mon Jun 27 09:20:47 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 96A1363B11E; Mon, 27 Jun 2005 09:20:47 +0000 (UTC)
Message-Id: <20050627092047.96A1363B11E@narn.netbsd.org>
Date: Mon, 27 Jun 2005 09:20:47 +0000 (UTC)
From: dgriffi@cs.csubak.edu
Reply-To: dgriffi@cs.csubak.edu
To: gnats-bugs@netbsd.org
Subject: ghostscript-using packages likely broken.
X-Send-Pr-Version: www-1.0

>Number:         30609
>Category:       pkg
>Synopsis:       ghostscript-using packages likely broken.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 27 09:21:00 +0000 2005
>Closed-Date:    Sun Apr 09 07:32:57 +0000 2006
>Last-Modified:  Sun Apr 09 07:32:57 +0000 2006
>Originator:     David Griffith
>Release:        2.0
>Organization:
>Environment:
NetBSD zaphod 2.0 NetBSD 2.0 (ZAPHOD) #0: Thu Jan 20 11:46:18 PST 2005  dave@zaphod:/usr/src/sys/arch/i386/compile/ZAPHOD i386

>Description:
I first thought this was an xfig problem, but I soon discovered that ghostscript was the most likely culprit.  I strongly suspect that all packages making use of Ghostscript are now subtly broken.

I've made some drawings with xfig and I'd now like to convert them to postscript for printing.  If I export to ps or eps formats, it goes okay, but viewing the resulting file gives me this:

gs stage1_panel.ps 
Aladdin Ghostscript 6.01 (2000-03-17)
Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusRomNo9L-Regu font from /usr/pkg/share/ghostscript/fonts/n021003l.pfb... 4973320 3617196 1556964 261658 0 done.
Loading NimbusSanL-Regu font from /usr/pkg/share/ghostscript/fonts/n019003l.pfb... 5348280 3948492 1577060 269210 0 done.
Error: /limitcheck in --arc--
Operand stack:
   --nostringval--   0   0   1   0   360
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   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:936/983(ro)(G)--   --dict:0/20(G)--   --dict:124/200(L)--   --dict:107/200(L)--
Current allocation mode is local
Current file position is 8455
Aladdin Ghostscript 6.01: Unrecoverable error, exit code 1


I tried exporting to .gif and got this in an error dialog generated by xfig:

Error during EXPORT.  Messages:
 Aladdin Ghostscript 6.01: Unrecoverable error, exit code 1
 Error in ghostcript command
 command was: gs -q -dSAFER -sDEVICE=ppmraw -r80 -g364x9555438
-sOutputFile=/tmp/f2d13296.ppm -

fig2ps creates the same buggy postscript file.

fig2ps2tex does this:

$ fig2ps2tex stage1_panel.fig 
bbox: Subscript out of range.
bbox: Subscript out of range.
\makebox[in][l]{
  \vbox to in{
    \vfill
    \special{psfile=stage1_panel.fig}
  }
  \vspace{-\baselineskip}
}
$
>How-To-Repeat:
Install graphics/xfig and print/ghostscript.  Load into xfig the file at this URL(http://www.cs.csubak.edu/~dgriffi/stage1_panel.fig) and export to postscript.  Do it again to .gif or .png.


>Fix:
$ pkg_info | grep ghostscript
ghostscript-fonts-8.11 Postscript fonts for Aladdin Ghostscript
ghostscript-6.01nb5 Aladdin Postscript interpreter

Notice that the ghostscript currently installed by print/ghostscript is 6.01.  fonts/ghostscript-fonts was updated three weeks ago to install ghostscript-fonts-std-8.11.tar.gz alongside ghostscript-fonts-other-6.0.tar.gz.  I think using those standard fonts for 8.11 with version 6.01 is the cause of this trouble.  Shouldn't print/ghostscript have been updated at the same time?

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: jlam@netbsd.org
State-Changed-When: Fri, 23 Dec 2005 04:17:32 +0000
State-Changed-Why:
Please try this with more current pkgsrc which has ghostscript>=8.15
packages.  Does this problem still exist?


State-Changed-From-To: feedback->closed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Sun, 09 Apr 2006 07:32:57 +0000
State-Changed-Why:
No feedback from PR author for 3 months and I'm unable to reproduce the
reported problem.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.