Reads from /dev/random can hang forever on Solaris (Doc ID 1503179.1)

Last updated on AUGUST 01, 2016

Applies to:

Solaris Operating System - Version 10 3/05 to 11 11/11 [Release 10.0 to 11.0]
Information in this document applies to any platform.

Symptoms

 Applications reading from /dev/random can hang forever

 

sample truss, from a test case which was used to duplicate the issue:

Base time stamp:  1350501634.7058  [ Wed Oct 17 15:20:34 EDT 2012 ]
...
...
/1:     0.0257     0.0002    write(1, " O p e n i n g :   / d e".., 21)    = 21
/1:     0.0263     0.0002    open64("/dev/random", O_RDONLY)            = 3
/1:     0.0266     0.0000    time()                        = 1350501634
/1:    read(3, 0xFFBFDC50, 8192)    (sleeping...)
/1:    6257.1425     1.4646        Received signal #2, SIGINT, in read() [default]
/1:          siginfo: SIG#0
/1:    6257.1584     1.4653    read(3, "\0\002A107D1 1D1\0\0\0\0".., 8192)    = 1040

 

##
## Note, the over 6000 seconds when the process was killed with a SIGINT
##

 



Changes

 N/A

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms