Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2011 22:05:12 GMT
From:      Bob Eager <bob@eager.cx>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/156654: Ghostscript 8.71 fails when invoked from gv and other programs
Message-ID:  <201104252205.p3PM5CZ0067090@red.freebsd.org>
Resent-Message-ID: <201104252210.p3PMA225085214@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156654
>Category:       ports
>Synopsis:       Ghostscript 8.71 fails when invoked from gv and other programs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 25 22:10:02 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Bob Eager
>Release:        8.2
>Organization:
>Environment:
FreeBSD raksha.tavi.co.uk 8.2-STABLE FreeBSD 8.2-STABLE #0: Tue Apr 19 10:06:47 BST 2011     root@raksha.tavi.co.uk:/usr/obj/usr/src/sys/RAKSHA  i386

>Description:
Ghostscript 8.71 crashes with messages '/undefined ... copy_trailer_attrs' when invoked from gv, also from other programs such as Firefox. This is when viewing PDF files.

There is a documented error in one of the .ps files, which causes this. The file in question is lib/pdf2dsc.ps.

Patch shown below.
>How-To-Repeat:
Use gv to view a PDF file.
>Fix:
Patch below.

Patch attached with submission follows:

--- ./lib/pdf2dsc.ps.orig	2011-04-25 20:07:26.000000000 +0100
+++ ./lib/pdf2dsc.ps	2011-04-25 20:07:56.000000000 +0100
@@ -116,7 +116,7 @@
    DSCfile PDFname write==only
    ( \(r\) file { DELAYSAFER { .setsafe } if } stopped pop\n) puts
    ( pdfopen begin\n) puts
-   ( copy_trailer_attrs\n) puts
+   ( process_trailer_attrs\n) puts
    (%%EndSetup\n) puts
 
    /.hasPageLabels false def % see "Page Labels" in the PDF Reference


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104252205.p3PM5CZ0067090>