Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 97583

Summary: [7.05-20.1] gs gets stuck reading /dev/random
Product: Red Hat Enterprise Linux 3 Reporter: Aleksey Nogin <aleksey>
Component: ghostscriptAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 3.0CC: andreypozdeev, astokes, laroche, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://nogin.org/tmp/bug97583.ps
Whiteboard:
Fixed In Version: RHSA-2005-081 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-28 14:20: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:
Bug Depends On:    
Bug Blocks: 156320    

Description Aleksey Nogin 2003-06-17 23:33:01 UTC
When running

gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=XXXfile2
-c .setpdfwrite XXXfile1

gs process stays forever in "sleep" mode. Strace shows that process is doing a
read on fd 9 and "ls -l /proc/XXXXX/fd/9" shows

/proc/XXXXX/fd/9 -> /dev/random

Reproducible: always (for a specific file, at least).

Comment 1 Tim Waugh 2003-06-18 08:23:30 UTC
And with -dSAFER -dPARANOIDSAFER?

Comment 2 Aleksey Nogin 2003-06-18 09:27:00 UTC
> -dSAFER -dPARANOIDSAFER

Same thing. Also, the options I am using are essentially lifted from
/usr/bin/ps2pdfwr (and the ps file is created by dvips).

Comment 3 Tim Waugh 2003-06-18 09:49:38 UTC
Please attach the file, or a pointer to it.

Comment 4 Aleksey Nogin 2003-06-18 10:35:20 UTC
I've put the file at http://nogin.org/tmp/bug97583.ps

Comment 5 Tim Waugh 2003-06-18 11:27:53 UTC
This comes from src/gdevpdf.c, and was present in 7.05-20 too.  It seems to be
fixed (to use /dev/urandom) in 7.07.

Comment 6 Aleksey Nogin 2003-08-27 00:55:22 UTC
Is there any chance of an errata for this? This is pretty annoying to have
around :-(

Comment 7 Tim Waugh 2003-08-29 12:27:27 UTC
If there is a more pressing need to issue an advisory, I'll see if we can get
this fix in too.

Comment 8 Tim Waugh 2003-11-18 15:31:23 UTC
*** Bug 110326 has been marked as a duplicate of this bug. ***

Comment 9 Chris Underhill 2005-01-13 17:54:05 UTC
This bug is also seems to be present in WS3 with latest updates, i.e.,
using ghostscript-7.05-32.1.9. It makes a bulk ps2pdf run painfully slow.

Comment 10 Tim Waugh 2005-01-13 22:44:44 UTC
*** Bug 130508 has been marked as a duplicate of this bug. ***

Comment 21 Red Hat Bugzilla 2005-09-28 14:20:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-081.html