You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/05/28 08:33:43 UTC

DO NOT REPLY [Bug 47276] New: Repeated log warnings when /dev/urandom is not readable

https://issues.apache.org/bugzilla/show_bug.cgi?id=47276

           Summary: Repeated log warnings when /dev/urandom is not
                    readable
           Product: Tomcat 5
           Version: 5.5.27
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: Tim.Whittington@orionhealth.com


When the /dev/urandom device is not readable by the Tomcat process, we see
repeated "Failed to close randomIS" messages logged at the WARN level.

The issue appears to be in ManagerBase.setRandomFile - if the random device is
not readable it fails to open the file (i.e. construct the FileInputStream - at
least on AIX this fails immediately), and then blindly tries to close the
inputstream resulting in an NPE and the "Failed to close randomIS" message.

A quick null check before closing would probably fix this.
A solution that warned once on an inaccessible random device and didn't try to
reopen it thereafter might be better.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 47276] Repeated log warnings when /dev/urandom is not readable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47276


Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




--- Comment #1 from Konstantin Kolinko <kn...@gmail.com>  2009-07-17 10:41:58 PST ---
It is duplicate of bug 46967, that is already fixed in the 6.0.x branch.

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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org