Bug 97583 - [7.05-20.1] gs gets stuck reading /dev/random
Summary: [7.05-20.1] gs gets stuck reading /dev/random
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: ghostscript
Version: 3.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL: http://nogin.org/tmp/bug97583.ps
Whiteboard:
: 110326 130508 (view as bug list)
Depends On:
Blocks: 156320
TreeView+ depends on / blocked
 
Reported: 2003-06-17 23:33 UTC by Aleksey Nogin
Modified: 2019-04-10 08:18 UTC (History)
4 users (show)

Fixed In Version: RHSA-2005-081
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-28 14:20:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2005:081 0 qe-ready SHIPPED_LIVE Low: ghostscript security update 2005-09-28 04:00:00 UTC

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



Note You need to log in before you can comment on or make changes to this bug.