Red Hat Bugzilla – Bug 97583
[7.05-20.1] gs gets stuck reading /dev/random
Last modified: 2007-11-30 17:06:56 EST
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).
And with -dSAFER -dPARANOIDSAFER?
> -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).
Please attach the file, or a pointer to it.
I've put the file at http://nogin.org/tmp/bug97583.ps
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.
Is there any chance of an errata for this? This is pretty annoying to have
If there is a more pressing need to issue an advisory, I'll see if we can get
this fix in too.
*** Bug 110326 has been marked as a duplicate of this bug. ***
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.
*** Bug 130508 has been marked as a duplicate of this bug. ***
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.