Bug 969785

Summary: [abrt] ghostscript-9.07-3.fc19: ps_get_glyphname_or_cid: Process /usr/bin/gs was killed by signal 11 (SIGSEGV)
Product: [Fedora] Fedora Reporter: Pratyush Sahay <pratyush.a.sahay>
Component: ghostscriptAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: pratyush.a.sahay, twaugh
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:4d06264e56cdfd00a6600ac9ef4d15f090d5ae83
Fixed In Version: ghostscript-9.07-10.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-20 09:37:00 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
DVI file generated using LaTeX
none
PS file generated using LaTeX
none
PDF file generated using LaTeX none

Description Pratyush Sahay 2013-06-02 11:18:48 UTC
Description of problem:
Copied compiled latex files from another system. Opened the folder, waited for the thumbnails to show up and this crash happened.

Version-Release number of selected component:
ghostscript-9.07-3.fc19

Additional info:
reporter:       libreport-2.1.4
backtrace_rating: 4
cmdline:        gs -dNODISPLAY -dNOGC -sSUBSTFONT=NimbusRomNo9L-Medi -q -- /usr/share/texlive/texmf/dvips/gsftopk/render.ps NimbusRomNo9L-Medi ' (/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc) run (/usr/share/texlive/texmf-dist/fonts/type1/urw/times/utmb8a.pfb) brun' ' TeXBase1Encoding ReEncodeFont ' 864.000000
crash_function: ps_get_glyphname_or_cid
executable:     /usr/bin/gs
kernel:         3.9.4-300.fc19.i686
runlevel:       N 5
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 ps_get_glyphname_or_cid at psi/zfapi.c:1784
 #1 gs_fapi_do_char at base/gxfapi.c:1364
 #2 FAPI_char at psi/zfapi.c:2197
 #3 interp at psi/interp.c:1289
 #4 gs_call_interp at psi/interp.c:501
 #5 gs_interpret at psi/interp.c:459
 #6 gs_main_interpret at psi/imain.c:235
 #7 gs_main_run_string_end at psi/imain.c:609
 #8 gs_main_run_string_with_length at psi/imain.c:567
 #9 gs_main_run_string at psi/imain.c:549

Comment 1 Pratyush Sahay 2013-06-02 11:18:54 UTC
Created attachment 755839 [details]
File: backtrace

Comment 2 Pratyush Sahay 2013-06-02 11:18:58 UTC
Created attachment 755840 [details]
File: cgroup

Comment 3 Pratyush Sahay 2013-06-02 11:19:02 UTC
Created attachment 755841 [details]
File: core_backtrace

Comment 4 Pratyush Sahay 2013-06-02 11:19:05 UTC
Created attachment 755842 [details]
File: dso_list

Comment 5 Pratyush Sahay 2013-06-02 11:19:09 UTC
Created attachment 755843 [details]
File: environ

Comment 6 Pratyush Sahay 2013-06-02 11:19:12 UTC
Created attachment 755844 [details]
File: limits

Comment 7 Pratyush Sahay 2013-06-02 11:19:16 UTC
Created attachment 755845 [details]
File: maps

Comment 8 Pratyush Sahay 2013-06-02 11:19:20 UTC
Created attachment 755846 [details]
File: open_fds

Comment 9 Pratyush Sahay 2013-06-02 11:19:23 UTC
Created attachment 755847 [details]
File: proc_pid_status

Comment 10 Pratyush Sahay 2013-06-02 11:19:27 UTC
Created attachment 755848 [details]
File: var_log_messages

Comment 11 Tim Waugh 2013-06-03 10:51:22 UTC
Could you please attach a file that demonstrates the problem?

Comment 12 Pratyush Sahay 2013-06-03 13:48:48 UTC
Dont know if its related, but am hitting the following SELinux bugs also on the same folders.
https://bugzilla.redhat.com/show_bug.cgi?id=969941
https://bugzilla.redhat.com/show_bug.cgi?id=970119

I think these seem to be happening when nautilus tries to open the thumbnail of the DVI and PDF files compiled from latex, which contain large number of images to create a PDF file in the order of 10MB.

Comment 13 Pratyush Sahay 2013-07-03 08:19:25 UTC
Created attachment 768142 [details]
DVI file generated using LaTeX

DVI file generated using LaTeX

Comment 14 Pratyush Sahay 2013-07-03 08:20:44 UTC
Created attachment 768143 [details]
PS file generated using LaTeX

PS file generated using LaTeX

Comment 15 Pratyush Sahay 2013-07-03 08:22:43 UTC
Created attachment 768144 [details]
PDF file generated using LaTeX

PDF file generated using LaTeX

Comment 16 Tim Waugh 2013-07-04 12:11:58 UTC
Hmm, can't work out which packages need to be installed in order to test this out.

Comment 17 Pratyush Sahay 2013-07-08 07:17:45 UTC
Over and above the basic Fedora installation, i generally install the following packages for using LaTeX

$ sudo yum install texmaker evince-dvi evince-djvu texlive-collection-science texlive-collection-latexrecommended texlive-collection-genericrecommended texlive-collection-fontsrecommended

Comment 18 Tim Waugh 2013-07-08 10:07:02 UTC
Thanks.  Looks like the minimal set is:

texlive-dvips
texlive-gsftopk
texlive-times

and to reproduce it directly in gs:

(echo 10.000000; seq 1 255 | xargs echo) | gs -dNODISPLAY -dNOGC -sSUBSTFONT=NimbusRomNo9L-Medi -q -- /usr/share/texlive/texmf-dist/dvips/gsftopk/render.ps NimbusRomNo9L-Medi ' (/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc) run (/usr/share/texlive/texmf-dist/fonts/type1/urw/times/utmb8a.pfb) brun' ' TeXBase1Encoding ReEncodeFont ' 864.000000

(distilled from 'gsftopk ptmb8r 864')

Comment 19 Tim Waugh 2013-07-08 11:37:48 UTC
This was fixed upstream in commit 23e6bd3.

Comment 20 Fedora Update System 2013-07-17 16:29:30 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 21 Fedora Update System 2013-07-18 05:47:50 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 22 Fedora Update System 2013-07-20 09:37:00 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.