NetBSD Problem Report #42984

From tmp+esmtp@disfinite.org  Tue Mar 16 18:37:46 2010
Return-Path: <tmp+esmtp@disfinite.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 31F8263B11D
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Mar 2010 18:37:46 +0000 (UTC)
Message-Id: <20100316183728.83B2337650@echo.disfinite.org>
Date: Tue, 16 Mar 2010 18:37:28 +0000 (UTC)
From: tmp+nb-spr@disfinite.org (T. M. Pederson)
Reply-To: tmp+nb-spr@disfinite.org (T. M. Pederson)
To: gnats-bugs@gnats.NetBSD.org
Subject: ghostscript segfaults when used with foomatic print filters
X-Send-Pr-Version: 3.95

>Number:         42984
>Category:       pkg
>Synopsis:       ghostscript component gsc segfaults when given include without absolute path
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 16 18:40:01 +0000 2010
>Closed-Date:    Wed Apr 21 01:28:21 +0000 2010
>Last-Modified:  Wed Apr 21 01:28:21 +0000 2010
>Originator:     T. M. Pederson
>Release:        NetBSD 5.0_STABLE
>Organization:
>Environment:
System: NetBSD echo.disfinite.org 5.0_STABLE NetBSD 5.0_STABLE (ECHO) #8: Fri Feb 5 19:52:48 CST 2010 tmp@echo.disfinite.org:/usr/obj/sys/arch/sparc64/compile/ECHO sparc64
Architecture: sparc64
Machine: sparc64
>Description:
	Print filters, such as those provided by foomatic, call ghostscript
	with an include to specify printer specific flags. The file falls in
	ghostscript's default path list and is specified only by name.  When
	ghostscript's component gsc is faced with this, it segfaults instead
	of searching its pathlist for the file.
>How-To-Repeat:
	Configure /etc/printcap to use foomatic filters for a printer.
>Fix:
	Workaround is to modify a given ppd to explicitly give the path to the
	include. E.g., in
	/usr/pkg/share/foomatic/ppd/Canon/Canon-S630-bj8pa06n.upp.ppd change
	@bj8ts06n.upp to @/usr/pkg/share/ghostscript/8.70/lib/bj8ts06n.upp

>Release-Note:

>Audit-Trail:
From: Matthias Drochner <drochner@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42984 CVS commit: pkgsrc/print/ghostscript
Date: Fri, 9 Apr 2010 19:39:07 +0000

 Module Name:	pkgsrc
 Committed By:	drochner
 Date:		Fri Apr  9 19:39:06 UTC 2010

 Modified Files:
 	pkgsrc/print/ghostscript: Makefile distinfo
 Added Files:
 	pkgsrc/print/ghostscript/patches: patch-an

 Log Message:
 Do some initialization of global stuff earlier, in particular before
 "@file" args get processed, fixes PR pkg/42984 from T. M. Pederson.
 I'm not 100% sure that this has no side effects (the initialization
 order in gs is messy and undocumented) but I haven't found any within
 some weeks of testing.
 bump PKGREVISION


 To generate a diff of this commit:
 cvs rdiff -u -r1.76 -r1.77 pkgsrc/print/ghostscript/Makefile
 cvs rdiff -u -r1.31 -r1.32 pkgsrc/print/ghostscript/distinfo
 cvs rdiff -u -r0 -r1.3 pkgsrc/print/ghostscript/patches/patch-an

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 10 Apr 2010 05:14:51 +0000
State-Changed-Why:
Does it work for you now?


From: "T. M. Pederson" <tmp+nb-spr@disfinite.org>
To: gnats-bugs@NetBSD.org
Cc: dholland@NetBSD.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: pkg/42984 (ghostscript component gsc segfaults when given
 include without absolute path)
Date: Sat, 10 Apr 2010 05:42:09 +0000

 --Signature=_Sat__10_Apr_2010_05_42_09_+0000_=HE.bfdQpGMW8nVi
 Content-Type: text/plain; charset=US-ASCII
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Sat, 10 Apr 2010 05:14:52 +0000 (UTC)
 dholland@NetBSD.org wrote:

 > Synopsis: ghostscript component gsc segfaults when given include without =
 absolute path
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Sat, 10 Apr 2010 05:14:51 +0000
 > State-Changed-Why:
 > Does it work for you now?

 Yes, thank you.

 --Signature=_Sat__10_Apr_2010_05_42_09_+0000_=HE.bfdQpGMW8nVi
 Content-Type: application/pgp-signature

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.13 (FreeBSD)

 iEYEARECAAYFAkvAD7oACgkQ74vh/haTIetSjwCglEAmH6k7B+euo+d3nr2E7mdD
 T5gAni40NdUwnnnNIVLzqgNKCp4z1dtV
 =emxX
 -----END PGP SIGNATURE-----

 --Signature=_Sat__10_Apr_2010_05_42_09_+0000_=HE.bfdQpGMW8nVi--

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 10 Apr 2010 05:46:58 +0000
State-Changed-Why:
Confirmed fixed. Thanks for checking so promptly :-)


From: "T. M. Pederson" <tmp+nb-spr@disfinite.org>
To: gnats-bugs@NetBSD.org
Cc: dholland@NetBSD.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: pkg/42984 (ghostscript component gsc segfaults when given
 include without absolute path)
Date: Mon, 12 Apr 2010 16:28:39 +0000

 --Signature=_Mon__12_Apr_2010_16_28_39_+0000_aXUvEh+eP7qTFVtW
 Content-Type: text/plain; charset=US-ASCII
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Sat, 10 Apr 2010 05:46:59 +0000 (UTC)
 dholland@NetBSD.org wrote:

 > Synopsis: ghostscript component gsc segfaults when given include without =
 absolute path
 >=20
 > State-Changed-From-To: feedback->closed
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Sat, 10 Apr 2010 05:46:58 +0000
 > State-Changed-Why:
 > Confirmed fixed. Thanks for checking so promptly :-)

 Too promptly, actually. I've been using a patch from Matthias Drochner
 that makes it work, and assumed that had been committed. With the update
 of ghostscript to 8.71, and without Matthias' patch, it doesn't work.

 --Signature=_Mon__12_Apr_2010_16_28_39_+0000_aXUvEh+eP7qTFVtW
 Content-Type: application/pgp-signature

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.13 (FreeBSD)

 iEYEARECAAYFAkvDSkAACgkQ74vh/haTIev3BgCg8C7/DmmZL7qQKDChsrxt3Eb0
 v6gAoK2y9RMXXcCASRC4js82p5rJq376
 =kVHv
 -----END PGP SIGNATURE-----

 --Signature=_Mon__12_Apr_2010_16_28_39_+0000_aXUvEh+eP7qTFVtW--

From: "T. M. Pederson" <tmp+nb-spr@disfinite.org>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/42984 (ghostscript component gsc segfaults when given
 include without absolute path)
Date: Mon, 12 Apr 2010 16:38:33 +0000

 --Signature=_Mon__12_Apr_2010_16_38_33_+0000_+vVrUMMZXiDAZ4nW
 Content-Type: text/plain; charset=US-ASCII
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Mon, 12 Apr 2010 16:30:04 +0000 (UTC)
 "T. M. Pederson" <tmp+nb-spr@disfinite.org> wrote:

 >  Too promptly, actually. I've been using a patch from Matthias Drochner
 >  that makes it work, and assumed that had been committed. With the update
 >  of ghostscript to 8.71, and without Matthias' patch, it doesn't work.

 To further clarify, I had been checking the patch against pkgsrc-2009Q4,
 and was under the impression the commit was in time for pkgsrc-2010Q1.

 --Signature=_Mon__12_Apr_2010_16_38_33_+0000_+vVrUMMZXiDAZ4nW
 Content-Type: application/pgp-signature

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.13 (FreeBSD)

 iEYEARECAAYFAkvDTJIACgkQ74vh/haTIesz7ACfd7hqqV7goP4FBpSfSUxVjhW2
 ICEAoNMbDKH+nHEWo87a3bECvMhU+47B
 =tLoD
 -----END PGP SIGNATURE-----

 --Signature=_Mon__12_Apr_2010_16_38_33_+0000_+vVrUMMZXiDAZ4nW--

State-Changed-From-To: closed->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 13 Apr 2010 05:17:02 +0000
State-Changed-Why:
overenthusiastic.

Do we just need to pull the commit into 2010Q1 or is there another commit
needed?


From: "T. M. Pederson" <tmp+nb-spr@disfinite.org>
To: gnats-bugs@NetBSD.org
Cc: dholland@NetBSD.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: pkg/42984 (ghostscript component gsc segfaults when given
 include without absolute path)
Date: Tue, 13 Apr 2010 05:44:11 +0000

 --Signature=_Tue__13_Apr_2010_05_44_11_+0000_zRQqXd0vDBvhWF80
 Content-Type: text/plain; charset=US-ASCII
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Tue, 13 Apr 2010 05:17:03 +0000 (UTC)
 dholland@NetBSD.org wrote:

 > Do we just need to pull the commit into 2010Q1 or is there another commit
 > needed?

 I'd checked the patch against 2009Q4, and my systems are busy right now
 with switching to 2010Q1. When that's out of the way I'll check against
 current to verify. 2010Q2/current will be sufficient; the commit missing
 2010Q1 just took me by surprise is all.

 --Signature=_Tue__13_Apr_2010_05_44_11_+0000_zRQqXd0vDBvhWF80
 Content-Type: application/pgp-signature

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.13 (FreeBSD)

 iEYEARECAAYFAkvEBLMACgkQ74vh/haTIesyfQCg0ucpCLpJ5YNr/N4DdtvNcQHD
 HPQAoIg94cRbO4BhxnXl/vmJN81lTPXl
 =fo3O
 -----END PGP SIGNATURE-----

 --Signature=_Tue__13_Apr_2010_05_44_11_+0000_zRQqXd0vDBvhWF80--

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42984 (ghostscript component gsc segfaults when given
	include without absolute path)
Date: Thu, 15 Apr 2010 17:13:23 +0000

 On Tue, Apr 13, 2010 at 05:45:02AM +0000, T. M. Pederson wrote:
  >  > Do we just need to pull the commit into 2010Q1 or is there another commit
  >  > needed?
  >  
  >  I'd checked the patch against 2009Q4, and my systems are busy right now
  >  with switching to 2010Q1. When that's out of the way I'll check against
  >  current to verify. 2010Q2/current will be sufficient; the commit missing
  >  2010Q1 just took me by surprise is all.

 Ok. Let us/me know...

 -- 
 David A. Holland
 dholland@netbsd.org

From: "T. M. Pederson" <tmp+nb-spr@disfinite.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42984 (ghostscript component gsc segfaults when given
 include without absolute path)
Date: Tue, 20 Apr 2010 19:23:47 -0500

 --Signature=_Tue__20_Apr_2010_19_23_47_-0500_xYW3lSe8kDute.9/
 Content-Type: text/plain; charset=US-ASCII
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Thu, 15 Apr 2010 17:15:06 +0000 (UTC)
 David Holland <dholland-pbugs@netbsd.org> wrote:

 > The following reply was made to PR pkg/42984; it has been noted by GNATS.
 >=20
 > From: David Holland <dholland-pbugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc:=20
 > Subject: Re: pkg/42984 (ghostscript component gsc segfaults when given
 > 	include without absolute path)
 > Date: Thu, 15 Apr 2010 17:13:23 +0000
 >=20
 >  On Tue, Apr 13, 2010 at 05:45:02AM +0000, T. M. Pederson wrote:
 >   >  > Do we just need to pull the commit into 2010Q1 or is there another=
  commit
 >   >  > needed?
 >   > =20
 >   >  I'd checked the patch against 2009Q4, and my systems are busy right =
 now
 >   >  with switching to 2010Q1. When that's out of the way I'll check agai=
 nst
 >   >  current to verify. 2010Q2/current will be sufficient; the commit mis=
 sing
 >   >  2010Q1 just took me by surprise is all.
 > =20
 >  Ok. Let us/me know...

 The 2010Q1 update is out of the way (qt4 takes a while) and I've checked
 out ghostscript from -current. ghostscript is now working successfully
 with the standard foomatic ppds, and show no other strangeness. The fix
 is good.

 Thank you.

 --Signature=_Tue__20_Apr_2010_19_23_47_-0500_xYW3lSe8kDute.9/
 Content-Type: application/pgp-signature

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.14 (NetBSD)

 iEYEARECAAYFAkvORZsACgkQ74vh/haTIese5ACg6JHF+i6EKVPWdYkH1AwE76Fc
 aRkAnjXmIRmUz+s6uYilgnAF3t3VSfVf
 =hgLK
 -----END PGP SIGNATURE-----

 --Signature=_Tue__20_Apr_2010_19_23_47_-0500_xYW3lSe8kDute.9/--

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 21 Apr 2010 01:28:21 +0000
State-Changed-Why:
Confirmed, really this time.

Thanks for checking :-)


>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.