Bug 1297828

Summary: dvipdf segmentation fault on ppc64le
Product: Red Hat Enterprise Linux 7 Reporter: Denis Fateyev <denis>
Component: ghostscriptAssignee: David Kaspar // Dee'Kej <deekej>
Status: CLOSED DUPLICATE QA Contact: QE Internationalization Bugs <qe-i18n-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: rc   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-12 17:59:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1250914    
Bug Blocks:    

Description Denis Fateyev 2016-01-12 14:50:59 UTC
Description of problem:
-----------------------
With my `libtommath` package test build, `dvipdf` fails on rhel7 ppc64le arch:

...
dvipdf tommath
/usr/bin/dvipdf: line 46:  2731 Broken pipe             exec dvips -R -Ppdf $DVIPSOPTIONS -q -f "$infile"
      2732 Segmentation fault      (core dumped) | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
...

https://kojipkgs.fedoraproject.org//work/tasks/5945/12515945/build.log

All other archs on the same distribution don't cause any problems:
https://koji.fedoraproject.org/koji/taskinfo?taskID=12515942


Version-Release number of selected component:
-----------------------
ghostscript.ppc64le 0:9.07-18.el7
According to https://kojipkgs.fedoraproject.org//work/tasks/5945/12515945/root.log


How reproducible:
-----------------------
Always, during package build


Steps to Reproduce:
-----------------------
1. Get package to be built (e.g., from a Koji successful build):
https://koji.fedoraproject.org/koji/taskinfo?taskID=12515943
https://kojipkgs.fedoraproject.org//work/tasks/5943/12515943/libtommath-0.43.0-2.el7.src.rpm
2. Run Koji scratch build against this SRPM package


Additional info:
-----------------------
Package build fails on ppc64le in rhel7.
Although it builds fine on ppc64le in f22, f23: http://ppc.koji.fedoraproject.org/koji/tasks?owner=dfateyev&state=all

Comment 2 Denis Fateyev 2016-01-12 16:14:34 UTC
As it turns out, the same problem seen also in current `libtommath` version. There is some workaround not to use `dvipdf` at all:
http://pkgs.fedoraproject.org/cgit/rpms/libtommath.git/commit/?h=epel7&id=7c9593329f1f5e341513a9c58653347471d5c803
But I believe that's no sane tendency.

Comment 3 David Kaspar // Dee'Kej 2016-01-12 17:59:52 UTC
Hello Denis!

Thank you for you bug report. We are already aware of this issue. I'm closing this bug as a duplicate - please refer for the initial bug for more information.

*** This bug has been marked as a duplicate of bug 1243784 ***