ports/156654: Ghostscript 8.71 fails when invoked from gv and other programs

Bob Eager bob at eager.cx
Mon Apr 25 22:10:03 UTC 2011


>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 at 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:



More information about the freebsd-ports-bugs mailing list