Bug 962120

Summary: [abrt] ghostscript-9.06-4.fc18: pdf_write_FontFile_entry: Process /usr/bin/gs was killed by signal 11 (SIGSEGV)
Product: [Fedora] Fedora Reporter: tuxor <acc-bugz-redhat>
Component: ghostscriptAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: twaugh
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:5ea305fa94536a3acc93a6bd776dca341919e670
Fixed In Version: ghostscript-9.06-8.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-10 06:08:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description tuxor 2013-05-11 21:55:41 UTC
Description of problem:
Download Back and Front Matter from http://link.springer.com/book/10.1007/978-3-8348-2448-6/page/1 and try concatenating them with:

---
$ ghostscript -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dAutoRotatePage=/None -sOutputFile=out.pdf "bbm:978-3-8348-2448-6_1.pdf"  "bfm:978-3-8348-2448-6_1.pdf"
---

Here is my stdout/stderr:

---
GPL Ghostscript 9.06 (2012-08-08)
Copyright (C) 2012 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 10.
Page 1
Page 2
Can't find (or can't open) font file /usr/share/ghostscript/9.06/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Can't find (or can't open) font file /usr/share/ghostscript/9.06/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Querying operating system for font files...
Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 4173580 2589999 4463608 2990214 3 done.
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
GPL Ghostscript 9.06: Missing glyph CID=0, glyph=006b in the font HiddenHorzOCR . The output PDF may fail with some viewers.
Page 10
Processing pages 1 through 13.
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12
Page 13
---

Version-Release number of selected component:
ghostscript-9.06-4.fc18

Additional info:
backtrace_rating: 4
cmdline:        /usr/bin/gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dAutoRotatePages=/None '-sOutputFile=Joachim Specovius - Grundkurs Leistungselektronik.pdf' /tmp/tmpkWcDjz /tmp/tmp4e6Wzc
crash_function: pdf_write_FontFile_entry
executable:     /usr/bin/gs
kernel:         3.8.11-200.fc18.x86_64
uid:            1000
ureports_counter: 8
xsession_errors: 

Truncated backtrace:
Thread no. 1 (9 frames)
 #0 pdf_write_FontFile_entry at base/gdevpdtb.c:487
 #1 pdf_write_FontDescriptor at base/gdevpdtd.c:703
 #2 pdf_finish_resources at base/gdevpdtw.c:662
 #3 pdf_close at base/gdevpdf.c:1214
 #4 gs_closedevice at base/gsdevice.c:632
 #5 gs_main_finit at psi/imain.c:853
 #6 gs_to_exit_with_code at psi/imain.c:917
 #7 gs_to_exit at psi/imain.c:922
 #8 gsapi_exit at psi/iapi.c:265

Comment 1 tuxor 2013-05-11 21:55:51 UTC
Created attachment 746661 [details]
File: backtrace

Comment 2 tuxor 2013-05-11 21:55:58 UTC
Created attachment 746662 [details]
File: cgroup

Comment 3 tuxor 2013-05-11 21:56:06 UTC
Created attachment 746663 [details]
File: core_backtrace

Comment 4 tuxor 2013-05-11 21:56:15 UTC
Created attachment 746664 [details]
File: dso_list

Comment 5 tuxor 2013-05-11 21:56:24 UTC
Created attachment 746665 [details]
File: environ

Comment 6 tuxor 2013-05-11 21:56:33 UTC
Created attachment 746666 [details]
File: limits

Comment 7 tuxor 2013-05-11 21:56:44 UTC
Created attachment 746667 [details]
File: maps

Comment 8 tuxor 2013-05-11 21:56:53 UTC
Created attachment 746668 [details]
File: open_fds

Comment 9 tuxor 2013-05-11 21:57:01 UTC
Created attachment 746669 [details]
File: proc_pid_status

Comment 10 tuxor 2013-05-11 21:57:03 UTC
Created attachment 746670 [details]
File: var_log_messages

Comment 11 Tim Waugh 2013-05-15 15:46:35 UTC
I see it here too.

pbfont->FontFile == NULL

Also happens upstream (ghostscript-9.06) but not on master.

Comment 12 Tim Waugh 2013-05-15 16:12:01 UTC
git bisect suggests upstream commit ec0a5d9 is the fix.

Comment 13 Tim Waugh 2013-05-16 09:07:53 UTC
Fixed in:
  ghostscript-9.06-5.fc18
  ghostscript-9.07-4.fc19

Comment 14 Fedora Update System 2013-07-17 16:28:19 UTC
ghostscript-9.07-10.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/ghostscript-9.07-10.fc19

Comment 15 Fedora Update System 2013-07-18 05:46:57 UTC
Package ghostscript-9.07-10.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ghostscript-9.07-10.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-13173/ghostscript-9.07-10.fc19
then log in and leave karma (feedback).

Comment 16 Fedora Update System 2013-07-20 09:36:32 UTC
ghostscript-9.07-10.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Tim Waugh 2013-07-22 12:05:26 UTC
Re-opening for Fedora 18.

Comment 18 Fedora Update System 2013-09-26 14:57:03 UTC
ghostscript-9.06-8.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/ghostscript-9.06-8.fc18

Comment 19 Fedora Update System 2013-09-27 00:34:56 UTC
Package ghostscript-9.06-8.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ghostscript-9.06-8.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-17687/ghostscript-9.06-8.fc18
then log in and leave karma (feedback).

Comment 20 Fedora Update System 2013-12-10 06:08:01 UTC
ghostscript-9.06-8.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.